|
Computer /
Gvim< python3.4 under virtualenv | Index | Quirks of true WIn10 > Gvim primer (see also this Cheat Sheet) ctrl-c or ESC - enter normal mode :w save buffer :q quit :q! force quit :e filepath - edit file :b buffer - switch to buffer :bd - deletes current buffer :s/oldtext/newtext/g - find and replace in current line, see also •, below :%s/oldtext/newtext/g - find and replace in whole buffer :75,79s/old/new/gc - - find and replace in range 74,78 and confirm each instance fX - finds first X in line dfy - delete (up to) find y . - repeat last change command (e.g. fX. repeats fXdfy) :tab ball - opens all buffers as tabs gt - next tab gT - previous tab Visual, select text by mouse (or y - yank [1] d - delete p - paste over
or select by V - visual nG - go to line n 0,$ - go to beginning,end of line mG - go to line G ggVG - select all y,d,p as above block visual e.g. comment/uncomment ctrl-v - at the beginning of block, then move to end of block shift-i# - comment/ x - uncomment ctrl-c or ESC - to extend to the block Split windows :vs - vertical, same buffer (change buffer in either with b: ) crtl-w w - right panel crtl-w ctrl-w - left panel ctrl-w c - close the right split panel normal mode -> insert, paste, delete o - add line below O - add line above I - at beginning of line text i - insert at cursor a - insert after cursor A - at end of line "+gP - paste bash buffer x - delete character dw - delete word dd - delete line D - delete to end of line command mode undo-redo u -undo ctrl-r - redo normal mode move hjkl - < v ^ > HM0$L - top of screen, middle, start of line, end of line, bottom screen gg G - top fo file, end of file ctrl-O ctrl-I back for in cursor position history nG - go to line n w,b - >< by one word % - go to matching () tab in insert mode ->| - insert tab ctrl-D - remove tab in normal mode >> - insert tab << - remove tab registers "add - deletes whole line to register a (default dd is like "dd) "ap - pastes a content of register a < python3.4 under virtualenv | Index | Quirks of true WIn10 > |