New answers tagged

2 votes
Accepted

Command line to open list of files in as many buffer viewports

Answer To open files in horizontally split windows, you can use the -o flag. To open files in vertically split windows, you case use the -O flag. To open files in separate tabs, you can use the -p ...
nullromo's user avatar
  • 206
2 votes
Accepted

Store a windows path in a global variable and access it later?

Regular variables are not expanded in the context of Ex commands: :cd g:OneDriveB E344: Can't find directory "g:OneDriveB" in cdpath E472: Command failed so the usual workaround is to use :...
romainl's user avatar
  • 40.6k
2 votes

Store a windows path in a global variable and access it later?

I would do: :execute 'cd ' . g:OneDriveB Or: :execute 'cd' g:OneDriveB
Vivian De Smedt's user avatar
2 votes

What is a scratch window?

This is building on NeilGs answer, with two changes: the scratch buffer opens in 1/3 of the window, instead of half-half. I find that to be more how I would like such a scratchpad to behave, not ...
EmilBB's user avatar
  • 121

Top 50 recent answers are included