Stuff for VimEditor. = other people = * http://bullium.com/support/vim.html * http://www.tuxfiles.org/linuxhelp/vimcheat.html * http://www.cplug.org/guides/pharkas-vim/vimqrc.pdf - very pretty = brennen & co. = This was originally at: http://p1k3.com/2004/11/11/vimcheat, 'cause [[Levi]] wanted something for a laptop keyboard or similar area. Might need tweaking for that purpose. I'd suggest you import into your favorite document software and mess with font size. (Kindly preserve this iteration and make any changes to a copy below, if editing.) ---- '''move:''' '''move/act on:''' '''search/jump/mark:''' '''e'''nd, '''b'''egin word /''pattern'' fwd ctrl-b '''$''','''0''' end, begin line ?''pattern'' back k '''(''',''')''' sentence back, fwd '''n'''ext ''pattern'' { ( b h l w ) } '''{''','''}''' paragraph back, fwd '''*''' word under cursor j '''ctrl-b'''ack, '''ctrl-f'''wd page '''%''' matching bracket ctrl-f '''fA''' goes to next "A" '''m'''''x'' set mark ''x'' '''tA''' before next "A" '''``''' go back, '''`'''''x'' to mark '''a'''ppend text '''d'''elete/kill text '''r'''eplace char '''R'''eplace text d''obj'' - dw, d$, etc. '''s'''ubstitute char '''i'''nsert text dd clears whole line '''u'''ndo, '''ctrl-r'''edo '''I'''nsert at start D to end of line '''p'''ut (paste) '''x''' kill char '''c'''hange - c''obj'', cc, C '''v'''isual mode '''X''' kill back '''y'''ank/copy - y''obj'', yy '''.''' repeat edit :s/''pattern''/''replacement''/g - replace all on line (g for multiple) :%s/''pattern''/''replacement''/gc - everywhere but ask first (c for confirm) - - - cut or fold here - - - '''file ops:''' '''windows (ctrl-w then key):''' :e ''file'' edit '''n'''ew, '''s'''plit current :w ''file'' write '''v'''ertical split :wq write & quit '''j''','''k''','''h''','''l''' to jump windows :r ''file'' read into buffer '''+''','''-''','''=''' to size windows :r !''command'' - get output '''f'''ile under cursor in new window :q - quit buffer/window :split ''file'' - new with ''file'' '''format & misc tweaking:''' :set expandtab - use spaces '''J'''oin, '''gq'''''obj'' - autoformat :set shiftwidth=4 '''~''' change case of char :set textwidth=70 '''>>''','''<<''' indent, unindent :set nowrap '''=''' autoindent :''range''sort ''n'''''ctrl-a''', ''n'''''ctrl-x''' - inc or dec number by ''n'' ---- = alternate versions = Any suggestions? Alternate versions? Feel free to copy, paste, and modify below. Original version of bottom half: '''file ops:''' '''windows:''' :e ''file'' edit :new - new window :w ''file'' write :split - new on current :wq write & quit :split ''file'' - new window with file :r ''file'' read contents :vsplit - vertical split :r !''command'' - get output ctrl-w j,k,h,l to jump windows :q - quit buffer/window ctrl-w +,-,= to size windows '''format & misc tweaking:''' :set expandtab - use spaces '''J'''oin lines :set shiftwidth=4 '''gq'''''obj'' - autoformat obj :set textwidth=70 '''~''' change case of char :set nowrap '''>>''','''<<''' indent, unindent ''n''ctrl-a, ''n''ctrl-x - inc or dec number under cursor by ''n''