Vsvim: Parse error on "let @g='/}^M'" vimrc

Created on 11 May 2016  路  3Comments  路  Source: VsVim/VsVim

There is an error when trying to parse macro's in .vimrc containing newline characters. (Specifically the special newline character made from CTRL+V CTRL+M)

My .vimrc contains this:

let @g='/}^M'

bug

Most helpful comment

This is a form of let I haven't added support or yet. I'll look into adding it.

All 3 comments

This is a form of let I haven't added support or yet. I'll look into adding it.

Control characters (especially ^M) are problematic for VsVim and many other editors. Vim supports a syntax to avoid having to include them in the .vimrc file:

let @g="/}\<CR>"

which works in both vim and VsVim.

Closing because there is a suitable workaround.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kkorus picture kkorus  路  7Comments

jnothstine picture jnothstine  路  7Comments

mfrischknecht picture mfrischknecht  路  6Comments

LariscusObscurus picture LariscusObscurus  路  4Comments

elrob picture elrob  路  6Comments