Hello everyone, I have been using the conceal feature extensively since I discovered it a week ago or so. I would like to express some regrets regarding this extremely useful feature, and thus plea for some enhancements, should anyone capable of coding them read this.
1/ It is very annoying that when one is moving in a concealed line, motions consider the underlying text rather that what can be seen. For example, suppose I have >> $\lambda 42$ which will be rendered as >> $λ 42$ and that my cursor is on the first dollar. To move to the space, I wish I could just do "<Right><Right>", but instead, I'll have to do '<Right>' eight times; this is very inconvenient. (Of course, I could do "f<space>" or any other thing to achieve the expected motion, but this not my point here.) A nice behaviour would be that, when a line is concealed, motions work on the visible text, and that if I press, say, "x" when the cursor in on "λ", then it would delete the first character of "\lambda" and thus unconceal this now unrecognised word. 2/ A less important, though maybe (?) useful enhancement would be to allow conceal to replace a string for another, not just a character. 3/ A bug? I open a tex file, and >> :echo g:tex_conceal >> agm as set in .vim/after/syntax/tex.vim, which is loaded, I think, last, and sets cole to 2, and cocu to nc. However, the dollars in LaTeX's math mode do not appear. If I reload the file with >> :e then they do appear as wanted. Cheers, P! ==== FreeBSD 7.2 Release VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Feb 1 2011 15:18:44) 適用済パッチ: 1-81 Compiled by adr...@kaoru.kb-private Big 版 with GTK2 GUI. 機能の一覧 有効(+)/無効(-) +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 システム vimrc: "$VIM/vimrc" ユーザ vimrc: "$HOME/.vimrc" ユーザ exrc: "$HOME/.exrc" システム gvimrc: "$VIM/gvimrc" ユーザ gvimrc: "$HOME/.gvimrc" システムメニュー: "$VIMRUNTIME/menu.vim" 省略時の $VIM: "/usr/local/share/vim" コンパイル: /usr/local/libexec/ccache/world-cc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -D_THREAD_SAFE -D_REENTRANT -I/usr/loc al/include/gtk-2.0 -I/usr/local/lib/gtk-2.0/include -I/usr/local/include/atk-1.0 -I/usr/local/include/cairo -I/usr/local/include/pan go-1.0 -I/usr/local/include/gio-unix-2.0/ -I/usr/local/include -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/us r/local/include/pixman-1 -I/usr/local/include/freetype2 -I/usr/local/include -O2 -fno-strict-aliasing -pipe -funroll-loops -fomit-f rame-pointer -march=native -D_FORTIFY_SOURCE=1 -I/usr/local/include リンク: /usr/local/libexec/ccache/world-cc -L/usr/local/lib -L/usr/local/lib -R/usr/local/lib -Wl,-R/usr/local/lib/perl5/5.12.2/mach /CORE -L/usr/local/lib -Wl,--as-needed -o vim -pthread -L/usr/local/lib -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lXext -lXrender -lXinerama -lXi -lXrandr -lXcursor -lXcomposite -lXdamage -lpangoft2-1.0 -lgio-2.0 -lXfixes -lcai ro -lX11 -lpango-1.0 -lm -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lSM -lICE -lXpm -lXt -lX11 -lXdmcp -lSM -lICE -lm -lelf -pthread -ltermlib -liconv -Wl,-R/usr/local/lib/perl5/5.12.2/mach/CORE -Wl,-E -fstack-prote ctor -L/usr/local/lib -L/usr/local/lib/perl5/5.12.2/mach/CORE -lperl -lm -lcrypt -lutil -L/usr/local/lib/python2.6/config -lpython 2.6 -lutil -lm -Wl,--export-dynamic -- Français, English, 日本語, 한국어 -- 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