I was trying to install vim-latex (http://vim-latex.sourceforge.net/index.php?subject=download&title=Download)
My Vim comes with the OS X system and is located at
/usr/share/vim/vim73According to the instruction, I created a folder as
~/.vimand unzip the source file into directory~/.vimThen I create a file
.vimrcat~/with the following content:REQUIRED. This makes vim invoke LaTeX-Suite when you open a TeX file.
filetype plugin onIMPORTANT: Win32 users will need to have
shellslashset so that LaTeX can be called correctly.set shellslashIMPORTANT:
grepwill sometimes skip displaying the file name if you search in a single file. This will confuse LaTeX-Suite. Set yourgrepprogram to always generate a file-name.set grepprg=grep\ -nH\ $*OPTIONAL: This enables automatic indentation as you type.
filetype indent onOPTIONAL: Starting with Vim 7, the
filetypeof empty.texfiles defaults toplaintexinstead oftex, which results in vim-latex not being loaded. The following changes the default filetype back totex:let g:tex_flavor='latex'I also
cdinto~/.vim/ftplugin/to create a filetex.vimwith the following content: this is mostly a matter of taste. but LaTeX looks good with just a bit of indentation.set sw=2TIP: if you write your
\label's as\label{fig:something}, then if you type in\ref{fig:and press C-n you will automatically cycle through all the figure labels. Very useful!set iskeyword+=:In the command line I start vim and type:
:helptags ~/.vim/doc
Nothing really happens. And I simply don't know how to continue.
Could you please tell me what should I do next to make it works?
~/.vimrcyou created is indeed that used by vim typing:versionand checking that the file mentioned is indeed the one you created