Vim buffer position change on window split (annoyance)

前端 未结 2 1732
野性不改
野性不改 2021-01-04 01:45

This is really starting to get on my nerves, which is weird because it\'s such a small issue.

Let\'s say I start (g)vim 7.3 (windows OR linux) with no plugins/no vim

2条回答
  •  梦毁少年i
    2021-01-04 02:30

    I tested it on a Windows machine with gvim and could reproduce your problem, here is a workaround that worked for me adding next commands to vimrc (I got it with :e $MYVIMRC):

    set splitright
    
    function MySplit()
        vsplit
        execute "normal \\"
    endfunction
    
    nmap v :call MySplit()
    

提交回复
热议问题