On 14/04/09 00:02, 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. >
When opening a helpfile by the standard help commands (:help, :helptags, or Ctrl-] from another helpfile loaded in the standard way) Vim loads it in the help window and sets 'iskeyword' to every nonblank printable character. When you open it like "just any file", that magic doesn't come into play. If you want to integrate some *.txt file with Vim's help system, it has to be in the doc subdirectory of some 'runtimepath' directory, and after putting it there, the tags file in that directory must have been regenerated by means of the ":helptags" command. If you add help to Vim which is not distributed with Vim, you should drop the new helpfile in $VIM/vimfiles/doc/ (system-wide on any platform), or $HOME/vimfiles/doc/ (user-private on Windows) or $HOME/.vim/doc/ (user-private on Unix), but NOT in $VIMRUNTIME/doc because anything there may (and probably will) be silently overwritten by some future upgrade of your runtime files. Best regards, Tony. -- hundred-and-one symptoms of being an internet addict: 1. You actually wore a blue ribbon to protest the Communications Decency Act. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
