3 ms·
in Vim: {range}!command will pipe content from vim to another command and back. Examples: Sort contents of lines in place :'<,'>!sort Replace lines with
by phamilton 15y ago
in Vim:
{range}!command will pipe content from vim to another command and back. Examples:
Sort contents of lines in place
:'<,'>!sort
Replace lines with calculated results (ie, line contains "2+3*5" and gets replaced with "17")
:'<,'>!bc
- Darkstar 15y agoI see. Thank you for clarifying, I wasn't aware that was possible. I won't say that's unnecessary but I have yet to need such functionality.