Loading ...
Sorry, an error occurred while loading the content.

Couple of 'conceal' quirks

Expand Messages
  • Benjamin R. Haskell
    Trying out conceal using hg rev 2282:69064995302a -- full --version info below. I wanted to see whether it could provide a solution for the Indentation
    Message 1 of 2 , Jul 5, 2010
    • 0 Attachment
      Trying out 'conceal' using hg rev 2282:69064995302a -- full --version
      info below. I wanted to see whether it could provide a solution for the
      'Indentation Vertical Lines' problem on vim-use, but I noticed a couple
      quirks.

      First thing I tried was:

      :syntax match Emms "m" conceal cchar=%

      In the following text:

      """
      Testing this conceal thing. What about ems?
      What madness is this?
      It only matches initial ems?
      """

      I had previously searched for 'conceal', and I use 'hlsearch'. The
      search highlight on the first line apparently prevented the match on the
      'm' in 'ems' (hence my text typed in confusion).

      Second thing I tried was:

      :syntax match Initial /^ / conceal cchar=^I
      (Pattern is '/^' + 3 spaces + '/', and ^I == ^V <Tab> [literal tab])

      Then text with leading spaces shows very odd refresh characteristics,
      and just generally doesn't display right. (Gets pushed to the left and
      overwritten with whitespace, but pressing ^L refreshes it, only to lose
      it again when scrolling.)

      Try with test text:

      """
      blah
      blah
      blah
      blaaaah
      """

      Last line is particularly weirdly rendered.

      --
      Best,
      Ben

      VIM - Vi IMproved 7.3 BETA (2010 May 15, compiled Jul 5 2010 23:41:12)
      Compiled by bhaskell@hp [ed: hp = computer make, not affiliation]
      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 +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 +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: "/tmp/vim-testing/share/vim"
      Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_GTK -D_REENTRANT -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng14 -g -O2 -D_FORTIFY_SOURCE=1
      Linking: gcc -L/usr/local/lib -o vim -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lXt -lm -lncurses -lacl -lgpm

      --
      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
    • Vince Negri
      From: Benjamin R. Haskell [mailto:vim@benizi.com] ... I wouldn t have expected using a tab as the conceal character to work properly.. I m fairly sure the code
      Message 2 of 2 , Jul 6, 2010
      • 0 Attachment
        From: Benjamin R. Haskell [mailto:vim@...]


        > Second thing I tried was:

        > :syntax match Initial /^ / conceal cchar=^I
        > (Pattern is '/^' + 3 spaces + '/', and ^I == ^V <Tab> [literal tab])

        > Then text with leading spaces shows very odd refresh characteristics,
        > and just generally doesn't display right.

        I wouldn't have expected using a tab as the conceal character to work
        properly.. I'm fairly sure the code expects cchar to always occupy one
        'cell'. It should go into the docs I think.

        --
        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
      Your message has been successfully submitted and would be delivered to recipients shortly.