Can someone please help with installing vim with the latex plugin? I've tried searching online for easier instructions, but I can't find anything. I have very little experience with terminal and I have no idea how to do this.
What I've done is just download the file. I created a ~/.vim directory, but beyond that, I'm completely lost.
Update: I'm running Mac OSX 10.7.5.
Best Answer
I suppose you already have Vim installed in your operating system.
Usually, the installation is very straightforward for every operating system. For Macs, we have MacVim, and AFAIK two options are available:
Getting the correct MacVim version for your operating system in the project website, unzip the archive file and drag
MacVim.app
to yourApplications
folder.If you use Homebrew, there's already a formula for MacVim available, so you can run
and MacVim will be deployed.
Now, back to
vim-latex
.I don't use it, but I can provide a very clean way of deploying plugins for Vim. The solution relies on Tim Pope's awesome
pathogen
plugin, which manage ourruntimepath
very easily.First of all, open your terminal and type the following:
This will create two directories (and even the parent
.vim
directory, if it doesn't exist),autoload
andbundle
inside.vim
. Now we are half-way done.Now, let's type this command:
This command will download
pathogen.vim
from Tim's repository and deploy it inside theautoload
directory.Now let's edit
.vimrc
to callpathogen
for us. Type this command:and add the following lines, preferably in the beginning:
Note: The only required line for
pathogen
to work is the first one, the other two are just some goodies I recommend.:)
Now, if you want to deploy any Vim plugin, just extract it and put the extracted directory under
~/.vim/bundle
. That's it.For example, I got this file,
vim-latex-1.8.23-20130116.788-git2ef9956.tar.gz
. I'll extract it, and the result is as follows:Now, I'll simply get the whole
vim-latex-1.8.23-20130116.788-git2ef9956
directory and move/copy it inside~/.vim/bundle
.If you want to open
~/.vim/bundle
in Finder, just typeand you will get a nice file manager to help you.
That's how
pathogen
works for virtually all plugins. Note thatvim-latex
requires you to set some settings in your.vimrc
. Just repeatand add stuff after the
pathogen
line.I really hope my answer helps.
:)