Create your own awesome maps

Even on the go

with our free apps for iPhone, iPad and Android

Get Started

Already have an account?
Log In

vim by Mind Map: vim
3.0 stars - 2 reviews range from 0 to 5

vim

Insert mode

paste

^R,"

change to normal mode

esc

Normal Mode

paste (put)

after, p, and move the cursor after the new text, gp, from register 'x', pux

before, P, and move the cursor after the new text, gP, from register 'x', pu!x

prepend "x to use register 'x'

quit

:q

without saving, :q!

and save, :wq, :x, ZZ

edit file

the same file, :e

:e {filename}

delete

under and after the cursor, x

before the cursor, X

acordding to {motion}, d{motion}

line, dd

until end of line, D

replace

character under the cursor, r{new_char}

entering Insert Mode, R

switch case

and move cursor right, ~

acordding to {motion}, g~{motion}

substitute

expression, :[range]s:{pattern}:{string}:[options]

modifiers, options, confirm, c, ignore errors, e, replace all occurrences in the line, g, ignore pattern case, i, don't ignore pattern case, I, print the line containing the last substitution, p, range, entire document, %, last line of document, $, line number, {number}, mark, '{mark}, between {a} and {b} ranges, {a},{b}

copy (yank) text

according to {motion}, y{motion}

line, yy, Y

prepend "x to use register 'x'

registers

select, "{register}

view, :reg

most of this actions can be prepended by a [count]

what is this [count] ?, Is the number of times the action will be repeated, unless otherwise noticed.

change to insert mode

appending, at current position, a, at end of the line, A

inserting, in current position, i, on start of the line, I, on new line, below, o, above, O

replacing, R

undo

u

:u

all changes on the line, U

redo

^R

:r

repeat

last change, .

move

up, k

down, j

left, h

right, l

to first char of line, 0, non blank, ^

to last char of line, $

to char, forward, f, and place the cursor on left, t, backward, F, and place the cursor on left, T, repeat latest move, forward, ;, backward, ,

to line [count], G, gg

by, words, forward, w, backward, b, what are they?, A word consists of a sequence of letters, digits and underscores, or a sequence of other non-blank characters, separated with white space (spaces, tabs, ), WORDS, forward, W, backward, B, what are they?, A WORD consists of a sequence of non-blank characters, separated with white space. An empty line is also considered to be a word and a WORD., sentences, forward, ), backward, (, paragraphs, forward, }, backward, {

marks

set, m{a-zA-Z}

go to, `{mark}, first non blank char, '{mark}

list, :marks

search

forward, /{pattern}, latest pattern, /, and go {offset} lines up or down, /{pattern}/{offset}, word nearest to cursor, *

backwards, ?{pattern}, latest pattern, ?, and go {offset} lines up or down, ?{pattern}?{offset}, word nearest to cursor, #

repeat, n, opposite direction, N

macro

record, start, q{letter}, end, q

apply, @{letter}, last applied macro, @@

execute

global, :g/{pattern}/{comands}, not matching {pattern}, :v/{pattern}/{comands}

re-indent

=

most useful with visual mode