On Monday 13 April 2009 5:02 pm, Yue Wu wrote: > > Ben Fritz, Tony Mechelynck: > > After I check, you are right, it's an iskeyword issue, but I don't know > why my > help file has the different settings for iskeyword? It's a file not > located in > $runtimepath/doc, it's in other dir. now I have to use local modeline: > vim:tw=78:ts=8:ft=help:norl:iskeyword+=-:iskeyword+=.: > to make it work. as with so many things, you have alternatives -- the above modeline is one way -- what i like is to create a <Leader> mapping that adds to iskeyword when i'm editing something that requires it: nnoremap <Leader>h :source ~/.vim/reading_help.vim<CR>
and reading_help.vim contains simply set iskeyword+=-,. set ft=help the 'h' in the mapping helps me remember it's for help sc --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
