Matt Wozniski wrote: > On Mon, Dec 14, 2009 at 4:55 AM, Torsten Andre <[email protected]> wrote: >> Hello, >> >> I'd like to map vim's command for ctags' jump to definition <C-\> to a >> new key, though I'm having some trouble with it. Before that vim shall >> split the window. >> >> I tried the following: >> >> map <F5> :sp <CR> <C-\>, >> map <F5> :sp <CR> <C-<Char-125>> >> >> but both of them don't seem to work. If I write :<C-<Char-125>> the >> correct string is formed, though this command doesn't make any sense, of >> course. >> >> Can someone tell me where the problem is? Thanks. > > You want <F5> to open the tag under the cursor in the new window? > This should do that: > > :nnoremap <F5> <C-w><C-]> > > ~Matt >
Hi Matt, thanks for your reply. I see I don't have to build this stuff my own, the command does already exist. Though my described method works as well, I just had to use the correct key: ] and not \. Somehow I though it was \ to use the tag and jump to its definition, but I automatically always typed ]. Stupid... Solved. -- You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php
