On Thu, Feb 12, 2009 at 07:53:30PM +0000, Stroller wrote:
> Hi there,
>
> I can find numerous references on the net to this behaviour:
>
>    In vim, you can just select the rectangular region with Ctrl-v,
>    then type "I#<ESC>".  This will insert # in each line at the same
>    column.  Very convenient.
>
> EG:
> http://mail.python.org/pipermail/python-list/2001-May/084540.html
> http://hurley.wordpress.com/2007/06/13/vim-tip-comment-out-multiple-lines/
>
> Yet it doesn't seem to work on any of my Gentoo systems.
>
> Is this something that is caused by a Gentoo-specific /etc/vimrc or has vim 
> evolved?

Couple of things to check:
 - you're running vim not vi or vim-tiny which has a bunch of behaviour
   removed.  Ensure that syntax highlighting works for example is what I
   do to make sure.  ESC :help will show your version also
 - ensure you're not running with the 'compatible' setting.  
        ESC :set nocompatible
   will make sure this is off

Alan
 

-- 
Alan <[email protected]> - http://arcterex.net
--------------------------------------------------------------------
"Beware of computer programmers that carry screwdrivers." -- Unknown

Reply via email to