Author: Xitong Gao (gxtfmx@gmail.com)
Forked from vgod/vimrc https://github.com/vgod/vimrc.
-
Check out from github
$ git clone https://github.com/admk/vimrc ~/.vim $ cd ~/.vim $ git submodule update -r --init -
Install .vimrc, .gvimrc, exuberant ctags, command-t files
$ ./install-vimrc.sh
All plugins (except vim-latex) were checked out as git submodules,
which can be upgraded with git pull.
$ cd ~/.vim/bundle/command-t
$ git pull
Also you can use the following commands to update git submodules to
their latest versions (make sure you run
git submodule foreach --recursive clean -dn before you proceed,
it will show you what files and directories will be deleted)
$ cd ~/.vim/
$ git submodule foreach --recursive git clean -df
$ git submodule foreach git pull origin master
$ git submodule update --recursive --init
-
Pathogen: Pathogen let us install a plugin as a bundle in ~/.vim/bundle seprately.
-
NERD Tree: A tree explorer plugin for navigating the filesystem.
Useful commands:
:Bookmark [name]- bookmark any directory as name:NERDTree [name]- open the bookmark [name] in Nerd Tree
-
NERD Commenter: Easy commenting for many filetypes.
-
vim-surround: Deal with pairs of surroundings.
-
matchit: Extended % matching for HTML, LaTeX, and many other languages.
-
Command-T: Open and navigate between files with
cmd-t. -
SuperTab: Do all your insert-mode completion with Tab.
-
tabular: Easy text alignment.
-
mru: Most recently used files.
-
fugitive: A Git wrapper so awesome, it should be illegal.
-
Gundo: Visualize your undo tree.
-
snipMate: TextMate-style snippets for Vim
:help snipMateto see more info. -
YankRing: Maintains a history of previous yanks, changes and deletes
:help yankringto see more info. -
Cute Error Marker: Showing error and warning icons on line.
Note: MacVim users need to enable "Use experimental renderer" to see graphical icons.
-
vim-latex: Latex support.
-
Pydiction: Tab-complete Python code.
-
pyflakes: Highlights common Python errors like misspelling a variable name on the fly.
-
xmledit: XML/HTML tags will be completed automatically.
- Latex: Read
:help latex-suite.txt - Restructured Text:
ctrl-u 1~5inserts Part/Chapter/Section headers - HTML, Javascript, Python, CSS, C, C++, Java: use
TABto do omni-completion. - HTML/XML: End tags are automatically completed after typing a begin tag. (Typing > twice pushes the end tag to a new line.)