fix vim and gvim

db4
Doug Coleman 2008-01-13 07:58:29 -10:00
parent 7d6cb82b11
commit 229576feec
4 changed files with 9 additions and 7 deletions

View File

@ -0,0 +1,4 @@
USING: io.backend ;
IN: editors.gvim.backend
HOOK: gvim-path io-backend ( -- path )

View File

@ -1,13 +1,10 @@
USING: io.backend io.files kernel math math.parser
namespaces editors.vim sequences system combinators
vocabs.loader ;
namespaces sequences system combinators
editors.vim editors.gvim.backend vocabs.loader ;
IN: editors.gvim
TUPLE: gvim ;
HOOK: gvim-path io-backend ( -- path )
M: gvim vim-command ( file line -- string )
[ "\"" % gvim-path % "\" \"" % swap % "\" +" % # ] "" make ;

View File

@ -1,4 +1,4 @@
USING: editors.gvim io.unix.backend kernel namespaces ;
USING: io.unix.backend kernel namespaces editors.gvim.backend ;
IN: editors.gvim.unix
M: unix-io gvim-path

View File

@ -1,5 +1,6 @@
USING: definitions editors.vim help help.markup help.syntax io io.files
USING: definitions help help.markup help.syntax io io.files
editors words ;
IN: editors.vim
ARTICLE: { "vim" "vim" } "Vim support"
"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\"" } "."