1
vote
2answers
328 views

How to get vim to retain cursor position when opening a split

When I open a vertical split in vim, it takes my current line and bumps it to the top of the buffer (scrolling the entire file up). How do I get vim to retain its current position?
2
votes
2answers
332 views

How to stop Vim from scrolling when splitting vertically

The problem Somehow on this box every time I split a window (^W v or :vs) the original pane scrolls in such a way that my cursor is exactly scrolloff=5 from the top. I have tried to remove all ...
5
votes
2answers
2k views

Making the active window in vim more obvious

My workspace is normally one very big xterm with vim, split into six or more buffers. It would be really helpful if it were more obvious which one was the active buffer. Right now I'm using the ...
17
votes
3answers
4k views

Using the vim split command from the command line to get 4 quater splits

I want to open four vim files on the command line: vim file1 file2 file3 But I would like each file to be opened in a separate split: vim -c "split file1" -c "split file2" -c "split file3" file4 ...