Hi, since on my laptop there is limited size, I use :vsp together with a BufEnter function which does vertical resize the current window. So each time I place the cursor in the right or left window, it is resized to the wanted (larger) width.
However, vertical resize does not work, when the same file is loaded in both windows. (It works though, when executed in the command line manually and not by the BufEnter function.) Steps to reproduce: 1) Create .vimrc: function AlwaysCD() " use a value large enough so that the 2x this val is larger than the total width vertical resize 77 endfunction autocmd BufEnter * call AlwaysCD() 2) Start vim: vim any_file.txt " split screen, so you have same file left and right: :vsp " then try moving the cursor between windows: Ctrl-W l Ctrl-W h 3) Result: The windows are not vertically resized Other tests: 1) do manually: :vertical resize 77 (should work) 2) or load <different_file.txt> in one window and start moving the cursor from left to right: Now the BufEnter function executes 'vertical resize' as wanted. Seems like a bug to me. Could anyone confirm this? Felix --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
