/batVim

Bruce Wayne's vim gadget

Primary LanguageVim Script

batvim

Instalation

  • Backup your .vimrc file if you want to keep it (installation will overwrite it).
  • It is strongly recommended using Iterm2 or macVim.
  • ./batinstall.sh will install everything into a .bat_vim folder in your home directory.

Plugins

  • pathogen.vim: Manages the runtime path of the plugins.
  • YankRing: Maintains a history of previous yanks, changes and deletes.
  • NERD Tree: A tree explorer plugin for vim.
  • vim-airline: Lean & mean statusline for vim that's light as air, visit github pages for font installation instructions.
  • EasyMotion: provides a much simpler way to use some motions in vim.
  • NERDCommenter : allows for easy commenting of code for many filetypes.
  • Indent Guides: visually displaying indent levels in Vim.
  • Surround.vim: all about "surroundings": parentheses, brackets, quotes, XML tags, and more.
  • matchit: extended % matching for HTML, LaTeX, and many other languages.
  • autoclose: Inserts matching bracket, paren, brace or quote (sometimes acts buggy. leader-a to toggle).
  • unite.vim: Unite and create user interfaces.
  • vim-startify: A fancy start screen for Vim.
  • neocomplcache: Ultimate auto-completion system for Vim.
  • neosnippet: neo-snippet plugin contains neocomplcache snippets source.
  • vim-fugitive: a Git wrapper so awesome, it should be illegal.

Bindings

Some usefull shortcuts:

  • ,q = same as :q.
  • ,n = toggle NerdTree.
  • ,v = vertical split.
  • ,h = focus in left split.
  • ,l = focus in right split.
  • ,f = when used at the starting line of a code block enclosed by curly braces, will select the whole block until the matching closing brace (enters visual mode).
  • ,s = same as :w. switches to normal mode.
  • ,d = toggles gitgutter
  • ,D = fugitive :Gdiff
  • ,[space] = strips trailing whitespace
  • <Ctrl-k> = move line or block of lines up.
  • <Ctrl-j> = move line or block of lines down.
  • <Ctrl-f> = fuzzy file finder starting at the current directory tree. ([:pwd] to check current root. [:cd path] to set root directory).
  • <Space-g> = searches for the given string inside files at the current directory tree. (needs Silver Searcher https://github.com/ggreer/the_silver_searcher).

Best with batTmux!