> There must be a way to have vim create a scratch buffer on
> start up. At the moment am using this -
>
> map <Leader>a :new scratch.foo<cr>
>
> which works but... would be nice to have this automated.
I don't quite understand the requirement. A default install
of Vim starts with an unnamed buffer that you can type in, and
save if you want. What exactly do you mean by a scratch buffer?
Often people use "scratch buffer" to mean a buffer with no file,
and which is flagged to be temporary (you can exit Vim and will
see NO warning that you have not saved the text in the scratch
buffer).
Do you want to open Vim at a particular file on each startup?
There is a VimEnter (:help VimEnter) event which I suppose could
be used to do something, or you could think about a command-line
alias to pass suitable parameters to Vim.
John
--
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