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

Is it possible to toggle novim-mode? #11

Open
olistrik opened this issue Dec 21, 2021 · 2 comments
Open

Is it possible to toggle novim-mode? #11

olistrik opened this issue Dec 21, 2021 · 2 comments

Comments

@olistrik
Copy link

Hi there,

I frequently run into the issue that if I'm pair programming with colleagues we have to switch editors because they can't use vim. As the title suggests, I was wondering if it was possible to toggle novim-mode on and off, so I can use vim as normal, then when I colleague wishes to type I can switch into novim-mode.

@omentic
Copy link
Contributor

omentic commented Dec 26, 2021

I have quite the opposite problem - I don't use Vim, and the people I work with reasonably expect a vim-like copy of vim to be on my computer. I fixed this by aliasing vim to nvim --noplugin. Maybe you could alias nvim -u, and create a custom init.vim that sources your regular file and then installs novim-mode?

There isn't a way to toggle it from within the editor, I believe. You'd need a novim_mode function that would go through and reset all the remaps and settings.

@tombh
Copy link
Owner

tombh commented Dec 26, 2021

That's a good idea @J-James. I am also looking into the toggle function, but yeah unmapping doesn't look so straightforward, but there must be a way.

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

No branches or pull requests

3 participants