Can't append line from unnamed buffer to file opened

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
av
Reply | Threaded
Open this post in threaded view
|

Can't append line from unnamed buffer to file opened

av
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

--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Can't append line from unnamed buffer to file opened

Christian Brabandt

On Mo, 02 Okt 2017, av wrote:

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

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

--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
av
Reply | Threaded
Open this post in threaded view
|

Re: Can't append line from unnamed buffer to file opened

av
: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"

Le lun. 2 oct. 2017 à 17:07, Christian Brabandt <[hidden email]> a écrit :

On Mo, 02 Okt 2017, av wrote:

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

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

--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.
av
Reply | Threaded
Open this post in threaded view
|

Re: Can't append line from unnamed buffer to file opened

av
Workaround (not found by me): 

.w !cat >> f1.txt

Le lun. 2 oct. 2017 à 17:17, alexandre viau <[hidden email]> a écrit :
: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"

Le lun. 2 oct. 2017 à 17:07, Christian Brabandt <[hidden email]> a écrit :

On Mo, 02 Okt 2017, av wrote:

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

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

--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.

--
--
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 [hidden email].
For more options, visit https://groups.google.com/d/optout.