On 2015-09-21 20:31, Philip Rhoades wrote:
> nnoremap <F9> :let @/=escape(getline('.')[col('.')-1], '.~\\')<cr>
> :nnoremap <F10> :let @/.=escape(getline('.')[col('.')-1], '.~\\')<cr>
>
> I didn't get very far doing a lot of Googling, but from
> experimenting with them I found F9 puts the current character under
> the cursor into the "/" register but F10 opens the file menu on my
> xfce4-term ! What is:
>
> '.~\\'
>
> supposed to do?
That's the parameter to the escape() function that you're calling.
It looks like <f9> captures the character under the cursor; escapes
periods, tildes, and back-slashes; then assigns it to the current
search register. The <f10> does the same thing except it appends
rather than assigns to the search register.
I'm not sure WHY this would be helpful, but apparently you found it
so at one time :-)
-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.
Monday, September 21, 2015
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment