Dominique Pellé wrote:
AM, SungHyun Nam wrote:
hg changeset: 2255:0e27866cea99
VIM-7.3 BETA died with sequence below:
vim newfile.sh
:w
:!chmod 0755 %
:e
[snip...]
I can't reproduce it. In your stack, I see that it's reading
"/home/namsh/tmp/ex.sh"
and /home/namsh/.vim/syntax.vim and that autocommands are triggered.
Something in your local configuration is likely to cause the bug.
Things you can try:
- try to reproduce it with vim --noplugin -u NONE
- or find the minimalistic ~/.vimrc content which still triggers the bug?
- or send your ~/.vim + ~/.vim/ content (if you don't mind sharing)
so we can maybe reproduce it
- try to run it with valgrind memory checker (just prefix vim valgrind):
$ valgrind vim newfile.sh
Yes, the syntax.vim was caused the problem.
I could reproduce the problem with script file below:
$ rm -f ex.sh; vim --noplugin -u testrc ex.sh
:w
:!chmod 0755 %
:e
And the 'testrc' is:
set nocp
" syntax on
augroup AUG_MiscFunc
au!
au BufNewFile,BufReadPre * call SyntaxTodoSet()
augroup END
func! SyntaxTodoSet()
exec 'syn keyword '.&ft.'Todo XXX TODO FIXME CAUTION NOTE WARNING'
exec 'hi link '.&ft.'Todo Todo'
endfunc
Thanks,
namsh
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php