Saturday, October 2, 2010

file that hangs vim

function! SipmapRuler( type )
let line = line(".") - 1

if a:type == 1
call append( line, "INFO ....12....18....24....30....36....42....48....54....60....66....72....78%$" )
if !exists("g:sipmap_1ruler")
call append( line, "INFO -----I-----I-----I-----I-----I-----I-----I-----I-----I-----I-----I-----I%$" )
endif
else
call append( line, "INFO ....12....18....24....30....36....42....48....54....60....66....72....78....84....90....96...102...108...114...120...126...132%$" )
if !exists("g:sipmap_1ruler")
call append( line, "INFO -----I-----I-----I-----I-----I-----I-----I-----I-----I-----I-----I-----I-----I-----I-----I-----I-----I-----I-----I-----I-----I%$" )
endif
endif
endfunction

Hi guys,
opening the attached file hangs vim. This fragment used to be part of a
larger file. That one hangs only when this fragment gets into view. Am
guessing it's syntax related. Happens in several versions, also latest:

VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Oct 2 2010 19:22:04)
Included patches: 1-19
Compiled by Mark Huiskes<Mark.Huiskes@gmail.com>
Huge version with GTK2 GUI. Features included (+) or not (-):
+arabic +autocmd +balloon_eval +browse ++builtin_terms +byte_offset +cindent
+clientserver +clipboard +cmdline_compl +cmdline_hist +cmdline_info
+comments
+conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con_gui +diff
+digraphs +dnd -ebcdic +emacs_tags +eval +ex_extra +extra_search +farsi
+file_in_path +find_in_path +float +folding -footer +fork() +gettext
-hangul_input +iconv +insert_expand +jumplist +keymap +langmap +libcall
+linebreak +lispindent +listcmds +localmap -lua +menu +mksession
+modify_fname
+mouse +mouseshape +mouse_dec -mouse_gpm -mouse_jsbterm +mouse_netterm
-mouse_sysmouse +mouse_xterm +multi_byte +multi_lang -mzscheme
+netbeans_intg
-osfiletype +path_extra -perl +persistent_undo +postscript +printer +profile
+python -python3 +quickfix +reltime +rightleft -ruby +scrollbind +signs
+smartindent -sniff +startuptime +statusline -sun_workshop +syntax
+tag_binary
+tag_old_static -tag_any_white -tcl +terminfo +termresponse +textobjects
+title
+toolbar +user_commands +vertsplit +virtualedit +visual +visualextra
+viminfo
+vreplace +wildignore +wildmenu +windows +writebackup +X11 -xfontset +xim
+xsmp_interact +xterm_clipboard -xterm_save system
vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
user exrc file: "$HOME/.exrc"
system gvimrc file: "$VIM/gvimrc"
user gvimrc file: "$HOME/.gvimrc"
system menu file: "$VIMRUNTIME/menu.vim"
fall-back for $VIM: "/usr/local/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -pthread -D_REEN
TRANT -I/usr/local/include -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/
usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include
/gio-unix-2.0/ -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/includ
e/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpn
g12 -O2 -fno-strength-reduce -Wall -D_FORTIFY_SOURCE=1
Linking: gcc -L/usr/local/lib -o vim -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -l
atk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpan
go-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -l
glib-2.0 -lXt -lncurses -L/usr/lib/python2.6/config -lpython2.6 -lutil -lm -Xl
inker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions

Regards,
Mark.

--
You received this message from the "vim_use" 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

No comments: