Skip to content

alfredtofu/vimfiles

 
 

Repository files navigation

Zhujin's vim files

Bundled Plugins

  • c.vim - C/C++ IDE -- Write and run programs. Insert statements, idioms, comments etc
  • closetag - Functions and mappings to close open HTML/XML tags
  • delimitMate - provides insert mode auto-completion for quotes, parens, brackets, etc
  • endwise - wisely add "end" in ruby, endfunction/endif/more in vim script, etc
  • indent guides - visually displaying indent levels in code
  • matchit - extended % matching for HTML, LaTeX, and many other languages
  • neocomplcache - Ultimate auto-completion system
  • neosnippet - adds snippet support to Vim
  • nerd commenter - for intensely orgasmic commenting
  • nerd tree - tree explorer plugin for navigating the filesystem
  • powerline - create better-looking, more functional vim statuslines
  • rainbow parenthesis - highlights matching parenthesis with a rainbow of colors
  • snipmate-snippets - vim-snipmate default snippets
  • supertab - Perform all your vim insert mode completions with Tab
  • surround - quoting/parenthesizing made simple
  • syntastic - Syntax checking hacks for vim
  • tabbar - add tab bar (derived from miniBufExplorer)
  • tagbar - displays tags in a window, ordered by class etc
  • vim-autoformat - Format the code
  • vim-easymotion - provides a much simpler way to use some motions in vim
  • vim-scripts/MatlabFilesEdition - script for Matlab, support: Syntax highlighting, Correct setting to use the matchit.vim script, Correct indentation and Tag support
  • emmet - for high-speed HTML, XML, XSL, etc coding and editing

Themes

Dependencies

  • ctags - required by tagbar

For ArchLinux.

sudo yaourt -S ag ctags

For MacOS:

brew install ag ctags

Note that package names and install tools may differ in other environments.

  • Matlab syntax checker - mlint

Make mlint(in the directory of Matlab) findable in shell.

  • vim-gnome - for system clipboard

For Ubuntu. sudo apt-get install vim-gnome

Installation

Backup your own vim files.

mv .vim .vim.bak
mv .vimrc .vimrc.bak

Clone this repository.

git clone git://github.com/alfredtofu/vimfiles.git .vim

Create link for .vimrc.

ln -s .vim/vimrc .vimrc

Install the plugins (This step may take some time. Go have yourself a cup of tea).

.vim/install.sh

Key Bindings

  • F2 -> Toggle highlight mode
  • F3 -> Toggle paste mode
  • F4 -> Toggle indentation guides
  • F5 -> Toggle Nerd-Tree file viewer
  • F6 -> Toggle tagbar
  • F7 -> Format the code
  • Ctrl + j -> Call zen-coding expansion on html tags
  • Ctrl + c -> Copy content of current file to system clipboard
  • Alt + 1~9 -> Switch between multiple buffers
  • Alt + x -> Delete current tab, remove it from tagbar
  • gr gR -> local/global variable replace

About

My vim plugins and configuration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 93.2%
  • Shell 6.8%