- 
      
- 
        Save athieriot/0ae7aeedf01b5bfbef0d to your computer and use it in GitHub Desktop. 
Revisions
- 
        athieriot revised this gist Jun 20, 2015 . 1 changed file with 20 additions and 14 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -34,6 +34,7 @@ $ / end of line -------------------------------- EDIT -------------------------------- i / Insert before a / Insert after I / Insert beginning line @@ -62,6 +63,7 @@ p / paste -------------------------------- SEARCH -------------------------------- /<text> / Search a text / / Search previous text # / Search the selected word @@ -73,6 +75,7 @@ N / previous find -------------------------------- VISUAL -------------------------------- v select characters <shift-v> select line <ctrl-v> select columns @@ -84,13 +87,15 @@ y / yank selection -------------------------------- REGISTER ('+' needs vim-gnome or macvim) -------------------------------- "+y / yank to register + "+p / paste from register + :registers -------------------------------- FOLDING -------------------------------- Select a few lines: zf / fold @@ -99,6 +104,7 @@ za / unfold -------------------------------- FILES -------------------------------- vim one.txt two.txt :edit pom.xml / open a file (Autocomplete) :new / create a file @@ -112,6 +118,7 @@ vim one.txt two.txt -------------------------------- WINDOWS -------------------------------- :help :split @@ -131,6 +138,7 @@ WINDOWS -------------------------------- TABS -------------------------------- :tabnew :tabclose @@ -148,39 +156,37 @@ dma / remove mark a 'a / Jump to mark a :marks / list all marks -------------------------------- MACRO RECORD -------------------------------- qa / Start recording in register a q / stop recording @a / Play macro from register a 3@a / Play 3 times -------------------------------- EXTRA -------------------------------- :set list :set nolist :set number :set nonumber = / Formatting :! / Execute a command without exiting vim :w !sudo tee % > /dev/null / Write as root -------------------------------- CONFIGURATIO / PLUGINSN -------------------------------- ~/.vimrc cmap w!! / make new shortcuts Airline (Status bar custom) Git Gutter (Git changes) Solarized (Color scheme) 
- 
        athieriot revised this gist Jun 19, 2015 . 1 changed file with 2 additions and 3 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -43,12 +43,14 @@ O / Insert above r / replace cw / change word c} / Change paragraph x / cut character dd / cut line dw / cut word y / copy (yank) character yy / copy line 3y / copy 3 lines yw / copy word p / paste @@ -149,9 +151,6 @@ dma / remove mark a -------------------------------- EXTRA -------------------------------- :set list :set nolist 
- 
        athieriot revised this gist Jun 19, 2015 . 1 changed file with 7 additions and 2 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -184,7 +184,7 @@ PLUGINS -------------------------------- Airline (Status bar custom) Git Gutter (Git changes) Solarized (Color scheme) Surround: - cs"' / replace " by ' @@ -200,4 +200,9 @@ Supertab: - <tab> / autocompletion Zoomwin: - <leader><leader> / maximize current window Fugitive (Git integration): - :Gblame / Display blame per line - :Gstatus - / p / Add or Reset file and patch - :Gcommit / Commit 
- 
        athieriot revised this gist Jun 19, 2015 . 1 changed file with 21 additions and 2 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -79,10 +79,21 @@ y / yank selection :s/// sed on selection -------------------------------- REGISTER ('+' needs vim-gnome or macvim) -------------------------------- "+y / yank to register + "+p / paste from register + :registers -------------------------------- FOLDING -------------------------------- Select a few lines: zf / fold za / unfold -------------------------------- FILES -------------------------------- @@ -110,6 +121,8 @@ WINDOWS <ctrl+w> < / > / resize vertically split windows <ctrl+w> = / resize equally all windows <leader><leader> / maximize current window (See plugin section) <ctrl+w> HJKL / r / move windows <ctrl+w> c / close a window @@ -170,7 +183,9 @@ cmap w!! / make new shortcuts PLUGINS -------------------------------- Airline (Status bar custom) Git Gutter (Git changes) Fugitive (Git integration) Surround: - cs"' / replace " by ' - cst<br> / replace current surrounding by <br></br> @@ -181,4 +196,8 @@ Surround: <Ctrl-n> / NerdTree <Ctrl-p> / Search files Supertab: - <tab> / autocompletion Zoomwin: - <leader><leader> / maximize current window 
- 
        athieriot revised this gist Jun 19, 2015 . 1 changed file with 20 additions and 0 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -104,7 +104,25 @@ WINDOWS :split :vsplit <ctrl+w> hjkl / arrows / move cursor <ctrl+w> + / - / resize horizontally split windows <ctrl+w> < / > / resize vertically split windows <ctrl+w> = / resize equally all windows <ctrl+w> HJKL / r / move windows <ctrl+w> c / close a window -------------------------------- TABS -------------------------------- :tabnew :tabclose :tabn / next :tabp / previous :tabm / move a tab -------------------------------- MARKS @@ -151,6 +169,8 @@ cmap w!! / make new shortcuts -------------------------------- PLUGINS -------------------------------- Airline (Status bar custom) Git Gutter Surround: - cs"' / replace " by ' - cst<br> / replace current surrounding by <br></br> 
- 
        athieriot revised this gist Jun 19, 2015 . 1 changed file with 10 additions and 3 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -151,7 +151,14 @@ cmap w!! / make new shortcuts -------------------------------- PLUGINS -------------------------------- Surround: - cs"' / replace " by ' - cst<br> / replace current surrounding by <br></br> - yss) / surround the line by ( and ) - ysiw] / surround the word by [ and ] - dst / remove surrounding <Ctrl-n> / NerdTree <Ctrl-p> / Search files Autocompletion? 
- 
        athieriot revised this gist Jun 13, 2015 . 1 changed file with 13 additions and 1 deletion.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -110,6 +110,11 @@ WINDOWS MARKS -------------------------------- ma / add mark a dma / remove mark a 'a / Jump to mark a :marks / list all marks -------------------------------- EXTRA -------------------------------- @@ -126,7 +131,14 @@ c} / Change paragraph :w !sudo tee % > /dev/null / Write as root -------------------------------- MACRO RECORD -------------------------------- qa / Start recording in register a q / stop recording @a / Play macro from register a 3@a / Play 3 times -------------------------------- CONFIGURATION 
- 
        athieriot revised this gist Jun 13, 2015 . 1 changed file with 7 additions and 5 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -29,6 +29,7 @@ gg / beginning of file G / end of file 0 / beginning of line $ / end of line % / corresponding parenthesis -------------------------------- EDIT @@ -105,6 +106,10 @@ WINDOWS :tabnew -------------------------------- MARKS -------------------------------- -------------------------------- EXTRA -------------------------------- @@ -121,7 +126,6 @@ c} / Change paragraph :w !sudo tee % > /dev/null / Write as root Record -------------------------------- @@ -137,7 +141,5 @@ PLUGINS -------------------------------- Autocompletion Surround <Ctrl-n> / NerdTree <Ctrl-p> / Search files 
- 
        athieriot created this gist Jun 11, 2015 .There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,143 @@ -------------------------------- BASICS -------------------------------- i / insert u / Undo <ctrl-r> / Redo :q / quit :q! / force :wq / save and quit <ESC> Escape insert mode -------------------------------- NAVIGATE -------------------------------- hjkl or arrows / moving around w / next word b / previous word } / next paragraph { / previous :3 / move to line 3 gg / beginning of file G / end of file 0 / beginning of line $ / end of line -------------------------------- EDIT -------------------------------- i / Insert before a / Insert after I / Insert beginning line A / Insert end line o / Insert bellow O / Insert above r / replace cw / change word x / cut character dd / cut line dw / cut word y / copy (yank) character yy / copy line yw / copy word p / paste <ctrl-a> / Increase a number <ctrl-x> / Decrease a number . / Repeat last change -------------------------------- SEARCH -------------------------------- /<text> / Search a text / / Search previous text # / Search the selected word n / next find N / previous find :noh / hide highlight -------------------------------- VISUAL -------------------------------- v select characters <shift-v> select line <ctrl-v> select columns y / yank selection :s/// sed on selection "+y / yank to register + "+p / paste from register + :registers -------------------------------- FILES -------------------------------- vim one.txt two.txt :edit pom.xml / open a file (Autocomplete) :new / create a file :ls / list open files (:buffers) :n / To next file :p / To previous file :b4 / To file 4 :b <tab> / autocomplete files -------------------------------- WINDOWS -------------------------------- :help :split :vsplit :tabnew -------------------------------- EXTRA -------------------------------- 3y / copy 3 lines c} / Change paragraph :set list :set nolist :set number :set nonumber :! / Execute a command without exiting vim :w !sudo tee % > /dev/null / Write as root Marks Record -------------------------------- CONFIGURATION -------------------------------- ~/.vimrc = / Format cmap w!! / make new shortcuts -------------------------------- PLUGINS -------------------------------- Autocompletion Surround NerdTree FuzzyFinder Pathogen