Skip to content
forked from amix/vimrc

The ultimate Vim configuration: vimrc

Notifications You must be signed in to change notification settings

whenjonny/vimrc

 
 

Repository files navigation

clone & install needed files from git

git clone https://github.com/whenjonny/vimrc.git ~/.vim_runtime
sh ~/.vim_runtime/install_awesome_vimrc.sh

install ctags

apt-get install ctags

personal configs

my_configs.vim

Included Plugins

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

Plugin related mappings

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>

Normal mode mappings

Fast saving of a buffer:

nmap <leader>w :w!<cr>

About

The ultimate Vim configuration: vimrc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 98.8%
  • Ruby 0.7%
  • Python 0.2%
  • Erlang 0.1%
  • Shell 0.1%
  • CoffeeScript 0.1%