embear / vim-localvimrc

Search local vimrc files (".lvimrc") in the tree (root dir up to current dir) and load them.
http://www.vim.org/scripts/script.php?script_id=441
GNU General Public License v3.0
484 stars 28 forks source link

Syntax error in catch clause #77

Closed silvioricardoc closed 4 years ago

silvioricardoc commented 4 years ago

The following line in localvimrc.vim generates a syntax error:

catch ^Vim\%((\a\+)\)\=:E48

The correct syntax should include delimiters:

catch /^Vim\%((\a\+)\)\=:E48/

(This is seen in Neovim v0.4.3. Maybe vim itself is a bit more lax on the syntax?)

embear commented 4 years ago

This bug has been fixed quite some time ago. Latest releases on github and www.vim.org already contain this change.