On Nov 22, 6:17 am, Tim Chase v...@tim.thechases.com wrote:
You can do the following in a script which, while 2 steps, I find
equally clear as Tony's use of search()
let @/=@
/
Yes, the terser, the better
As a side-note, depending on your line's contents, you may have
to wrap
On Mon, Nov 21, 2011 at 7:27 PM, Tony Mechelynck
antoine.mechely...@gmail.com wrote:
In scripts, I use ex-commands as much as possible, because _every_ line of a
script must be an ex-command,
...
where the initial colons at the start of each line are not written simply
because every script
On Nov 21, 7:41 pm, Tony Mechelynck antoine.mechely...@gmail.com
wrote:
The reason why normal-mode commands must be prefixed by normal in
scripts is that the :normal command executes its argument as a
normal-mode command (or set of commands). If you want to execute :normal
as part of a
On Nov 21, 8:28 pm, Tony Mechelynck antoine.mechely...@gmail.com
wrote:
I find it less confusing, when typing at the command-line (not in a
script) to type complex commands (:while, :if, etc.) all on one line
until their :endwhile, :endif, etc., separating intervening commands
with bars,
On 11/22/11 07:16, Graham Lawrence wrote:
Then they are quite different, I was thinking /@ in script would be
the equivalent of /^R at the command line.
You can do the following in a script which, while 2 steps, I find
equally clear as Tony's use of search()
let @/=@
/
The first line
in which the first gg works, the second gg fails.
--
View this message in context:
http://vim.1045645.n5.nabble.com/In-script-always-search-from-start-of-buffer-tp5008841p5010270.html
Sent from the Vim - General mailing list archive at Nabble.com.
--
You received this message from the vim_use
On 11/21/11 05:11, Graham Lawrence wrote:
On Sun, Nov 20, 2011 at 1:12 PM, Tim Chasev...@tim.thechases.com wrote:
...:b#cr:0sil! /c-r0i
and just prefix the search/silent command with the line number from which
you want to start (either 0 in my example, or possibly 1; difference
being what
/maillist.php
If you reply to this email, your message will be added to the discussion
below:
http://vim.1045645.n5.nabble.com/In-script-always-search-from-start-of-buffer-tp5008841p5009181.html
To unsubscribe from In script always search from start of buffer, click
here
On Mon, Nov 21, 2011 at 4:44 AM, Tim Chase v...@tim.thechases.com wrote:
In normal-mode, the number prefixing a search is a count, to find the Nth
match. In command-line mode (entered when you hit the colon), it's the line
at which to start.
But one thing still puzzles me: in fact, I had
On 21/11/11 14:19, porphyry5 wrote:
On Sun, Nov 20, 2011 at 5:10 PM, Tony Mechelynck [via VIM]
[hidden email] /user/SendEmail.jtp?type=nodenode=5010492i=0 wrote:
Yes, and why not use bar-separated commands? You _are_ running in
'nocompatible' mode aren't you? The following (untested)
On 21/11/11 15:23, Graham Lawrence wrote:
On Mon, Nov 21, 2011 at 4:44 AM, Tim Chasev...@tim.thechases.com wrote:
In normal-mode, the number prefixing a search is a count, to find the Nth
match. In command-line mode (entered when you hit the colon), it's the line
at which to start.
But one
On 21/11/11 12:22, porphyry5 wrote:
On Sun, Nov 20, 2011 at 1:25 PM, Gary Johnson-4 [via VIM]
[hidden email] /user/SendEmail.jtp?type=nodenode=5010270i=0 wrote:
On 2011-11-20, porphyry5 wrote:
In a script, how can I get repeated searches always to begin at the
start
of
the buffer?
If
:
http://vim.1045645.n5.nabble.com/In-script-always-search-from-start-of-buffer-tp5008841p5008841.html
Sent from the Vim - General mailing list archive at Nabble.com.
--
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
On 11/20/11 14:58, porphyry5 wrote:
In a script, how can I get repeated searches always to begin
at the start of the buffer? If I precede the search with gg
or :cursor(1, 1) I get E492, with 1G I get E464.
:map p$ ggdd:while @ != CR:b#CR:cursor (1,
1)CR:silent! /^RCR0i$SpaceEsc:b#CRdd:endwhile
On 2011-11-20, porphyry5 wrote:
In a script, how can I get repeated searches always to begin at the start of
the buffer?
If I precede the search with gg or :cursor(1, 1) I get E492, with 1G I get
E464.
:map p$ ggdd:while @ != CR:b#CR:cursor (1, 1)CR:silent!
On 20/11/11 22:24, Gary Johnson wrote:
On 2011-11-20, porphyry5 wrote:
In a script, how can I get repeated searches always to begin at the start of
the buffer?
If I precede the search with gg or :cursor(1, 1) I get E492, with 1G I get
E464.
:map p$ ggdd:while @ != CR:b#CR:cursor (1,
16 matches
Mail list logo