F9 completion inserts text into wrong window
Brought to you by:
srinathava,
tmaas
(git 089726aa0662f085757c150f35cf63b624fa44f8 2011-02-14 22:27:48, Vim 7.2)
When doing ref or cite completion with F9 with multiple files open in different vim-windows, the completion might go into the wrong window. This is because Tex_CompleteWord forgets to go to the old window. The old window is saved to s:winnum at the beginning of Tex_Complete, so a simple fix is to add
exe s:winnum.'wincmd w'
to the very beginning of Tex_CompleteWord in texviewer.vim
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
The given solution works for me.
Thank you!
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
[1] also describes the problem and the given solution. It says that the problem occurs when taglist is loaded.
1. http://vim.wikia.com/wiki/Use_Taglist_with_LaTeX_files#Comments