Can't append line from unnamed buffer to file opened

19 views
Skip to first unread message

av

unread,
Oct 2, 2017, 9:42:20 AM10/2/17
to vim_use
Hi,

Does somebody know why I cannot append a line from a unnamed buffer (current buffer) to a file that is opened in another buffer? I get the message that the file is opened in another buffer, even if I add the !

Thanks,

Alexandre

Christian Brabandt

unread,
Oct 2, 2017, 10:07:00 AM10/2/17
to vim_use
Please give exact reproduction steps.

Christian
--
*Optische Täuschungen II*

Welches Dreieck ist am dreieckigsten?

a) ein Dreieck c) ein Dreieck mit den Winkeln 60-55-65=180
b) ein anderes Dreieck d) ein Dreieck mit den Maßen 90-60-90

alexandre viau

unread,
Oct 2, 2017, 10:18:07 AM10/2/17
to vim_use
:edit f1.txt
:new
write some text on current line
:.w! >> f1.txt
Then there is the error message "E139: File is loaded in another buffer"

--
--
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 a topic in the Google Groups "vim_use" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vim_use/GU5yrKXTyrQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vim_use+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

alexandre viau

unread,
Oct 2, 2017, 11:12:20 AM10/2/17
to vim_use
Workaround (not found by me): 

.w !cat >> f1.txt
Reply all
Reply to author
Forward
0 new messages