fix vim and gvim
parent
7d6cb82b11
commit
229576feec
|
@ -0,0 +1,4 @@
|
|||
USING: io.backend ;
|
||||
IN: editors.gvim.backend
|
||||
|
||||
HOOK: gvim-path io-backend ( -- path )
|
|
@ -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 ;
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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\"" } "."
|
||||
|
|
Loading…
Reference in New Issue