Vim Emulation
Total Page:16
File Type:pdf, Size:1020Kb
www.slickedit.com Vim Emulation Visual mode only (leave cursor after new text) gP Cursor Movement Select a word aw Command mode only Copy text to clipboard y Cursor left Left arrow, Ctrl+J Select inner word iw Search forward (accomodates multipliers) / Copy selection to clipboard (visual) y Cursor right Right arrow, Ctrl+L Select |WORD| aW Search backward (accomodates multipliers) ? Copy line to clipboard Y Cursor up Up arrow, Ctrl+I Select inner |WORD| iW Forward repeat last search n Cursor down Down arrow, Ctrl+K Select a sentence as Backward repeat last search N Top of buffer Ctrl+Home, Ctrl+X Ctrl+U Select inner sentence is Forward character search f Command Line/Text Box Bottom of buffer Ctrl+End, Ctrl+X Ctrl+J Select a paragraph ap Backward character search F Begin line Home Editing Select inner paragraph ip Move cursor up to character t The following keys are different in all Text End line End, Ctrl+O Select a block ab Move cursor backward after character T Page up PgUp, Ctrl+B Boxes except the command line if the Select inner block ib Repeat character search ; CUA Text Box check box is enabled Page down PgDn, Ctrl+F Select a Block aB Reverse repeat character search , Previous word Ctrl+Left (Tools > Options > Redefine Select inner Block iB Set bookmark m Common Keys): Next word Ctrl+Right Top of window Ctrl+PgUp Cut selection Ctrl+X Bottom of window Ctrl+PgDn Inserting Text Selection Copy selection to clipboard Ctrl+C Indent to next tab stop Tab Quote next character typed Ctrl+V Select character/stream Alt+Z Paste Ctrl+V Indent to previous tab stop Shift+Tab Move text tab Ctrl+X Tab Select line Alt+L Taken over by dialog manager for selecting Insert buffer name Alt+N Shift block selection left Shift+F7 controls Alt+A..Alt+Z Command mode only Insert/overwrite toggle Ins Shift block selection right Shift+F8 Cursor right l, Space, Right Insert a line (no syntax expansion) Shift+Enter Start or extend char/stream selection Command mode only Cursor left h, Backspace, Left Insert a space (no syntax expansion) Shift+Space Shift+<Cursor keys> Cursor to command line toggle Ctrl+A Begin next line +, Enter Start char/stream selection Click & Drag Complete argument Space Cursor down j, Ctrl+N, Down Command mode only Start block/column selection Right-Click & Drag List arguments ‘?’ Cursor up k, Ctrl+P, Up Insert text i Extend selection Shift+Click Previous word Ctrl+Left Down screen line (different when lines wrap) gj Insert text at beginning of line I Move selection to cursor Ctrl+Right-Click Next word Ctrl+Right Up screen line (different when lines wrap) gk Append text a Copy selection to cursor Ctrl+Shift+Right-Click Upcase word Ctrl+F1 Begin previous line - Append text after end of line A Select word Double-Click Lowcase word Ctrl+F2 Begin text ^ Insert text below current line o Select line Triple-Click Cut to end of line Ctrl+E Begin line 0 Insert text above current line O Cut line Ctrl+Backspace End line $ Command mode only Insert/overwrite toggle Ins Go to line G, gg Character visual mode v Quote next character Ctrl+V Go to column | Deleting Text Line visual mode V Copy word to clipboard Ctrl+X Ctrl+W Next word w Delete character under cursor Del Block visual mode Ctrl+V Paste Ctrl+Y Next non-white space word W Cut to end line Ctrl+E Move cursor to beginning (or end) of selection o Paste recent clipboard Ctrl+X Ctrl+Y Previous word b Cut line Ctrl+Backspace Insert buffer name Alt+N Previous non-white space word B Join line to cursor Alt+J Expand alias at cursor. Use ALIAS command Backward to end of word ge Clipboard to define aliases or EX command ABBR. Backward to end of non-white space word gE Command mode only Copy selection to clipboard Ctrl+Ins Ctrl+Space End of word e Delete character under cursor x Copy word to clipboard Ctrl+X Ctrl+W Retrieve previous command Up arrow, Ctrl+I End of non-white space word E Delete selection (visual) x List clipboards and optionally paste one Retrieve next command Down arrow, Ctrl+K Previous sentence ( Delete character before cursor X Ctrl+X Ctrl+Y Start or extend char/stream selection Next sentence ) Delete selection (visual) d Paste Ctrl+Y, Shift+Ins Shift+<Cursor keys> Previous paragraph { Delete text d Cut line Ctrl+Backspace Start char/stream selection Click & Drag Next paragraph } Delete to end of line D Cut to end of line Ctrl+E Extend selection Shift+Click Previous section [[ Cut selection Alt+K, Shift+Del Select word Double-Click Next section ]] Select line Triple-Click Searching Command mode only Find matching paren % Find next occurrence Ctrl+R Move N % down a buffer N % Paste text after cursor p Find previous occurrence Ctrl+Shift+R Paste text after cursor (adjust indent) ]p Files and Buffers Move to upper-left corner of window H Incremental search Ctrl+S Save current buffer F2, Ctrl+X Ctrl+S Move to middle of window M Paste text after cursor (leave cursor after new Resume search & replace (command line only) Quit current buffer F3, Ctrl+X ‘K’ Move to lower-left corner of window L text) gp Ctrl+X Ctrl+Z Next buffer F8 Jump to bookmarked line ' Paste clipboard contents over selection (visual) p Reverse incremental search Ctrl+X Ctrl+R Previous buffer Ctrl+F8 Jump to bookmarked column ` Paste text before cursor P Stop search or search & replaceCtrl+Alt+Shift+F2 Save and quit current buffer F4 Move to middle of window on the current line gm Paste text before cursor (adjust indent) [p Paste text before cursor Open a file or find buffer F7, Ctrl+X Ctrl+F List buffers Ctrl+X Ctrl+B To find out what a key sequence does, enter what-is (or simply what SPACEBAR) in the command line and press ENTER. When prompted, press the key sequence in question. If the key or key sequence is not bound to a command, no message appears. www.slickedit.com Vim Emulation Find buffer Ctrl+X ‘B’ Push a bookmark and go to the first reference Cancel Esc, Ctrl+Q File compare F6 to the symbol at cursor Ctrl+/ Undo F9 Resync after compare mismatch Shift+F6 Pop a pushed bookmark Ctrl+X Ctrl+], Ctrl+, Undo with cursor motion grouping Ctrl+F9 Build project Ctrl+X ‘M’, Ctrl+F5 Redo Shift+F9, Ctrl+X ‘R’ Command mode only Next error Ctrl+X Ctrl+N, Alt+F10 Scroll up Shift+F1 Save current buffer :w Set next error Ctrl+X ‘N’ Scroll down Shift+F2 Quit current buffer :q Execute project Ctrl+F5 Scroll left Shift+F3 Save and quit current buffer :wq Compile current buffer Ctrl+F6 Scroll right Shift+F4 Quit current buffer without saving :q! Cursor to error Alt+1 Center line Shift+F5 Write all buffers :wa[ll] Make load current macro buffer Ctrl+X Ctrl+L Join line Alt+J Quit all buffers :qa[ll] Stop concurrent process Ctrl+C Upcase word Ctrl+F1 Write and quit all buffers :wqa[ll] Start concurrent process Ctrl+X Ctrl+M Lowcase word Ctrl+F2 Quit all buffers without saving :qa[ll]! Expand extension specific alias Ctrl+Shift+P Reflow paragraph Alt+P Write all changed buffers and exit :xa[ll]! Expand global alias Ctrl+Shift+O Fundamental mode for next key press Alt+R Match parenthesis Alt+T Expand alias at cursor Ctrl+Shift+O Windowing Debugging Alias change directory Ctrl+X Ctrl+D Split window horizontally Ctrl+X '2' Stop debugging Shift+F5 Shell to DOS Ctrl+X Ctrl+E Next window Ctrl+Tab Restart debugging Ctrl+Shift+F5 Zoom window toggle Ctrl+Z Clear all breakpoints Ctrl+Shift+F9 Command mode only One window Ctrl+X '1' Step over F10 Full undo u Step into F11 Change selected text to lowercase (visual) u Command mode only Run to cursor Ctrl+F10 Undo with cursor motion grouping U Split window horizontally :split Show next statement Alt+Pad-Star Change selected text to uppercase (visual) U Split window vertically :vsplit Activate breakpoints window Ctrl+Alt+B, Alt+F9 Toggle the case of current character ~ Split window and jump to tag under cursor Activate watch window Alt+3, Ctrl+Alt+W Toggle the case of the selected text (visual) ~ Ctrl+w ] Activate variables window Alt+4, Ctrl+Alt+V Change text c Split window and edit file name under the cursor Activate call stack Alt+7, Ctrl+Alt+C Change to end of line C Ctrl+w f Activate threads window Ctrl+Alt+H Change text in selection (visual) c, C Split window with empty new window Ctrl+w n Overstrike character(s) r Make current window the only visible window Replace text in selection (visual) r Ctrl+w o Macros Start/end macro recording Ctrl+F11 Overstrike text R Move cursor to window below Ctrl+w j Substitute character(s) s Move cursor to window above Ctrl+w k Make and load current macro buffer Ctrl+X Ctrl+L Substitute line S Move cursor to window below (wrap) Shift text left < Ctrl+w Ctrl+w Halt Slick-C macro that is prompting for a key with get_event() Ctrl+Break Shift text right > Move cursor to window above (wrap) Ctrl+w W Join line (insert spaces) J Move cursor to top window Ctrl+w t Halt Slick-C macro that is executing. Use this to terminate infinite loops.