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

Can fakevim load .vimrc at other location? #1

Open
serpheroth opened this issue Jul 14, 2013 · 1 comment
Open

Can fakevim load .vimrc at other location? #1

serpheroth opened this issue Jul 14, 2013 · 1 comment

Comments

@serpheroth
Copy link

Does fakevim supports reading .vimrc from user selected file location instead of the default one under home folder?

@hluk
Copy link
Owner

hluk commented Jul 14, 2013

Yes, but with major limitations. It doesn't understand Vim script -- only goes line-by-line and tries to parse simple commands -- so it ignores function and control statements (but reads the body).

The code is in FakeVimHandler::Private::handleExSourceCommand(). You just need to run

handler.handleCommand(_("source fakevimrc"));

as in https://github.com/hluk/FakeVim/blob/master/test/main.cpp#L209.

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

No branches or pull requests

2 participants