Skip to content

Instantly share code, notes, and snippets.

@topfunky
Created April 1, 2010 17:59
Show Gist options
  • Select an option

  • Save topfunky/352147 to your computer and use it in GitHub Desktop.

Select an option

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

topfunky commented Apr 1, 2010

Copy link
Copy Markdown
Author

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

@dbr

dbr commented Apr 2, 2010

Copy link
Copy Markdown

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