Vim

Wonderful editor. I use it for LaTeX writing and compiling (on both windows and linux), GnuPlot, datafile editing and manipulation, etc. etc.

Tips and Tricks

Search and replace in all buffers i.e. all open files. Veeeery useful feature. Found it at http://www.saminverso.com/2007/05/09/search-and-replace-in-all-buffers/ where further info on the specifics can be found. Thanks.

:bufdo %s/searchfor/replacewith/ge | update

VIM-LaTeX on Linux

Installing vim-latex on linux howto:

mkdir ~/.vim
cd ~/.vim
tar xzf latexSuite20060325.tar.gz

Add the following lines to your ~/.vimrc vim configuration file:

filetype plugin on
set grepprg=gre\ -nH\ $*
filetype indent on

Install documentation by opening vim and type:

:helptags ~/.vim/doc

and you're ready to go. Check documentation on the vim-latex homepage (http://vim-latex.sourceforge.net/) on how to use it. Or just from within vim type:

:help latex-suite
# or
:help latex-suite-quickstart
# or for the latex2e documentation type
:help latexhelp

VIM-LaTeX on Windows XP

Installing vim-latex on windows xp howto:

  1. Unzip http://vim-latex.sourceforge.net/download/latexSuite20060325.zip
  2. Move it to your homefolder - in my case it's: C:\Document and Settings\myusername
  3. Rename the folder from latexSuite20060325 to vimfiles

Add the following lines to your ~/.vimrc vim configuration file. If you can't or do not know how to create this file you can simply from within vim type:

:e ~/.vimrc

Then add the following to the .vimrc:

filetype plugin on
set shellslash
set grepprg=gre\ -nH\ $*
filetype indent on

And finally write the file from within vim:

:w

Install documentation by opening vim and type:

:helptags ~/vimfiles/doc

and you're ready to go. Check documentation on the vim-latex homepage (http://vim-latex.sourceforge.net/) on how to use it. Or just from within vim type:

:help latex-suite
# or
:help latex-suite-quickstart
# or for the latex2e documentation type
:help latexhelp

Various Links

The vim homepage: http://www.vim.org
An excellent book on vim (572 pages): ftp://ftp.vim.org/pub/vim/doc/book/vimbook-OPL.pdf

Valid XHTML 1.0 Transitional