Sunday, 15 June 2014

vim: Executing a list of editor commands -


Is there a way to list the editor command? I want to execute a series of 'global' commands, and there is some sample of commands so I would like to use the list of ideals (regex search and options), and then instead of typing them into each command will run.

Thank you!

(Update: s / buffer / register / g)

If you want to run all the commands that you want to run in a register, then you can execute the register? For example, if you have a file:

 : g / dd / ya  

Pre> ABC DPTD DD DD

/ former>

Attach this yanks to all the lines with a DD and a

register if You are on the first line of the file, and type:

  @ one  

Then 2 lines will now be removed, and the file should be visible: < / P>

  ghi dd dd  

No comments:

Post a Comment