bairui

Expand System Commands on Vim Command Line

Jun 22nd, 2011
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 0.14 KB | None | 0 0
  1. function! System()
  2.   return join(split(system(input("command: ", "", "shellcmd")), "\n"), " ")
  3. endfunction
  4. cmap <expr> <leader>x System()
Advertisement
Add Comment
Please, Sign In to add comment