Bug#489239: errors in closetag
Dmitry E. Oboukhov
unera at debian.org
Fri Jul 4 10:41:10 UTC 2008
Package: vim-runtime
Severity: normal
Version: 1:7.1.314-3
I use vim and vim-runtime from Debian/sid.
I use the following plugins: EnhancedCommentify, bufexplorer, gnupg and
closetag-macros. If I open many (10-20) different (pl, cgi, html, css,
js) files in vim and do some switching between them, then sometimes (or
even often) the closetag-macros stops work normally.
If I press Ctrl-_, then I receive the series of error-messages:
=GetCloseTag()
Error detected while processing function
GetCloseTag..GetLastOpenTag..<SNR>40_Instack: line 1:
E121: Undefined variable: b:unaryTagsStack
Press ENTER or type command to continue
Error detected while processing function
GetCloseTag..GetLastOpenTag..<SNR>40_Instack: line 1:
E15: Invalid expression: b:unaryTagsStack
Press ENTER or type command to continue
Error detected while processing function
GetCloseTag..GetLastOpenTag..<SNR>40_Instack: line 3:
E121: Undefined variable: stack
Press ENTER or type command to continue
Error detected while processing function
GetCloseTag..GetLastOpenTag..<SNR>40_Instack: line 3:
E116: Invalid arguments for function match(stack, "\\<".a:el."\\>")
Press ENTER or type command to continue
Error detected while processing function
GetCloseTag..GetLastOpenTag..<SNR>40_Instack: line 3:
E15: Invalid expression: match(stack, "\\<".a:el."\\>")
Press ENTER or type command to continue
Error detected while processing function
GetCloseTag..GetLastOpenTag..<SNR>40_Instack: line 5:
E121: Undefined variable: m
Press ENTER or type command to continue
Error detected while processing function
GetCloseTag..GetLastOpenTag..<SNR>40_Instack: line 5:
E15: Invalid expression: m < 0
Press ENTER or type command to continue
After these messages the end of the tag is added normally.
If I restart vim, closetag works fine again.
PS:
$ vim-addons status
# Name User Status System Status
align disabled removed
alternate removed removed
bufexplorer installed removed
calendar removed removed
closetag installed removed
cvsmenu removed removed
debPlugin removed removed
detectindent removed removed
doxygen-toolkit removed removed
editexisting removed removed
enhanced-commentify broken removed
git-commit removed removed
gnupg installed removed
info removed removed
justify installed removed
lbdbq removed removed
markdown-syntax removed removed
matchit removed removed
minibufexplorer removed removed
nerd-commenter removed removed
omnicppcomplete removed removed
po removed removed
project installed removed
python-indent removed removed
snippetsEmu removed removed
sokoban installed removed
supertab removed removed
surround removed removed
taglist installed removed
tetris installed removed
themes removed removed
utl removed removed
vcscommand removed removed
vimplate installed removed
whatdomain removed removed
winmanager removed removed
xmledit removed removed
$ locale
LANG=ru_RU.UTF-8
LC_CTYPE="ru_RU.UTF-8"
LC_NUMERIC="ru_RU.UTF-8"
LC_TIME="ru_RU.UTF-8"
LC_COLLATE="ru_RU.UTF-8"
LC_MONETARY="ru_RU.UTF-8"
LC_MESSAGES="ru_RU.UTF-8"
LC_PAPER="ru_RU.UTF-8"
LC_NAME="ru_RU.UTF-8"
LC_ADDRESS="ru_RU.UTF-8"
LC_TELEPHONE="ru_RU.UTF-8"
LC_MEASUREMENT="ru_RU.UTF-8"
LC_IDENTIFICATION="ru_RU.UTF-8"
LC_ALL=
$ cat .vimrc
syntax on
set autoread
set copyindent
set preserveindent
set backspace=indent,eol,start
set smartindent
set smarttab
set laststatus=2
autocmd FileType
php,vim,xml,sgml,sgm,javascript,css,python,vhdl,postscr,tex,html,ruby,c,cpp,perl,sh,mail
set tabstop=4 shiftwidth=4 expandtab autoindent
au BufNewFile,BufRead /etc/apache2/* set filetype=apache shiftwidth=4
tabstop=4 expandtab
autocmd BufNewFile,BufRead *.txt set textwidth=70
let g:EnhCommentifyPretty = 'Yes'
let g:EnhCommentifyBindInInsert = 'No'
setlocal wildmenu
setlocal wcm=<M-TAB>
menu Encoding.koi8-r :e ++enc=koi8-r<CR>
menu Encoding.windows-1251 :e ++enc=cp1251<CR>
menu Encoding.ibm-866 :e ++enc=ibm866<CR>
menu Encoding.utf-8 :e ++enc=utf-8 <CR>
map <F8> :emenu Encoding.<M-TAB>
set directory=~/.vimswp
" bufexplorer
let g:bufExplorerShowDirectories = 1
let g:bufExplorerShowRelativePath = 1
let g:bufExplorerSortBy='name'
let g:bufExplorerSplitBelow=1
let g:bufExplorerSplitOutPathName=0
nmap <F4> :BufExplorer<CR>
nmap \<UP> :bp<CR>
nmap \<LEFT> :bp<CR>
nmap \<DOWN> :bn<CR>
nmap \<RIGHT> :bn<CR>
"taglist
nnoremap <silent> <F12> :TlistToggle<CR>
let g:Tlist_Auto_Update = 1
let g:Tlist_GainFocus_On_ToggleOpen = 1
let g:Tlist_Use_Horiz_Window = 0
let g:Tlist_Use_Right_Window = 1
let g:Tlist_WinHeight = 20
let g:Tlist_Compact_Format = 1
let g:Tlist_Auto_Update = 1
let g:Tlist_Close_On_Select = 1
let g:Tlist_Enable_Fold_Column = 1
let g:Tlist_Exit_OnlyWindow = 1
let g:Tlist_Auto_Highlight_Tag = 1
let g:Tlist_Inc_Winwidth = 0
let g:Tlist_Show_Menu = 1
" au BufNewFile,BufRead ${HOME}/work/* e ++enc=cp1251
" au BufNewFile,BufRead ${HOME}/work/* syntax on
" closetag
let b:closetag_html_style=1
:autocmd Filetype html,xml,xsl source ~/.vim/macros/closetag.vim
:autocmd BufNewFile,BufRead *.sgm* source ~/.vim/macros/closetag.vim
" удаляем пробелы в конце строк
nmap \s :%s/\s\+$//<CR>:echo "deleted endspases"<CR>
" шаблоны для наиболее часто редактируемых файлов
nmap _tp gg:0r ~/.vim/ft/template.pl<CR>
nmap _th gg:0r ~/.vim/ft/template.html<CR>
au BufNewFile *.p[lm] 0read ~/.vim/ft/template.pl
au BufNewFile *.htm* 0read ~/.vim/ft/template.html
" set keymap=russian-jcukenwin
" скобочки парные ставятся автоматом
imap {<CR> {<CR>}<Esc>O
" подсвечивать в режиме вставки красным цветом статуслайн
highlight StatusLine ctermfg=grey
autocmd InsertEnter * highlight StatusLine ctermfg=red
autocmd InsertLeave * highlight StatusLine ctermfg=grey
--
... mpd playing: Manowar - Ride The Dragon
. ''`. Dmitry E. Oboukhov
: :’ : unera at debian.org
`. `~’ GPGKey: 1024D / F8E26537 2006-11-21
`- 1B23 D4F8 8EC0 D902 0555 E438 AB8C 00CF F8E2 6537
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20080704/c514fe66/attachment.pgp
More information about the pkg-vim-maintainers
mailing list