Thursday, February 7, 2013

Re: vim: help for scripting

> if !exists('g:voom_return_key')
> let g:voom_return_key = '<Return>'
> endif

Let's you overide the <CR> key.

> exe "nnoremap <buffer><silent> ".g:voom_return_key." :<C-u>call Voom_TreeSelect(0)<CR>"
THis means fill in the setting defined above. Thus its basically:

nnoremap <buffer><silent> <CR> :<c-u>call Voom_TreeSelect(0)

You only want what vim call the RHS (righthandside): call Voom_TreeSelect(...)
Use that instead of normal "<cr>"

At least you should have enough info now to find a way to succeed.

Marc Weber

--
--
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/groups/opt_out.

No comments: