Closed GoogleCodeExporter closed 9 years ago
Well, the confusion is that gvim +... file.txt waits for a normal mode command
and not for an exe command as the Vim doc says. (So step 1. already builds upon
this bug.)
Original comment by enno.na...@gmail.com
on 1 Dec 2014 at 1:47
I don't understand your comment. gvim +... file.txt uses the supplied command
as an ex command, not a normal-mode command. This is exactly as the Vim doc
says. When I run your "gvim +G file.txt" command I get an error: "E492: Not an
editor command: G". Furthermore, by default Vim does not remember the position
a file was left in. So starting Vim, moving to the end of the file, closing
Vim, re-opening Vim on the file, will by default start at the first line in the
file, not the last line in the file. Your own customizations are moving the
cursor to the previous position on Vim startup; if you're having problems with
that movement, then that's a problem in your setup, not a problem in Vim.
Original comment by benjamin...@rockwellcollins.com
on 1 Dec 2014 at 6:08
Vim 7.4 works correctly with +[<number>] here (if no number is given, Vim jumps
to the last line number). I cannot reproduce the problem. Does it happen if you
start vim -u NONE -N +2
?
Original comment by chrisbr...@googlemail.com
on 1 Dec 2014 at 7:42
Thanks for your feedback. This was discussed on vim_dev at
https://groups.google.com/forum/#!topic/vim_dev/49jGSpM4I7I
The following minimal .vimrc.light allows for reproducing:
set nocompatible
filetype plugin indent on
syntax enable
runtime! macros/editexisting.vim
set nocompatible
filetype plugin indent on
syntax enable
runtime! macros/editexisting.vim
nnoremap : ,
--
It is unexpected that a normal mode mapping interferes because the user sends
no normal mode key sequences in neither command
gvim -n -u ~/.vimrc.light -U NONE --servername GVIMTEST +5 file.txt
gvim -n -u ~/.vimrc.light -U NONE --servername GVIMTEST +1 file.txt
Original comment by enno.na...@gmail.com
on 2 Dec 2014 at 4:05
See discussion at vim_dev mailing list
https://groups.google.com/forum/#!topic/vim_dev/49jGSpM4I7I
So closing as invalid.
Original comment by chrisbr...@googlemail.com
on 4 Dec 2014 at 9:44
Though using
nnoremap : ,
without an accompanying mapping like
nnoremap , :
to swap two keys is probably a bad idea, the actual reason for the
misbehaving lies in line 115 of editexisting.vim -- instead of
exe "normal " . a:command
it should better read
exe "normal! " . a:command
Original comment by jottka...@googlemail.com
on 5 Dec 2014 at 7:20
Original issue reported on code.google.com by
enno.na...@gmail.com
on 1 Dec 2014 at 11:38