Comments on How to access shell or run external commands from within Vim

Vim, as you might already know, is a feature-packed and powerful editor. In this tutorial, we will focus on how you can execute external commands as well as access the command line shell from within the editor window.

2 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: djf

 Thanks. To the point and the security warning of dropping to a shell is very important.

By: Ross Brunson

Hi there, great article, I finally figured out how to add the output of lines ABOVE the current line, as if you had used an "O" to open a line:

:-1 read ~/block.vim

This will read in the contents of block.vim and insert that content above the current line (.) because -1 means this line less one.