On Tue, 14 Apr 2009 06:24:17 +0800, _sc_ wrote: > 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
On Tue, 14 Apr 2009 07:09:13 +0800, Tony Mechelynck wrote: > > 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. > Oh, got it, I haven't seen this post when I posted my question, thank you! :) -- Hi, Yue Wu --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
