Tuesday, March 8, 2011

Re: How does one mix ex commands and normal commands such as ma (to set a mark) in a script?

Excerpts from Rostyslaw Lewyckyj's message of Tue Mar 08 05:21:03 +0000 2011:
> I'd like to write me a script which for example does the following:
> - set a mark at the current line ma

let mark = 'a'
exec 'normal m'.mark

or the like

> - find a line with a pattern x /^$/
:h search(
or exec "normal /...<cr>"

etc.

Marc Weber

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: