Saturday, September 04, 2010

vim commands

fa, Fa, ta, Ta: find next a in the line

d3w, d3aw: delete 3 words

df>, dF>: delete words to > mark

. : repeat previous command

mx->d`x: delete words from 'x' mark

mx->y`x: yank words from 'x' mark

!10Gsort: sort 10 lines

!!ls: insert ls output to current line

>>, <<: shift

=%: indent inner of {}

%: move between parentheses

>%, >i{: indent inner block

v->i{>: indent inner block at visual mode

abbreviate

map i{ea} word wrap with {}

fx ; ,: repeat forward or backword find x

s, S: xi, ddi

~: upper lower convert

*, #: word search forward or backword

regex: /\/ : find only 'for' word not include 'forword', 'information'

: \t \= : +, ?

: \a \d : a word a number

No comments: