You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm seeing a strange issue that I've isolated to bufexplorer. (That is, it does not occur without bufexplorer loaded, and it does occur with an empty .vimrc and bufexplorer as the single plugin.)
This started happening with more recent vim versions. It does not reproduce in vim 8.0.1453 but it does occur in vim 8.1.something (can't recall which patch) as well as 8.2.65.
Edit any file with at least one line of text. I'll call mine x.txt.
Consider the command
1 | startinsert!
This should go to the first line and then change to insert mode at the very end of the line (as though the user had used the A motion).
This command works fine. However, if at the command-line I run
vim -c '1 | startinsert!' x.txt
then the cursor will be at the second-to-last position in the line rather than at the very end (as though the user typed $i rather than A).
Without bufexplorer loaded, vim -c '1 | startinsert!' x.txt starts vim with the cursor at the very end of the first line, just as though I ran 1 | startinsert! from inside vim.
I did a little bisecting and the problem is caused by this line of code:
I'm seeing a strange issue that I've isolated to bufexplorer. (That is, it does not occur without bufexplorer loaded, and it does occur with an empty .vimrc and bufexplorer as the single plugin.)
This started happening with more recent vim versions. It does not reproduce in vim 8.0.1453 but it does occur in vim 8.1.something (can't recall which patch) as well as 8.2.65.
Edit any file with at least one line of text. I'll call mine
x.txt
.Consider the command
This should go to the first line and then change to insert mode at the very end of the line (as though the user had used the
A
motion).This command works fine. However, if at the command-line I run
then the cursor will be at the second-to-last position in the line rather than at the very end (as though the user typed
$i
rather thanA
).Without bufexplorer loaded,
vim -c '1 | startinsert!' x.txt
starts vim with the cursor at the very end of the first line, just as though I ran1 | startinsert!
from inside vim.I did a little bisecting and the problem is caused by this line of code:
bufexplorer/plugin/bufexplorer.vim
Line 173 in 162f603
The text was updated successfully, but these errors were encountered: