\_/ muh! ( _ ) -(_)- \ ~O o~__ / \ (._.) |\ ________|_|_|_________ Vim ========= Tabs: :tab {cmd} :tab help gt :tab split :tabs :tabonly :tabf inven* - search file inven* ant open in tab :tabdo %s/foo/bar/g - Running commands in tabs CTRL-W gf Open a new tab page and edit the file name under the cursor. CTRL-W gF and jump to the line number following the file name. VimCasts ========= http://vimcasts.org/ Vimperator: ============ g Print file information. Same as :pa[geinfo]. gF show source in ext. editor ;f - to focus a frame ;o - to open its location in the current tab ;t - to open its location in a new tab ;b - to open its location in a new background tab ;w - to open its destination in a new window ;F - to follow a sequence of -delimited hints in background tabs ;V - to view its destination source in the external editor ;y - to yank its destination location ;Y - to yank its text description Vim viewport keybinding quick reference ============================================== Ctrl-w q will close the active window. Ctrl-w r will rotate windows to the right. Ctrl-w R will rotate windows to the left. surroundings": parentheses, brackets, quotes, XML tags, and more. ================================================================== Normal mode ----------- ds - delete a surrounding cs - change a surrounding ys - add a surrounding yS - add a surrounding and place the surrounded text on a new line + indent it yss - add a surrounding to the whole line ySs - add a surrounding to the whole line, place it on a new line + indent it ySS - same as ySs Visual mode ----------- s - in visual mode, add a surrounding S - in visual mode, add a surrounding but place text on new line + indent it Insert mode ----------- - in insert mode, add a surrounding - in insert mode, add a new line + surrounding + indent s - same as S - same as Samples: * Delete surroundings is *ds* Old text Command New text ~ "Hello *world!" ds" Hello world! (123+4*56)/2 ds) 123+456/2
Yo!*
dst Yo! * Change surroundings is *cs* Old text Command New text ~ "Hello *world!" cs"' 'Hello world!' "Hello *world!" cs" Hello world! (123+4*56)/2 cs)] [123+456]/2 (123+4*56)/2 cs)[ [ 123+456 ]/2
Yo!*
cst

Yo!

*ys* takes an valid Vim motion Old text Command New text ~ Hello w*orld! ysiw) Hello (world)! As a special case, *yss* operates on the current line, ignoring leading Old text Command New text ~ Hello w*orld! yssB {Hello world!} There is also *yS* and *ySS* which indent the surrounded text and place it on a line of its own. VIM plugins: snipMate : TextMate-style snippets for Vim - http://www.vim.org/scripts/script.php?script_id=2540 snippetsEmu : An attempt to emulate TextMate's snippet expansion - http://www.vim.org/scripts/script.php?script_id=1318 bufexplorer ============= ,be (normal open) ,bs (force horizontal split open) ,bv (force vertical split open) (enter for open, t for tab) matchit ========= TODO: add here all bindings autoclose ========= TODO: add here all bindings NERD Tree ========= * Use the natural vim navigation keys hjkl to navigate the files. * Press o to open the file in a new buffer or open/close directory. * Press t to open the file in a new tab. * Press i to open the file in a new horizontal split. * Press s to open the file in a new vertical split. * Press p to go to parent directory. * Press r to refresh the current directory. http://www.vim.org/scripts/script.php?script_id=1658 TODO: add here all bindings ZenCoding =============== HowTo: http://www.smashingmagazine.com/2009/11/21/zen-coding-a-new-way-to-write-html-code/ Zen HTML Elements: http://code.google.com/p/zen-coding/wiki/ZenHTMLElementsEn Zen CSS properties: http://code.google.com/p/zen-coding/wiki/ZenCSSPropertiesEn Zen HTML Selectors: http://code.google.com/p/zen-coding/wiki/ZenHTMLSelectorsEn http://www.vim.org/scripts/script.php?script_id=2981 http://code.google.com/p/zen-coding/ Others: http://www.smarty.net/rightforme.php http://www.vim.org/scripts/script.php?script_id=1798 http://www.vim.org/scripts/script.php?script_id=1984 Command-T ============= The following mappings are active when the prompt has focus: move the cursor one character to the left move the cursor one character to the right move the cursor to the start (left) move the cursor to the end (right) clear the contents of the prompt The following mappings are active when either the prompt or the match listing has focus: open the selected file open the selected file in a new split window open the selected file in a new split window open the selected file in a new vertical split window open the selected file in a new tab cancel (dismisses match listing) cancel (dismisses match listing)