Bug#363012: [vim-common]one quote mark is lost in the default vimrc
sea sea
zhuhai567 at gmail.com
Mon Apr 17 07:00:33 UTC 2006
Package: vim-common
Version: 1:6.4-007+1
I want to use vim's "last-position-jump" function,so I un-comment this
section in the default vimrc (/etc/vim/vimrc):
" Uncomment the following to have Vim jump to the last position when
" reopening a file
" if has("autocmd")
" au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
" \| exe normal g'\"" | endif
" endif
to :
" Uncomment the following to have Vim jump to the last position when
" reopening a file
if has("autocmd")
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$")
\| exe normal g'\"" | endif
endif
but when I use vim I get these errors :
#vim /etc/vim/vimrc
Error detected while processing BufRead Auto commands for "*":
E121: Undefined variable: normal
E15: Invalid expression: normal g'\"" | endif
Hit ENTER or type command to continue
This line:
\| exe normal g'\"" | endif
should be :
\| exe "normal g'\"" | endif
I am using Debian GNU/Linux Sid,kernel 2.6.16.5 and libc6 2.3.6-7
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20060417/4f949fd2/attachment.html
More information about the pkg-vim-maintainers
mailing list