Skip to main content
Share Your Experience: Take the 2024 Developer Survey
2 votes
Accepted

How to let buffer show relative path when splitting?

When you do: :vsplit %:p:h/foo.bar Vim expands %:p:h to the full path of the directory containing the current file. This means that you give Vim the full path of foo.bar, which becomes the name of ...
romainl's user avatar
  • 41.1k
1 vote

Cannot go back to previous window of an opened one using bf, especially when having 2 or more windows open at the same time

When you do: $ vim compile.f rtl.f tb.f -O Vim creates one buffer for each file: compile.f, rtl.f, and tb.f and adds them to a global buffer list, generally in the order you gave at the command-line, ...
romainl's user avatar
  • 41.1k
1 vote

Why does :bd closes tabs instead of buffers?

Why does :bd closes tabs instead of buffers? If the "deleted" buffer is displayed in a window and its alternate file doesn't have unsaved changes, then the window is closed. If that window ...
romainl's user avatar
  • 41.1k

Only top scored, non community-wiki answers of a minimum length are eligible