Last active
June 16, 2020 17:44
-
-
Save echristopherson/37fb3f9516ece914a1e22280f801db59 to your computer and use it in GitHub Desktop.
Test ability to move to specific window in vimrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
silent belowright split file1.txt | |
silent belowright split file2.txt | |
3 wincmd w |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected result when running
vim -u NONE -U NONE -c 'silent belowright split file1.txt' -c 'silent belowright split file2.txt' -c '3 wincmd w'
: Three split windows; cursor is in bottom one (#3).Result: Three split windows; cursor is in bottom one (#3).
Expected result when running
vim -u win_pos_test.vimrc
: Three split windows; cursor is in bottom one (#3).Result: Three split windows; cursor is in top on (#1).