first_page the funky knowledge base
personal notes from way, _way_ back and maybe today

gvim/vim: selected tips from the vim tip database; the r[ead] command; VimTip 40

From VimTip 40: The r[ead] command can be used to insert the contents of a file or the output of a command. This is cool! An example that lists the contents of the present working directory below the cursor:

:r !ls -al

This variation inserts above the first line:

:0r !ls -al

More tips can be found at http://vim.sf.net/tip_index.php

mod date: 2007-09-08T02:46:14.000Z