I had some issues with XPTemplate vim plugin. Sometimes it yields with errors, and makes impossible to edit file. I heal it by doing following steps:
How can I automate this process?
You can enter the buffer number you want to jump/edit and press the Ctrl-W ^ or Ctrl-W Ctrl-^ keys. This will open the specified buffer in a new window.
For example, when you start VIM without supplying a file for it to open, VIM starts with an empty buffer. If you want to save the changes to that buffer, then you have to tell VIM what file to write those changes to. So again, a buffer resides in memory.
Create Buffer We can use the: :new , :vnew , :enew commands to create a buffer in a new window or split. To add a file to the buffer list without opening it, we can use the :bad , :badd commands. Another command :balt works just like the :badd command but also sets the alternate file for the current window to the file.
Buffers in vim are the in-memory text of files. Your window is a viewport on a buffer. You can switch between open buffers, this is similar to tabs in other editors. Vim does have a concept of tabs too, but they are slightly different, read more about tabs in the Windows section.
Depending on the situation, a forced reload via :edit!
may already be enough. Otherwise, you could try :bdelete | edit #
.
I would also inform the plugin author, if you suspect it's due to a bug in the plugin itself.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With