DEV Community

Discussion on: Execute command line commands from inside vim

Collapse
 
vlasales profile image
Vlastimil Pospichal
:r !grep word file
:r !sqlite3 data.sqlite "select value from Snippet where key='word'"
:%!sort
:!php %
Collapse
 
iggredible profile image
Igor Irianto

Oh nice! I didn't think about sqlite and grep. Those two would be super handy.
Regarding sort, I am already used to vim's built-in sort in vim (:h sort) though :)