diff options
author | Andreas Maunz <andreas@maunz.de> | 2013-02-04 19:24:21 +0100 |
---|---|---|
committer | Andreas Maunz <andreas@maunz.de> | 2013-02-04 19:24:21 +0100 |
commit | 982260f1a0f8cbcfe0816a66704d1b55b53a6a2c (patch) | |
tree | 57c599876e4ff2a160b22537438dad09a1093a4e /_posts | |
parent | 4d578d3f17e1bee5a9d8e62a5f5f6390db79d94f (diff) |
Updated plugins
Diffstat (limited to '_posts')
-rw-r--r-- | _posts/2012-05-18-using-vim.md | 50 |
1 files changed, 40 insertions, 10 deletions
diff --git a/_posts/2012-05-18-using-vim.md b/_posts/2012-05-18-using-vim.md index e11452f..dc03cf5 100644 --- a/_posts/2012-05-18-using-vim.md +++ b/_posts/2012-05-18-using-vim.md @@ -211,6 +211,38 @@ to your `~/.bash_aliases`, and, after reading in the file, e.g. by a new login, <p></p> +Plugins +======= + +Plugins are installed via 'pathogen', a vim package manager: + + mkdir -p ~/.vim/autoload ~/.vim/bundle; \ + curl -Sso ~/.vim/autoload/pathogen.vim \ + https://raw.github.com/tpope/vim-pathogen/master/autoload/pathogen.vim + +Add this to your `.vimrc`: + + execute pathogen#infect() + +Now **Vim** loads all plugins from `.vim/bundle`. Install plugins: + + cd ~/.vim/bundle + git clone git://github.com/vim-ruby/vim-ruby.git + git clone git://github.com/msanders/snipmate.vim.git + git clone git://github.com/scrooloose/nerdtree.git + git clone git://github.com/Raimondi/delimitMate.git + git clone git://github.com/jcf/vim-latex.git + git clone git://github.com/ervandew/supertab.git + +You can install the plugins without git by downloading and expanding them to `~/.vim/bundle`. + + +<p></p> +--- +<p></p> + + + Using **Vim** with Git ================== @@ -257,9 +289,10 @@ It turns out to be very useful to be able to alternate between the two versions Using **Vim** with Ruby ================== -**Vim** and ruby are like beer and pizza -- a perfect couple. Following the above will already give you syntax highlighting on ruby files. Here is how you add code completion, i.e. type a command prefix and use the TAB key and be presented with a list of possible completions. +**Vim** and ruby are like beer and pizza -- a perfect couple. Following the above will already give you syntax highlighting on ruby files. Here is how you add code completion, i.e. type a command prefix and use the TAB key and be presented with a list of possible completions. -First install the [SuperTab](http://www.vim.org/scripts/script.php?script_id=1643) module for **Vim**. Then put this in your `.vimrc` +Although ruby support is built into **Vim** 7.x, the vim-ruby plugin should be installed manually for updates. Also install the SuperTab module, see 'Plugins' for both. +Then put this in your `.vimrc` " ruby autocompletion autocmd FileType ruby,eruby set omnifunc=rubycomplete#Complete @@ -291,9 +324,7 @@ Using **Vim** with Latex LaTeX is a system for setting characters ('types'). Actually, it is a wrapper of macros around TeX, [created by Donald Knuth](http://www.tug.org/whatis.html). LaTeX is most widely used In technical writing, especially mathematics, physics, and computer science, because it can typeset mathematical formulae beautifully. - - -Install LaTeX: +1. Install LaTeX: sudo apt-get install \ texlive \ @@ -303,12 +334,12 @@ Install LaTeX: texlive-science \ texlive-fonts-extra -Install **Vim**, the Gnome version: +2. Install **Vim**, the Gnome version: sudo apt-get install \ - vim-gnome \ - vim-latexsuite - vim-addons install latex-suite + vim-gnome + +3. Install vim-latex as described under 'Plugins'. Now you can edit and compile TeX files. @@ -317,7 +348,6 @@ Now you can edit and compile TeX files. Basic editing and compiling --------------------------- - Create file `~/.vim/ftplugin/tex.vim` and insert " indentation |