On 11/11/08 15:40, StarWing wrote: > 15. Highlighting tags *tag-highlight* > > If you want to highlight all the tags in your file, you can use the > following > mappings. > > <F11> -- Generate tags.vim file, and highlight tags. > <F12> -- Just highlight tags based on existing tags.vim file. > :map<F11> :sp tags<CR>:%s/^\([^ :]*:\)\=\([^ ]*\).*/syntax keyword > Tag \2/<CR>:wq! tags.vim<CR>/^<CR><F12> > :map<F12> :so tags.vim<CR> > > just tried, but no effect. just create a file named tags.vim > contains"syntax keyword Tag", not else. > how can i execute a command, and make the output of command in a spilt > window?
You must already have tags, IOW, a "tags" file. If you don't, you must first generate the tags file, e.g. by means of Exuberant Ctags. Best regards, Tony. -- The problem with the gene pool is that there is no lifeguard. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
