factor/extra/editors/gvim/gvim.factor

15 lines
322 B
Factor
Raw Normal View History

2007-09-20 18:09:08 -04:00
USING: kernel math math.parser namespaces editors.vim ;
IN: editors.gvim
TUPLE: gvim ;
M: gvim vim-command ( file line -- string )
[
"\"" % vim-path get % "\"" %
vim-switches get [ % ] when*
2007-09-20 18:09:08 -04:00
"+" % # " \"" % % "\"" %
] "" make ;
T{ gvim } vim-editor set-global
"gvim" vim-path set-global