when we use ":e filename" , vim always create a new buffer and load the file.
But the :r filename" just read the content to the current buffer , without
associating the file information to the current buffer .

Now , I use the bufnr('foo' , 1 ) to create a buffer , and then , i want to load
a file ( like "D:\1.txt")  to this buffer as while as associate the
file information
with this buffer , which seems that i use with one command ":e D:\1.txt".

Can  there be a way to do what i want ?

PS:
simply speaking , I would like to open ( not  just read ) a file on
the current buffer ,
without creating a new buffer .

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to