On 2016-12-14 01:03, Slartibartfast wrote:
> Anyone know a way to achieve setting the search word like this
> without causing the screen to be scrolled? I'm sure it must be
> possible but I'm having trouble working it out myself.
Could do something like
:nnoremap * :let @/='\<lt>'.expand('<lt>cword>').'\>'<cr>
-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
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment