HowTos:
1. How I boosted my Vim (by nvie.com)
http://nvie.com/posts/how-i-boosted-m
2. Two weeks with Vim (by soledadpenades.com)
http://soledadpenades.com/2010/11/15/tw
3. Fullscreen for GVIM in Linux (by posterous.dispatched.ch)
http://posterous.dispatched.ch/fullscre
4. How do you make vim more better? (by reddit.com)
http://www.reddit.com/r/vim/comments/e1
5. Using Git fro storing Vim configuration files (by reddit.com)
http://www.reddit.com/r/vim/comments/dw
6. The Power and Precision of Vim's Text Objects: Efficient, Elegant, Awesome.
http://jeetworks.org/node/85
7. Using undo branches (by vim.wikia.com)
http://vim.wikia.com/wiki/Using_undo_br
8. Everyone Who Tried to Convince Me to use Vim was Wrong (by yehudakatz.com)
http://yehudakatz.com/2010/07/29/everyo
9. A Starting Guide to VIM from Textmate (by blog.danielfischer.com)
http://blog.danielfischer.com/2010/11/1
10. Highlight unwanted spaces (by vim.wikia.com)
http://vim.wikia.com/wiki/Highlight_unw
11. Seven habits of effective text editing (by moolenaar.net)
http://www.moolenaar.net/habits.htm
12. Quickly and easily do a large commit from Vim (by thewebsitetailor.com)
http://www.thewebsitetailor.com/201
13. VIM Destroys All Other Rails Editors (by adamlowe.me)
http://www.adamlowe.me/2009/12/vim-dest
14. Ctags - Vim with steroids (by codingfreak.blogspot.com)
http://codingfreak.blogspot.com/200
Colorschemes:
1. Pyte (light), Twilight (cross-editor dark colorscheme), Proton (light, with gray background):
http://www.leetless.de/vim.html
2. Liquid Carbon (dark)
http://jeetworks.org/liquidcarbon
3. Mayan Smoke (pastel light)
http://jeetworks.org/mayansmoke
4. Sorcerer (dark)
http://jeetworks.org/sorcerer
5. 137 classic Vim themes
Description: http://www.vim.org/scripts/script.php?s
Link: http://www.vi-improved.org/color_sample
6. Underwater (dark)
http://www.vim.org/scripts/script.php?s
7. Vylight (A color scheme was designed to look good in an OS X environment)
http://www.node.mu/2009/03/21/new-vim-c
8. vimcolorschemetest (Vim Color Scheme Test showcases the color schemes that are available in vim.org using examples in several file types.)
http://code.google.com/p/vimcolorscheme
Screencasts:
1. Vimcasts
http://vimcasts.org/
2. Classic PeepCode screencast - Smash into Vim
http://peepcode.com/products/smash-i
3. Derek Wyatt's videos - A lot of short but usefull Vim screencasts
http://vimeo.com/user1690209/videos/sor
Plugins:
1. Gundo.vim (A Vim plugin to visualize your undo tree.)
Preview: http://www.flickr.com/photos/sjl7678/50
Link:http://bitbucket.org/sjl/gundo.vim/s
2. Vimtodo (Todo manager script inspired by todo.txt and org-mode)
http://www.vim.org/scripts/script.php?s
3. NERD Tree (Plugin is useful to have a directory tree and can more easily move the files that make up our project.)
http://www.vim.org/scripts/script.php?s
toggling NERD Tree vie F2:
1map <F2> :NERDTreeToggle<cr>
4. Taglist (Plugin used to have easier access to functions, and blocks within our code)
http://sourceforge.net/projects/vim-tag
toggling NERD Tree vie F3:
1map <F2> :TlistToggle<cr>
5. NERD Commenter (A plugin that allows for easy commenting of code for many filetypes. )
http://www.vim.org/scripts/script.php?s
6. HAML (Haml and Sass syntax, indenting, and ftplugin)
http://www.vim.org/scripts/script.php?s
Github: https://github.com/tpope/vim-haml
7. CSApprox (Make gvim-only colorschemes work transparently in terminal vim)
http://www.vim.org/scripts/script.php?s
Downloads:
1. Vim cheatsheet:
http://www.viemu.com/vi-vim-cheat-s
2. Vim Movement Shortcuts Wallpaper
http://naleid.com/blog/2010/10/04/vim-m
3. VI Editor / Linux Terminal Cheat Sheet (PDF) - Pretty cool
http://www.smashingmagazine.com/201
Vimrc tips:
1. Colorschemes for different environments:
1colo evening
2if has( "gui_running" )
3 colo github
4elseif $TERM =~ '256'
5 colo wombat256
6endif
2. Save files when Vim loses focus
1au FocusLost * :wa
Useful commands:
1. Replace the current line with the output of the command
1 :.!ls
2. Place shell command output into Vim
1find . -name complicated_condition | vim -
3. Delete all lines containing pattern
1:g/profile/d # delete all lines containing "profile"
2:g/^\s*$/d # delete all lines that are empty or that contain only whitespace
3:g!/^\s*"/d # delete all lines that do not contain a pattern
4:v/^\s*"/d # same action
5:v/error\|warn\|fail/d # to delete all lines except those that contain "error" or "warn" or "fail"
4. Rremove trailing whitespace
1match Todo /\s\+$/ # this will flag them the same way as TODO or FIXME
2:%s/\s\+$//e # to remove them, run this on normal mode
5. Exploring the file system
5.1. Open file explorer:
1:e. # in current working directory
2:sp. # in split at current working directory
3:vs. # in vertical split at current working directory
4:E # at directory of current file
5:Se # in split at directory of current file
6:Ve # in vertical split at directory of current file
5.2. Manipulating the filesystem:
1% # create a new file
2d # create a new directory
3R # rename the file/directory under the cursor
4D # Delete the file/directory under the cursor
6. NERD Commenter shortcuts
1,cc # Comments out the current line or text selected in visual mode.
2,cn # Same as <1> but forces nesting.
3,c<space> # Toggles the comment state of the selected line(s).
4,cm # Comments the given lines using only one set of multipart delimiters if possible.
5,ci # Toggles the comment state of the selected line(s) individually.
6,cs # Comments out the selected lines 'sexily'
7,cy # Same as |NERDComComment| except that the commented line(s) are yanked before commenting.
8,c$ # Comments the current line from the cursor to the end of line.
9,cA # Adds comment delimiters to the end of line and goes into insert mode between them.
10,cl # Adds comment delimiters to the start of line and goes into insert mode between them.
11,ca # Switches to the alternative set of delimiters.
12,cu # Uncomments the selected line(s).
7. Executing editable file
1! scriptname %:p
8. Using tab pages
8.1. Opening and closing tabs:
1 vim -p first.txt second.txt # opening a list of files each in seprated tab.
2 gvim -p *.txt # opening a list of matched files in seprated tabs.
3 :tabedit {file} # edit specified file in a new tab.
4 :tabfind {file} # open a new tab with filename given, searching the 'path' to find it
5 :tabclose # close current tab
6 :tabclose {i} # close i-th tab
7 :tabonly # close all other tabs (show only the current tab)
8 :tab ball # show each buffer in a tab (up to 'tabpagemax' tabs)
9 :tab help # open a new help window in its own tab page
10:tab drop {file} # open {file} in a new tab, or jump to a window/tab containing the file if there is one
11:tab split # copy the current window to a new tab of its own
8.1. Navigation between tabs:
1 :tabs # list all tabs including their displayed windows
2 :tabm 0 # move current tab to first
3 :tabm # move current tab to last
4 :tabm {i} # move current tab to position i+1
5 :tabn # go to next tab
6 :tabp # go to previous tab
7 :tabfirst # go to first tab
8 :tablast # go to last tab
In normal mode:
9 gt # go to next tab
10gT # go to previous tab
11{i}gt # go to tab in position i
9. Folding
1 zf#j # creates a fold from the cursor down # lines.
2 zf/ # string creates a fold from the cursor to string .
3 zj # moves the cursor to the next fold.
4 zk # moves the cursor to the previous fold.
5 zo # opens a fold at the cursor.
6 zO # opens all folds at the cursor.
7 zm # increases the foldlevel by one.
8 zM # closes all open folds.
9 zr # decreases the foldlevel by one.
10zR # decreases the foldlevel to zero -- all folds will be open.
11zd # deletes the fold at the cursor.
12zE # deletes all folds.
13[z # move to start of open fold.
14]z # move to end of open fold.





