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

ogirginc picture ogirginc  ·  6Comments

LariscusObscurus picture LariscusObscurus  ·  4Comments

drhoda picture drhoda  ·  7Comments

jnothstine picture jnothstine  ·  7Comments

jaredpar picture jaredpar  ·  5Comments