[wellylug] Staircase effect in vim...

Grant McLean grant at mclean.net.nz
Thu Feb 19 21:08:04 NZDT 2004


Enkidu wrote:
> 
> Yeah must try that. What's the advantages of using gvim over ssh/vim?

First up, you don't have to worry about autoindent when you paste :-)

The biggest disadvantage is that you need to have gvim and the required 
X libraries (not a full X Server install) on the target machine.  Then 
you need to enable X tunnelling on your SSH session (might be as simple 
as -X or may require tweaking the sshd config on the server).

I have my aliases set up so that 'vi filename' opens the file in a new 
gvim window and immediately returns me a new command prompt - I don't 
have to exit the editor to go back and try whatever I was editing.

I like having a proper scrollbar on my editor window but I haven't found 
the GUI toolbar useful so I've disabled that in my .vimrc.  I don't use 
the pull-down menus much but I have found them handy for setting the 
right syntax highlighting mode and other things that I don't remember 
the option name for.  Being able to use the mouse cursor to highlight 
ranges for cut/paste and other commands is also handy.  Individually 
none of these things are a significant win, but collectively I've found 
them useful enough to stick with it.

Vim tip of the day:

When you're using the ':' command line, the tab key can be used to auto 
complete option names as well as filenames etc.

Grant




More information about the wellylug mailing list