Thursday, September 21, 2017

Re: clicked cword

On Sun, Sep 17, 2017 at 12:49 AM, Xavier Noria <fxn@hashref.com> wrote:

For the archives: I realized you can use <LeftMouse> in the RHS of the mapping, this is working well:

nmap <silent> <A-LeftMouse> <LeftMouse>:exe 'tag ' . expand('<cword>')<CR>

Even simpler, since <LeftMouse> makes the clicked word the cword, that can be simplified leveraging existing commands. My current map is

nmap <silent> <A-LeftMouse> <LeftMouse>g<C-]>



--
--
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.

No comments: