Vim Emulation - SlickEdit

51 downloads 213 Views 56KB Size Report
Vim Emulation. 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 ...
www.slickedit.com

Vim Emulation Cursor Movement Cursor left Left arrow, Ctrl+J Cursor right Right arrow, Ctrl+L Cursor up Up arrow, Ctrl+I Cursor down Down arrow, Ctrl+K Top of buffer Ctrl+Home, Ctrl+X Ctrl+U Bottom of buffer Ctrl+End, Ctrl+X Ctrl+J Begin line Home End line End, Ctrl+O Page up PgUp, Ctrl+B Page down PgDn, Ctrl+F Previous word Ctrl+Left Next word Ctrl+Right Top of window Ctrl+PgUp Bottom of window Ctrl+PgDn Indent to next tab stop Tab Indent to previous tab stop Shift+Tab Command mode only Cursor right l, Space, Right Cursor left h, Backspace, Left Begin next line +, Enter Cursor down j, Ctrl+N, Down Cursor up k, Ctrl+P, Up Down screen line (different when lines wrap) gj Up screen line (different when lines wrap) gk Begin previous line Begin text ^ Begin line 0 End line $ Go to line G, gg Go to column | Next word w Next non-white space word W Previous word b Previous non-white space word B Backward to end of word ge Backward to end of non-white space word gE End of word e End of non-white space word E Previous sentence ( Next sentence ) Previous paragraph { Next paragraph } Previous section [[ Next section ]] Find matching paren % Move N % down a buffer N% Move to upper-left corner of window H Move to middle of window M Move to lower-left corner of window L Jump to bookmarked line ' Jump to bookmarked column ` Move to middle of window on the current line gm

Visual mode only Select a word Select inner word Select |WORD| Select inner |WORD| Select a sentence Select inner sentence Select a paragraph Select inner paragraph Select a block Select inner block Select a Block Select inner Block

aw iw aW iW as is ap ip ab ib aB iB

Command mode only Search forward (accomodates multipliers) Search backward (accomodates multipliers) Forward repeat last search Backward repeat last search Forward character search Backward character search Move cursor up to character Move cursor backward after character Repeat character search Reverse repeat character search Set bookmark

/ ? n N f F t T ; , m

Inserting Text

Selection

Quote next character typed Ctrl+V Move text tab Ctrl+X Tab Insert buffer name Alt+N Insert/overwrite toggle Ins Insert a line (no syntax expansion) Shift+Enter Insert a space (no syntax expansion) Shift+Space

Select character/stream Alt+Z Select line Alt+L Shift block selection left Shift+F7 Shift block selection right Shift+F8 Start or extend char/stream selection Shift+ Start char/stream selection Click & Drag Start block/column selection Right-Click & Drag Extend selection Shift+Click Move selection to cursor Ctrl+Right-Click Copy selection to cursor Ctrl+Shift+Right-Click Select word Double-Click Select line Triple-Click

Command mode only Insert text Insert text at beginning of line Append text Append text after end of line Insert text below current line Insert text above current line

i I a A o O

Deleting Text

Command mode only Character visual mode v Line visual mode V Block visual mode Ctrl+V Move cursor to beginning (or end) of selection o

Delete character under cursor Cut to end line Cut line Join line to cursor

Del Ctrl+E Ctrl+Backspace Alt+J

Command mode only Delete character under cursor Delete selection Delete character before cursor Delete selection Delete text Delete to end of line

x (visual) x X (visual) d d D

Copy selection to clipboard Ctrl+Ins Copy word to clipboard Ctrl+X Ctrl+W List clipboards and optionally paste one Ctrl+X Ctrl+Y Paste Ctrl+Y, Shift+Ins Cut line Ctrl+Backspace Cut to end of line Ctrl+E Cut selection Alt+K, Shift+Del

Find next occurrence Ctrl+R Find previous occurrence Ctrl+Shift+R Incremental search Ctrl+S Resume search & replace (command line only) Ctrl+X Ctrl+Z Reverse incremental search Ctrl+X Ctrl+R Stop search or search & replaceCtrl+Alt+Shift+F2

Command mode only Paste text after cursor p Paste text after cursor (adjust indent) ]p Paste text after cursor (leave cursor after new text) gp Paste clipboard contents over selection (visual) p Paste text before cursor P Paste text before cursor (adjust indent) [p Paste text before cursor

Searching

Clipboard

(leave cursor after new text) Copy text to clipboard Copy selection to clipboard Copy line to clipboard

gP y (visual) y Y

Command Line/Text Box Editing The following keys are different in all Text Boxes except the command line if the CUA Text Box check box is enabled (Tools > Options > Redefine Common Keys): Cut selection Ctrl+X Copy selection to clipboard Ctrl+C Paste Ctrl+V Taken over by dialog manager for selecting controls Alt+A..Alt+Z Command mode only Cursor to command line toggle Ctrl+A Complete argument Space List arguments ‘?’ Previous word Ctrl+Left Next word Ctrl+Right Upcase word Ctrl+F1 Lowcase word Ctrl+F2 Cut to end of line Ctrl+E Cut line Ctrl+Backspace Insert/overwrite toggle Ins Quote next character Ctrl+V Copy word to clipboard Ctrl+X Ctrl+W Paste Ctrl+Y Paste recent clipboard Ctrl+X Ctrl+Y Insert buffer name Alt+N Expand alias at cursor. Use ALIAS command to define aliases or EX command ABBR. Ctrl+Space Retrieve previous command Up arrow, Ctrl+I Retrieve next command Down arrow, Ctrl+K Start or extend char/stream selection Shift+ Start char/stream selection Click & Drag Extend selection Shift+Click Select word Double-Click Select line Triple-Click

Files and Buffers Save current buffer Quit current buffer Next buffer Previous buffer Save and quit current buffer Open a file or find buffer List buffers

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.

F2, Ctrl+X Ctrl+S F3, Ctrl+X ‘K’ F8 Ctrl+F8 F4 F7, Ctrl+X Ctrl+F Ctrl+X Ctrl+B

www.slickedit.com

Vim Emulation Find buffer File compare Resync after compare mismatch Command mode only Save current buffer Quit current buffer Save and quit current buffer Quit current buffer without saving Write all buffers Quit all buffers Write and quit all buffers Quit all buffers without saving Write all changed buffers and exit

Ctrl+X ‘B’ F6 Shift+F6 :w :q :wq :q! :wa[ll] :qa[ll] :wqa[ll] :qa[ll]! :xa[ll]!

Windowing

Debugging

Split window horizontally Next window Zoom window toggle One window

Ctrl+X '2' Ctrl+Tab Ctrl+Z Ctrl+X '1'

Command mode only Split window horizontally :split Split window vertically :vsplit Split window and jump to tag under cursor Ctrl+w ] Split window and edit file name under the cursor Ctrl+w f Split window with empty new window Ctrl+w n Make current window the only visible window Ctrl+w o Move cursor to window below Ctrl+w j Move cursor to window above Ctrl+w k Move cursor to window below (wrap) Ctrl+w Ctrl+w Move cursor to window above (wrap) Ctrl+w W Move cursor to top window Ctrl+w t Move cursor to bottom window Ctrl+w b

Compiling and Programming Support List symbols for next/previous definition

Push a bookmark and go to the first reference to the symbol at cursor Ctrl+/ Pop a pushed bookmark Ctrl+X Ctrl+], Ctrl+, Build project Ctrl+X ‘M’, Ctrl+F5 Next error Ctrl+X Ctrl+N, Alt+F10 Set next error Ctrl+X ‘N’ Execute project Ctrl+F5 Compile current buffer Ctrl+F6 Cursor to error Alt+1 Make load current macro buffer Ctrl+X Ctrl+L Stop concurrent process Ctrl+C Start concurrent process Ctrl+X Ctrl+M Expand extension specific alias Ctrl+Shift+P Expand global alias Ctrl+Shift+O

Alt+. Ctrl+PgUp/Ctrl+PgDn

page up/down in comment Shift+PgUp/Ctrl+PgDn Parameter Info Alt+, for next/previous definition Ctrl+PgUp/Ctrl+PgDn page up/down in comment Shift+PgUp/Ctrl+PgDn Complete symbol Ctrl+Space Push a bookmark and go to the definition of the symbol at cursor Ctrl+], Ctrl+.

Stop debugging Restart debugging Clear all breakpoints Step over Step into Run to cursor Show next statement Activate breakpoints window Activate watch window Activate variables window Activate call stack Activate threads window

Shift+F5 Ctrl+Shift+F5 Ctrl+Shift+F9 F10 F11 Ctrl+F10 Alt+Pad-Star Ctrl+Alt+B, Alt+F9 Alt+3, Ctrl+Alt+W Alt+4, Ctrl+Alt+V Alt+7, Ctrl+Alt+C Ctrl+Alt+H

Macros Start/end macro recording Make and load current macro buffer

Ctrl+F11

Ctrl+X Ctrl+L Halt Slick-C macro that is prompting for a key with get_event() Ctrl+Break Halt Slick-C macro that is executing. Use this to terminate infinite loops. Ctrl+Alt+Shift+F2 If editing dialog box or macro, load and run dialog box/macro. Ctrl+Shift+Space Start recording macro Ctrl+X ‘(‘ End recording macro Ctrl+X ‘)’ Command mode only Repeat last insert or delete

Cancel Esc, Ctrl+Q Undo F9 Undo with cursor motion grouping Ctrl+F9 Redo Shift+F9, Ctrl+X ‘R’ Scroll up Shift+F1 Scroll down Shift+F2 Scroll left Shift+F3 Scroll right Shift+F4 Center line Shift+F5 Join line Alt+J Upcase word Ctrl+F1 Lowcase word Ctrl+F2 Reflow paragraph Alt+P Fundamental mode for next key press Alt+R Match parenthesis Alt+T Expand alias at cursor Ctrl+Shift+O Alias change directory Ctrl+X Ctrl+D Shell to DOS Ctrl+X Ctrl+E Command mode only Full undo u Change selected text to lowercase (visual) u Undo with cursor motion grouping U Change selected text to uppercase (visual) U Toggle the case of current character ~ Toggle the case of the selected text (visual) ~ Change text c Change to end of line C Change text in selection (visual) c, C Overstrike character(s) r Replace text in selection (visual) r Overstrike text R Substitute character(s) s Substitute line S Shift text left < Shift text right > Join line (insert spaces) J Join the selected lines (insert spaces) (visual) J Join the selected lines (no spaces) (visual) gJ EX command mode : EX editor mode Q Repeat last SUBSTITUTE & Command mode Esc, Ctrl+[

.

Miscellaneous Safe exit Alt+X, Ctrl+X Ctrl+C Menu bar F10 Help for mode or context F1 Configuration menu F5 Hex display toggle Ctrl+Shift+H Complete previous word/variable Ctrl+Shift+, Complete next word/variable Ctrl+Shift+. Complete more Ctrl+Shift+Space

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.