im command cheat sheet

im command cheat sheet by Laurent Gregoires Card Original
Redesign by Brohan
basic mobile insert mode undo, redo

hljk left / right one character; up / down line ^ Vc ^ Vn insert characters in the original meaning of c / nu U revocation nearest decimal value changes / recovery line recently been modified
bw left / right movement of a word is inserted ^ A recent inserted text. ^ R recent changes repeating / redo recently withdrew changes
ge e left / right a word (suffix cursor) ^ @ inserted text is inserted, and exit insert mode n. repeating the last n changes times
{a} to move a paragraph before / after the beginning ^ Rx is inserted as contents of registers of register x
() at the beginning of a move to the next / previous sentence ^ N ^ P completion keywords and make the forward / reverse lookup
0 gm move to the beginning / middle of the line ^ W delete the word before the cursor qc qC record typed characters, deposit / added to the register c
^ $ to move to the first non-blank character / end of the line ^ U deletes the current line before the cursor all q stops recording the input character
nG ngg moved to the n-th row, to the end of the default row / first line ^ D ^ T left / right one bit register contents @c performed indent c
n% n moved to the percentage of the file ^ KC1C2 input \ C1, C2 \ @@ represented digraph @C complex operation last
n | n-th column is moved to the current row ^ Oc Run command in the temporary mode c: @c c taken as the contents of register Ex commands to perform
nH nL to move the window to the top / bottom of the first n line X- E scrolled up one line: rg / p / c Ex command execution to find matching content in the range of p c r,
% match the next item (parentheses, brackets, etc. ......) X-Scroll line Y complex movement
M is moved to the middle row of the window . 1 P [P similar to the "p" "P", but adjust the current row is moved to the retracted tc Tc after a pre / before a character C
gR Similarly R, but Alternatively gp gP similar virtual character "p" "P", after the new text cursor;, forward / reverse repeat last "f", "F", "t" or "T" command
cm change action m complex changes across the text [[]] backward / forward one measure, placed in the beginning of section
CC or S to change the contents of the current row []] [backward / forward one measure, placed at the end of section
C change text cursor to the end of G? m m operation made across the text encoding rot13 [(]) backward / forward to unclosed '(' / ')'
S changes a character and insert mode n ^ a n ^ X cursor on or after the number or alphabetic + n / -n [{]} backward / forward to unclosed '{' / '}'
- to switch the current character case, while the cursor forward gqm formatted operation across all the rows m [m] m backward / forward java method to start
the case g ~ m m across the switching operation of the text: rce w r in the range of rows based on the width w of ranks Align [#] # backward / forward to unclosed #if, #else, #endif
gum GUM lowercase / uppercase text operation across m: rle i r in the range of left-aligned row, i column indented [*] * backward / forward to the notes start / end / * /
m left / right operation across line m: rri w r in the range of rows based on the width w of right alignment search and replace
n << n >> n lines will be left / right indent a bit! mc m across the action with the command-line filter c
delete n !! c n will use the command-line filter c / s? s forward / backward Find s
:!? r C r in the range of row filtering / s / C command o s / o forward / backward lookup s, cursor shift amount o
the cursor is deleted x X / visual mode before the character n or / forward repeat last Find
dm delete text of movement m across the N or? backward repeat the last Find
dd D delete the current row / end of the line v V character / line mode start (end) # * highlighted backwards / lookahead identifier under the cursor
J gJ connecting two indented lines deleted, inserts spaces / ^ V directly connected to column blocks manner start (end) g # g highlighted
with the "#" / "*", but searching section match
: rd line comprising the deletion range r o exchange highlight region at the beginning and the cursor position gd gD jump to the local / global declaration cursor identifier
: rdx deletion range into register row r includes the use of the last x gv start highlight the visible area: rs / f / t / x in the replacement range f to r t
options x: g- all matches, c- confirm the replacement
aw as ap select "a word" / " Sentence "/" a paragraph "
ab & aB select" block "() /" a chunk "{}: rs x r in the new range of options to repeat an alternative x


  1. End insert mode and return to command mode
    to edit copy modify - + up / down one line, to the first non-blank character
    BW forward / backward movement of a string
    ia / insert the text cursor in front of "x delete the specified next extracting and using the register x gE E placed forward / backward movement of a string (the cursor at the end)
    beginning of the line IA / insertion end of the line of text: reg display contents of all registers n_ n-1 down line, through a non-whitespace character
    gI insert text in the first column: reg x g0 display the contents of register x of the screen to move to the first character row
    beneath o O in the cursor / text inserted above moving operation g ^ g $ m ym new line drawn across to screen a non-blank line / last character
    rc replace the character at the cursor c yy or Y-shift on the entire line drawn gk gj / down a screen line
    grc Similarly r, but replacing the virtual character p P after / before the cursor is moved to the register contents fc Fc front and rear a / c at a character
    R into the replacement mode ↩︎

Published 52 original articles · won praise 1 · views 1701

Guess you like

Origin blog.csdn.net/wx25051/article/details/102752969