On 04/13/2011 04:03 PM, 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 issuing what you typed, or are you issuing
:/string/e
(with the colon, performing an Ex-mode search)?
I don't believe there's an easy way to position the cursor
horizontally with an Ex-mode search. If you just use a regular
"/" search from Normal mode, the "/e" flag should work fine.
-tim
--
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