git clone https://github.com/whenjonny/vimrc.git ~/.vim_runtime
sh ~/.vim_runtime/install_awesome_vimrc.sh
apt-get install ctags
my_configs.vim
I recommend reading the docs of these plugins to understand them better. Each of them provide a much better Vim experience!
- NERD Tree: A tree explorer plugin for vim :NERDTree
- ack.vim: Vim plugin for the Perl module / CLI script 'ack' :Ack -i
- ag.vim: A much faster Ack :
- ctrlp.vim: Fuzzy file, buffer, mru and tag finder. In my config it's mapped to
<Ctrl+F>
, because<Ctrl+P>
is used by YankRing C-f - mru.vim: Plugin to manage Most Recently Used (MRU) files. Includes my own fork which adds syntax highlighting to MRU. This plugin can be opened with
<leader+f>
C-b - open_file_under_cursor.vim: Open file under cursor when pressing
gf
gf - zencoding: Expanding abbreviation like zen-coding, very useful for editing XML, HTML.
- vim-indent-object: Defines a new text object representing lines of code at the same indent level. Useful for python/vim scripts
- taglist.vim: Source code browser (supports C/C++, java, perl, python, tcl, sql, php, etc) nouse now
- vim-multiple-cursors: Sublime Text style multiple selections for Vim, CTRL+N is remapped to CTRL+S (due to YankRing)
- vim-expand-region: Allows you to visually select increasingly larger regions of text using the same key combination.
- vim-airline: Lean & mean status/tabline for vim that's light as air (replacing powerline)
- vim-fugitive: A Git wrapper so awesome, it should be illegal
- goyo.vim and vim-zenroom2: Remove all clutter and focus only on the essential. Similar to iA Writer or Write Room Read more here
- vim-commentary: Comment stuff out. Use
gcc
to comment out a line (takes a count),gc
to comment out the target of a motion.gcu
uncomments a set of adjacent commented lines. - syntastic: Syntax checking hacks for vim
Open bufexplorer and see and manage the current buffers:
map <leader>o :BufExplorer<cr>
Open MRU.vim and see the recently open files:
map <leader>f :MRU<CR>
Open ctrlp.vim plugin:
let g:ctrlp_map = '<c-f>'
Open PeepOpen plugin:
map <leader>j :PeepOpen<cr>
Managing the NERD Tree plugin:
map <leader>nn :NERDTreeToggle<cr>
map <leader>nb :NERDTreeFromBookmark
map <leader>nf :NERDTreeFind<cr>
goyo.vim and vim-zenroom2 lets you only focus on one thing at a time. It removes all the distractions and centers the content. It has a special look when editing Markdown, reStructuredText and textfiles. It only has one mapping.
map <leader>z :Goyo<cr>
Fast saving of a buffer:
nmap <leader>w :w!<cr>