The Computer Oracle

Mapping a Piped Shell Command in Vim

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Track title: CC L Beethoven - Piano Sonata No 8 in C

--

Chapters
00:00 Mapping A Piped Shell Command In Vim
00:49 Accepted Answer Score 18
01:05 Thank you

--

Full question
https://superuser.com/questions/134148/m...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#mac #shell #vim

#avk47



ACCEPTED ANSWER

Score 18


Try putting this in your ~/.vimrc file:

nmap <Leader>r :w !ls <bar> mvim -<CR>

or

nmap <Leader>r :w !ls \| mvim -<CR>