Vim


The Vim way of My

    1.hjkl,Although someone say The Vim shouldn't use this.

    2.u,A,a,ctrl+r,:qa,:qw,:x,o,O,yy,p,dd,gg,32G. More important usefull command is :h name

    3.ctrl+f,ctrl+u,ctrl+d,ctrl+b(comflict with tmux default setting)

    4.#,F/T,f/t,3fb,3Fb,H,M,L

    5.use the w,b,e,0,$,^ to more the cursor

    6./welkin,?welkin,n,N to find the word by regex

    7.d$,d0,dd,3dd,rc,Rc,x,5x,ggdG

    8.%w filename copy the line to other file.

    9.:g/^\(.*\)$\n\1$/d  删除连续相同的行,保留最后一行(What is this? never use it)

    10.4,20s/^#//g Change the # to air.

    11.:shell,:split,:vsplit(:vsp),20Ctrl+w+-,

    12.:tabnew,:tabfir,:tabl,gt,gT