HungYuHei's vimrc
Installtion
1. Backup your original vim files
mv ~/.vimrc ~/.vimrc_backup
mv ~/.vim ~/.vim_backup
2. Check out from github
git clone https://github.com/HungYuHei/vimfiles.git ~/.vim
3. Link ~/.vimrc
ln -s ~/.vim/vimrc ~/.vimrc
4. Install dependents
######Mac(homebrew) :
brew update
brew install ctags
brew install the_silver_searcher
######Ubuntu :
sudo apt-get install ctags
# Install the_silver_searcher, take a look at https://github.com/ggreer/the_silver_searcher
5. Fetch submodules
# run this command only if you are using server branch
cd ~/.vim/bundle && git rm --cache ctrlp delimitMate git_vim haml snipmate vim-slim ZoomWin
# you are required to run this commands
cd ~/.vim
git submodule init
git submodule update
That's it, enjoy! please let me know if you have any issues.
Keyboard shortcuts
Please keep your mind that <leader> is set to ,
<F7>Toggle NERDTreeFind<F8>Toggle NERDTree<F9>Toggle TagList<F10>Toggle paste mode<leader><leader>Trig EasyMotion (e.g.<leader><leader>w<leader><leader>fetc.)<leader>sHorizontally split window<leader>vVertically split windowCtrl-[hjkl]Move between windows (left down up right)Ctrl-pInvoke ctrlP (reference: ctrlP homepage)<leader>a:Ag<F5>copy the file's relative path to the clipboard<leader>cpcopy the file's absoulte path to the clipboard<leader>VReselect the text that was just pasted<leader>wStrip all trailing whitespace in the current file<leader>lcToggle highlight cursor column<leader>llToggle highlight cursor line<leader>msDisplay 80-column indication<leader>mhHide 80-column indication<leader>beToggle BufExplorer<leader>c<space>Toggle NERDCommenter<leader>igToggle indent guides
Please reference to the plugin's homepage below to see more shortcuts
Plugins
- The NERD tree : A tree explorer plugin for navigating the filesystem
- vim-surround : Plugin for deleting, changing, and adding "surroundings"
- BufExplorer : Quickly and easily switch between buffers
- NERDCommenter : A plugin that allows for easy commenting of code for many filetypes
- snipMate : TextMate-style snippets for Vim
- TagList : Provide an overview of the structure of source code files
- fugitive : A Git wrapper so awesome, it should be illegal
- the_silver_searcher : Vim plugin for the_silver_searcher, 'ag', a replacement for the Perl module / CLI script 'ack'
- rails : Ruby on Rails: easy file navigation, enhanced syntax highlighting, and more
- delimitMate : Provides auto-balancing and some expansions for parens, quotes, etc.
- matchit : Extended % matching for HTML, LaTeX, and many other languages
- EasyMotion : Vim motions on speed
- ctrlP : Fuzzy file, buffer, mru, tag, etc finder
- indentLine : A vim plugin to display the indention levels with thin vertical lines
- vim-repeat : Enable repeating supported plugin maps with "."
- Tabular : Vim script for text filtering and alignment
- zen-coding : A web-developer’s toolkit that can greatly improve your HTML & CSS workflow
- vim-javascript : Provides syntax and indent plugins.
- vim-coffee-script : CoffeeScript support for vim.
