Hi, On 12/13/06, Chuck Mason <[EMAIL PROTECTED]> wrote:
In source code, <C-]> follows a tags file. In :help it follows links (Maybe there's a helptags file?). But I've created a new temp buffer from some vim code and I want <C-]> to do something different for only this buffer. For instance I have a line that looks like: ... sometext somenumber1 someothertext2 And if the user presses <C-]> anywhere on the line I would like to take somenumber1 and do something with it (follow it by replacing the current buffer with another file referenced by the number). If the line doesn't start with ... Then ignore the keypress. I think I can handle all that but I want to know if its possible to: either set up a handler for <C-]> or must I just :map it? If I must :map it, I can :map so it only affects the current buffer? :bmap? Any help would surely help!
You can refer to the following tutorial on creating keymaps in Vim: http://www.geocities.com/yegappan/vim_keymap.html - Yegappan
