Friday, August 18, 2006

[Vim] Adding your own helpfile in Vim

If you want to add your own help file to vim so that you can invoke the file when you type :help (for example a collection of your gvim commands) then do this:

  1. Create your_help.txt file and place it in your $HOME/.vim/doc directory.
  2. Issue the `:helptags ~/.vim/doc` command in vim.
  3. To view your help file just type :help <your_helpfile>
  4. TAB completion works too just type :help <your_<TAB>>

That’s all there is to it!

No comments: