increase or decrease number:

input a number, then ESC to enter normal mode, and press C-a or C-x to increase or decrease respectively by 1.

find character in current line:

<number>f<character>

where character is the character
f is fixed
number is the appeared number of c
hence this command will find and stay at the n time appearance of c in current line if has that times,
or it will stay at the last position if not.
position

area action

<action><range><object>

action includes y d v, just like their own job
object includes: w=word s=sentence p=paragraph
() “” ‘’ [] {} means the content in them
range is a or i which means all and inside respectively. this will make significance when object is parentheses

position

block operation

<C-v><spread area><your action>ESC

C-v to start block operation
spread area means you can move by hjkl to spread the block operation affecting area
your action is any action that you want to do all these lin, but if input something, you need to type I as input signal
ESC you have to type ESC to make it execute to each line you spreaded

for the instance below the command is C-v jjj I-- ESC
position

macro record

q<cache><any operation>q "to record this operation
<times>@<cache>   "to play this operation

cache can be any key, even q itself, which means you store this macro in this key.
times is how many times you want to replay this operation, with no input of times means just 1 times.

the example below is start from normal mode:
i1 ESC q21yyp C-a q and @2 and ` 100@@ `
q2 is store all operation in cache named 2;
@2 can read and execute operation store in cache 2;
100@@ means to execute last played macro for 100 times

position



Published

04 November 2013

Category

operation

Tags