Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse error on "let @g='/}^M'" vimrc #1781

Closed
DanielKeogh opened this issue May 11, 2016 · 3 comments
Closed

Parse error on "let @g='/}^M'" vimrc #1781

DanielKeogh opened this issue May 11, 2016 · 3 comments
Labels

Comments

@DanielKeogh
Copy link

DanielKeogh commented May 11, 2016

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'

@jaredpar
Copy link
Collaborator

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

@jaredpar jaredpar added the bug label May 11, 2016
@jaredpar jaredpar added this to the 2.1.0 milestone May 11, 2016
@jaredpar jaredpar modified the milestones: 2.2.0, 2.3.0 Jun 28, 2016
@ricksladkey
Copy link
Collaborator

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.

@ricksladkey
Copy link
Collaborator

Closing because there is a suitable workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants