]> gitweb.factorcode.org Git - factor.git/blob - extra/editors/vim/vim-docs.factor
Merge branch 'master' of git://factorcode.org/git/factor
[factor.git] / extra / editors / vim / vim-docs.factor
1 USING: definitions help help.markup help.syntax io io.files editors words ;
2 IN: editors.vim
3
4 ARTICLE: { "vim" "vim" } "Vim support"
5 "This module makes the " { $link edit } " word work with Vim by setting the " { $link edit-hook } " global variable to call " { $link vim-location } ". The " { $link vim-path } " variable contains the name of the vim executable.  The default " { $link vim-path } " is " { $snippet "\"gvim\"" } "."
6 $nl
7 "If you intend to use this module regularly, it helps to have it load during stage 2 bootstrap. On Windows, place the following example " { $snippet ".factor-boot-rc" } " in the directory returned by " { $link home } ":"
8 { $code
9 "USING: modules namespaces ;"
10 "REQUIRES: libs/vim ;"
11 "USE: vim"
12 "\"c:\\\\program files\\\\vim\\\\vim70\\\\gvim\" vim-path set-global"
13 }
14 "On Unix, you may omit the last line if " { $snippet "\"vim\"" } " is in your " { $snippet "$PATH" } "." ;
15