New answers tagged

0 votes

How to open files in vertical splits by default?

Since using :vsplit is easy enough, I don't see the point to interfere within vim configurations. Other suggestions in the answers in this page are just as easy. So, for the main point, I'd suggest to ...
DrBeco's user avatar
  • 360
0 votes

Join two buffers into a single buffer

Thanks to the other answers, was able to find a set of commands that does what I'm looking for: Assume have the vertical split and focus in the left split. :wincmd l // move to right window gg ...
Matthew Webb's user avatar
0 votes

Join two buffers into a single buffer

I would: disable Vim's "mouse" handling, select the relevant text with my "mouse", copy it with my terminal/system "copy" feature, open a new buffer in Vim, put the ...
romainl's user avatar
  • 40.6k
1 vote

Join two buffers into a single buffer

I would do: :let &tw=&winwindth -1 set the text width to match the window width ggVG select all gq reformat introducing hard breaks :wincmd w switch to the other window :let &tw=&...
Vivian De Smedt's user avatar

Top 50 recent answers are included