Skip to content
 
 

Latest commit

 

History

88 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Xitong Gao's vimrc

Author: Xitong Gao (gxtfmx@gmail.com)

Forked from vgod/vimrc https://github.com/vgod/vimrc.

HOW TO INSTALL

  1. Check out from github

     $ git clone https://github.com/admk/vimrc ~/.vim
     $ cd ~/.vim
     $ git submodule update -r --init
    
  2. Install .vimrc, .gvimrc, exuberant ctags, command-t files

     $ ./install-vimrc.sh
    

UPGRADE PLUGIN BUNDLES

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

PLUGINS

  • 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 snipMate to see more info.

  • YankRing: Maintains a history of previous yanks, changes and deletes

    :help yankring to 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.

Language specific supports

  • Latex: Read :help latex-suite.txt
  • Restructured Text: ctrl-u 1~5 inserts Part/Chapter/Section headers
  • HTML, Javascript, Python, CSS, C, C++, Java: 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.)

About

Xitong Gao's Vim configuration files

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors