IN: vim USING: definitions io kernel namespaces parser prettyprint process sequences ; SYMBOL: vim-path SYMBOL: vim-detach "vim" vim-path set-global : vim-command ( file line -- string ) [ "\"" % vim-path get % "\" \"" % swap % "\" +" % # ] "" make ; : vim-location ( file line -- ) vim-command vim-detach get-global [ run-detached ] [ run-process ] if ; [ vim-location ] edit-hook set-global