Thursday, December 10, 2020

Vim-script question

Hi,

I want to include in my .vimrc an autocommand that writes some new lines
into an empty file e.g. an zsh script.

So I wrote

au  BufNewFile *.zsh :a "#! /usr/bin/zsh"

but that does not do what I want (it does not do anything).

So my question: How can I write with the autocommand one or more lines
into an empty buffer?

Thanks for your help.

--

K.D.J.

--
--
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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/5d00aa7b-4aeb-a012-5c31-9af20823a2d1%40mailbox.org.

No comments: