On Monday, October 7, 2013 9:24:31 AM UTC-5, marek77 wrote: > Hi all, > > I can't seem to figure out how to map the same key (let's say <F6>) to jump > between subs in Perl when looking at a Perl file, between methods in C when > in a C source file, between keywords CREATE when in SQL, etc. I can do it on > BufEnter / BufWinEnter, but these don't happen when switching between > (already open) splits. > > > > Suggestions welcome. > >
First, BufEnter ought to fire when switching between splits. If not, WinEnter will. However, I think what you really want is a buffer-local mapping, applied via a FileType autocmd or an ftplugin file. See :help :map-<buffer> -- -- 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 [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
