The Computer Oracle

Mapping a Piped Shell Command in Vim

--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------

Take control of your privacy with Proton's trusted, Swiss-based, secure services.
Choose what you need and safeguard your digital life:
Mail: https://go.getproton.me/SH1CU
VPN: https://go.getproton.me/SH1DI
Password Manager: https://go.getproton.me/SH1DJ
Drive: https://go.getproton.me/SH1CT


Music by Eric Matyas
https://www.soundimage.org
Track title: Cosmic Puzzle

--

Chapters
00:00 Mapping A Piped Shell Command In Vim
00:50 Accepted Answer Score 18
01:01 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>