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

drhoda picture drhoda  路  7Comments

thelamb picture thelamb  路  5Comments

keithn picture keithn  路  4Comments

ArnisL picture ArnisL  路  5Comments

jaredpar picture jaredpar  路  5Comments