> and can be frustrating when I forget the '-', the current
> behavior is reasonable, and I am getting better at
> remembering the '-'.
i have a script that remembers it for me:
<vhs>
#!/bin/bash
# hidden vim for use with sysin
vim -c 'call Hideme()' $@ -
</vhs>
and of course in .vimrc i have:
function! Hideme()
setlocal noswapfile
setlocal buftype=nofile
setlocal bufhidden=hide
endfunction
Hideme's cool for a lot of other functions too but that's
another story
for reading sysin i can do
ls -AlgG * | vhs
and i have a listing of the current directory in a vim
throw-away buffer -- incredibly useful
sc
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment