Custom Search

Tuesday, October 8, 2013

How to VIM import the result of a command into the current file

1)
vim myfile.txt

2)
!!ls -l
!!svn log -l 5
!!cat anotherfile.txt

3) OR
:r !ls -l
:r !svn log -l 5
:r !cat anotherfile.txt

1 comment:

  1. Working with external commands
    http://www.linux.com/learn/tutorials/442419-vim-tips-working-with-external-commands
    :!python example.py

    ReplyDelete