Skip to main content

New answers tagged

0 votes

Get an exact copy of the buffer as it appears in the window

I would use the screenchar() API and loop from the right border of the window to guess the free space. For a given window number winnr you can loop: from row: getwininfo()[winnr].winrow to getwininfo(...
Vivian De Smedt's user avatar
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.2k
0 votes
Accepted

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

The bf action load the first buffer which is probably not (unless you are lucky) the one that you just left. The Ctrl-o solution I would do: Ctrl o. But if you did several motions in the new buffer ...
Vivian De Smedt's user avatar

Top 50 recent answers are included