Last active
September 1, 2015 17:50
-
-
Save Anachron/c6eaab83c366927eb479 to your computer and use it in GitHub Desktop.
New VimRC Mappings
This 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 characters
| "========================================================== | |
| " Disable global Mappings | |
| "========================================================== | |
| "========================================================== | |
| " Mode management | |
| "========================================================== | |
| " insert mode | |
| nnoremap <C-e> <Esc>i | |
| " visual mode | |
| nnoremap <C-d> <Esc>v | |
| "========================================================== | |
| " Buffers | |
| "========================================================== | |
| " revert changes [C-a] | |
| nnoremap <C-a> :e!<Enter> | |
| " revert changes & close [C-q] | |
| nnoremap <C-q> :bd!<Enter> | |
| " revert changes & close <ALL> [C-y] | |
| nnoremap <C-y> :q!<Enter> | |
| " write changes [C-s] | |
| nnoremap <C-s> :w<Enter> | |
| " write changes & close [C-w] | |
| nnoremap <C-w> :write<Enter>:bd<Enter> | |
| " write changes & close <ALL> [C-x] | |
| nnoremap <C-x> :wq!<Enter> | |
| " << prev [A-a] | |
| noremap <M-a> :prev<Enter> | |
| " >> next [A-d] | |
| noremap <M-d> :next<Enter> | |
| " |< first [A-y] | |
| noremap <M-y> :first<Enter> | |
| " >| last [A-x] | |
| noremap <M-x> :last<Enter> | |
| "========================================================== | |
| " char | |
| "========================================================== | |
| " << prev [a] | |
| noremap a h | |
| " >> next [d] | |
| noremap d l | |
| " |< first [Y] | |
| noremap Y gg | |
| " >| last [X] | |
| noremap X G$ | |
| "========================================================== | |
| " word | |
| "========================================================== | |
| " < start [y] | |
| noremap y bw | |
| " > end [x] | |
| noremap x be | |
| " << prev [q] | |
| noremap q b | |
| " >> next [e] | |
| noremap e w | |
| " |< first [Q] | |
| noremap Q ggbw | |
| " >| last [E] | |
| noremap E G$bw | |
| " next occurance [n] | |
| noremap n * | |
| " prev occurance [b] | |
| noremap b # | |
| "========================================================== | |
| " line | |
| "========================================================== | |
| " |< start [A] | |
| noremap A 0 | |
| " >| end [D] | |
| noremap D $ | |
| " << prev [w] | |
| noremap w k | |
| " >> next [s] | |
| noremap s j | |
| " |< first [W] | |
| noremap W ggbw | |
| " >| last [S] | |
| noremap S G$bw | |
| "========================================================== | |
| " paragraph | |
| "========================================================== | |
| " < start [R] | |
| " > end [F] | |
| " << prev [r] | |
| noremap r { | |
| " >> next [f] | |
| noremap f } | |
| "========================================================== | |
| " page | |
| "========================================================== | |
| " < start [C] | |
| noremap C H | |
| " > end [V] | |
| noremap V L | |
| " << prev [c] | |
| noremap c <C-B> | |
| " >> next [v] | |
| noremap v <C-F> | |
| "========================================================== | |
| " goto [g] | |
| "========================================================== | |
| " brackets [r] | |
| noremap gr % | |
| " line [e] | |
| " buffer [f] | |
| " file [d] | |
| " window [w] | |
| " tab [a] | |
| " << prev [c] (history) | |
| noremap ga <C-o> | |
| " >> next [v] (history) | |
| noremap gv <C-i> | |
| "========================================================== | |
| " copy [p] | |
| "========================================================== | |
| " char [p] | |
| noremap pp yl | |
| " word [o] | |
| noremap po yw | |
| " line [l] | |
| noremap pl ^y$ | |
| " paragraph [k] | |
| noremap pk ya{ | |
| "========================================================== | |
| " cut [o] | |
| "========================================================== | |
| " char [p] | |
| " word [o] | |
| " line [l] | |
| " paragraph [k]) | |
| "========================================================== | |
| " delete [i] | |
| "========================================================== | |
| " char [p] | |
| " word [o] | |
| " line [l] | |
| " paragraph [k] | |
| "========================================================== | |
| " duplicate [u] | |
| " char [p] | |
| " word [o] | |
| " line [l] | |
| " paragraph [k] | |
| "========================================================== | |
| " paste [P] | |
| "========================================================== | |
| " before line [w] | |
| " after line [s] | |
| " before word [q] | |
| " after word [e] | |
| " before cursor [a] | |
| noremap Pa P | |
| " after cursor [d] | |
| noremap Pd p | |
| "========================================================== | |
| " redo [O] | |
| " undo [I] | |
| "========================================================== | |
| "========================================================== | |
| " Search | |
| "========================================================== | |
| " search | |
| noremap <silent> <Space> / | |
| " next result [N] | |
| noremap <silent> N N | |
| " prev result [B] | |
| noremap <silent> B n | |
| " ============================================================== | |
| " makro (record [K] play [k]) | |
| " cmd (open [J] repeat [j]) | |
| " mark (create [M] goto [m]) | |
| " ============================================================== | |
| " prev [Shift-tab] (buffer [q] window [w] tab [e]) | |
| " next [tab] (buffer [q] window [w] tab [e]) | |
| " ============================================================== | |
| " split (horizontal [Ctrl-Right] vertical [Ctrl-Down]) | |
| " close (buffer [Ctrl-q] window [Ctrl-w] tab [Ctrl-a]) | |
| " file (open [Ctrl-f] save [Ctrl-s]) | |
| " ============================================================== | |
| " FREE: | |
| " tT zZ hH .: ,; ?! #' -+ *$ %& /\ {} [] () "^ <> |_ ~= | |
| " PageUp PageDown Pos1 End F2 F3 F4 F5 F6 F F8 F9 F10 F11 F12 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment