Skip to content

Instantly share code, notes, and snippets.

@topfunky
Created April 1, 2010 17:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save topfunky/352147 to your computer and use it in GitHub Desktop.
Save topfunky/352147 to your computer and use it in GitHub Desktop.
(defun vim-open-buffer ()
"Open current file in Vim"
(interactive)
(shell-command-to-string (concat "vim " buffer-file-name)))
@topfunky
Copy link
Author

topfunky commented Apr 1, 2010

Mostly for humor! It locks up my copy of Emacs after forking to Vim, which adds extra hilarity to the experience.

@dbr
Copy link

dbr commented Apr 2, 2010

Perhaps this could launch vim in ansi-term, rather than locking up the emacs instance? Slightly more useful, in a perverse way..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment