On 14/04/11 11:19 AM, John Beckett wrote:
Richard Livornese wrote:
I'm trying to figure out how the correct command to search
for a string and have the cursor positioned at the end(or
beginning) of that string.
From the documentation, it seems to me this should work:
/string/e
But when I try that I get the message: E481: No range allowed.
Are you typing a colon first? Don't!
Or if you are using it in a script, use the :normal command.
normal! "/string/e"
Ben.
--
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