Useful Vim Plugins

2,704 views

Published on

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
2,704
On SlideShare
0
From Embeds
0
Number of Embeds
15
Actions
Shares
0
Downloads
37
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Useful Vim Plugins

  1. 1. Vim Talk! 08/01/2011
  2. 2. Who am I? ● Brian Racer ● http://brianracer.com ● @anveo ● http://github.com/anveo/dotfilesI have been using vim on a daily basis for about 5 years
  3. 3. Learn VIM Incrementally● start slow● use a few ideas at a time until you have committed them to muscle memory or internalized them
  4. 4. Should I use the Terminal or gVim/MacVim? ● I prefer the GUI clients ● Nicer colors ● No terminal binding clashes ● MacVim has a nice fullscreen mode ● However, I want GUI vim to *look* like a terminal window ○ remove all the chrome
  5. 5. Example of superior GUI color● colorcolumn● line overflow
  6. 6. My FAVORITE Tip!Swap your Caps Lock and Esc keys! ● you never use your caps lock key ● useful outside of vim!
  7. 7. Remap Spacebar● apparently I have weak pinkies and strain my wrists trying to make a colon noremap <Space> :
  8. 8. Understand :paste mode nmap <F3> :set paste<CR> nmap <F4> :set nopaste<CR>
  9. 9. Keep <leader><leader> free for misc tasks :map ,, :ruby %<cr>
  10. 10. Quick ruby helpers● symbol-ize a word● hash-rocket
  11. 11. Useful Vim Plugins
  12. 12. NERDTree https://github.com/scrooloose/nerdtree
  13. 13. buffexplorer vs. minibufexpl http://www.vim.org/scripts/script.php? script_id=42 (use buffexplorer)
  14. 14. SuperTab continued https://github.com/ervandew/supertabBe sure to use the above version! SuperTab on vim.org has been discontinued.
  15. 15. snipMate.vim https://github.com/msanders/snipmate.vim● I suggest ignoring the snippets that are provided● bind a command to opening your snippet and reloading the snippets
  16. 16. matchithttp://www.vim.org/scripts/script. php?script_id=39
  17. 17. Command-T https://wincent.com/products/command-t● fast file navigation● build with system ruby (rvm use system)● matches entire file path unlike textmate
  18. 18. ack.vim http://betterthangrep.com/ https://github.com/mileszs/ack.vim● better than vims grep● better than remapping vims grep to ack
  19. 19. zoomWin.vim http://mysite.verizon.net/astronaut/vim/index.html#ZOOMWIN
  20. 20. interactive_editor https://github.com/jberkel/interactive_editor● gem install interactive_editor● require in ~/.irbrc
  21. 21. sparkup.vim https://github.com/rstacruz/sparkup● ZenCoding for vim● selector expansion● element expansion
  22. 22. Tim Pope scriptshttps://github.com/tpope
  23. 23. ragtag.vimhttps://github.com/tpope/vim-ragtag
  24. 24. rails.vimhttps://github.com/tpope/vim-rails
  25. 25. endwisehttps://github.com/tpope/vim- endwise
  26. 26. surroundhttps://github.com/tpope/vim- surround
  27. 27. repeathttps://github.com/tpope/vim-repeat
  28. 28. fugitive.vim https://github.com/tpope/vim-fugitive● Amazing git integration within vim● Too awesome for this presentation● See vimcasts for a 5 part series on this plugin
  29. 29. pathogen https://github.com/tpope/vim-pathogen● More sane organization of plugins● Kind-of a bundler for vim● Makes it easy to try new plugins
  30. 30. </tpope>
  31. 31. gundo http://sjl.bitbucket.org/gundo.vim/ https://github.com/sjl/gundo.vim● requires vim 7.3● vim must have python support
  32. 32. syntastichttps://github.com/scrooloose/syntastic/
  33. 33. NERDCommentorhttps://github.com/scrooloose/nerdcommenter

×