Original Author: Tsung-Hsiang (Sean) Chang [email protected]
Modifier: maso (fo60213)
Fork me on GITHUB https://github.com/fo60213/vimrc.
-
Check out from github
$ git clone https://github.com/fo60213/vimrc ~/.vim $ cd ~/.vim $ git submodule update --init
-
Install ~/.vimrc and ~/.gvimrc
$ ./install-vimrc.sh
All plugins (except vim-latex, matlab-colour) were checked out as git submodules,
which can be upgraded with git pull
. For example, to upgrade Nerd Tree
$ cd ~/.vim/bundle/nerdtree
$ git pull
see the "USEFUL SHORTCUTS" section in vimrc to learn my shortcuts.
-
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
-
AutoClose: Inserts matching bracket, paren, brace or quote.
-
vim-surround: deal with pairs of surroundings.
-
matchit: extended % matching for HTML, LaTeX, and many other languages.
-
xmledit: XML/HTML tags will be completed automatically.
-
SuperTab: Do all your insert-mode completion with Tab.
-
snipMate: TextMate-style snippets for Vim
:help snipMate
to see more info. -
YankRing: Maintains a history of previous yanks, changes and deletes
:help yankring
to see more info.Note: MacVim users need to enable "Use experimental renderer" to see graphical icons.
-
vim-latex: Latex support.
-
OmniCppComplete: C/C++ omni-completion with ctags database.
-
JavaComplete: Java Omni-completion.
-
Vim-Ruby: vim configuration files to help you to programming with Ruby.
-
Matlab-colour: matlab syntax highlight, indent, and many useful things developed by Yaroslav
-
Matlab-Snippets: matlab snippets which is original from matlab-tmbundle.
- Latex: Read
:help latex-suite.txt
- Restructured Text:
ctrl-u 1~5
inserts Part/Chapter/Section headers - HTML, Javascript, Python, CSS, C, C++, Java, Ruby: use
TAB
to 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.)
- remove Command-T, Vislncr, CuteErrorMarker plug-in
- add vim-ruby plug-in
- add matlab-colour plug-in, and change color of fucntion's "end" to let it be different with loop's "end", and change its newline character to Unix style
- add matlab-snippets
- set text width restriction to 80 and set width of window to 90
- set SuperTab's function to default (C-P)
- set showing number of line(
set nu
) defaultly - change default gui mode colorscheme with koehler
- set guifont = DejaVu Sans Mono for non-Mac OS
- set colorcolumn=81 to show the limit of text width