Yggdroot / indentLine

A vim plugin to display the indention levels with thin vertical lines
MIT License
4.13k stars 227 forks source link

Error when starting macvim 9.0.65 with this plugin enabled #376

Closed rm-hull closed 2 years ago

rm-hull commented 2 years ago

It reports:

Error detected while processing BufWinEnter Autocommands for "*"..function <SNR>81_Setup[6]..<SNR>81_IndentLinesEnable[10]..<SNR>81_SetConcealOption:
line    8:
Project-Id-Version: Vim 8.2 (UK English)^@Report-Msgid-Bugs-To: ^@PO-Revision-Date: 2022-05-12 10:05+1000^@Last-Translator: Doug Kearns <dougkearns@gmail.com>^@Language-Team: Mike
Williams <mrw@eandem.co.uk>^@Language: en_GB^@MIME-Version: 1.0^@Content-Type: text/plain; charset=ISO-8859-1^@Content-Transfer-Encoding: 7bit^@Plural-Forms: nplurals=2; plural=n!=
1;^@         

If I remove the plugin from my .vim/bundles folder the error disappears.

Had no issue until updating macvim from 8.x -> 9.x

Eduruiz commented 2 years ago

Can confirm same issue on linux, NVIM v0.8.0-dev-878-g02e9b5a8e

Error detected while processing BufWinEnter Autocommands for "*"..function <SNR>116_Setup[6]..<SNR>116_IndentLinesEnable[10]..<SNR>116_SetConcealOption:
rm-hull commented 2 years ago

Looks like this was previously reported against vim directly (see here https://github.com/vim/vim/issues/10128).

I had got let g:indentLine_concealcursor=0 in my .vimrc file... changing it to one of the options as suggested by the help (:h concealcursor) fixed this.

'concealcursor' 'cocu'  string (default: "")
            local to window
            {not available when compiled without the |+conceal|
            feature}
    Sets the modes in which text in the cursor line can also be concealed.
    When the current mode is listed then concealing happens just like in
    other lines.
      n     Normal mode
      v     Visual mode
      i     Insert mode
      c     Command line editing, for 'incsearch'

    'v' applies to all lines in the Visual area, not only the cursor.
    A useful value is "nc".  This is used in help files.  So long as you
    are moving around text is concealed, but when starting to insert text
    or selecting a Visual area the concealed text is displayed, so that
    you can see what you are doing.
    Keep in mind that the cursor position is not always where it's
    displayed.  E.g., when moving vertically it may change column.