Sublime Forum

Toggle between neovintage and normal mode

#1

I normally work on MacVim, but recently installed Sublime text and added NeoVintage Vim package.

While I’m editing a file, is there a way to toggle between normal Sublime text mode and Vim mode?
For example, in vim mode, i could not copy using cmd+c. MacVim does it but it does not keep the highlighting, meaning, highlighting is removed once I copy.

thanks!

0 Likes

#2

I’m using NeoVintageous as well and Cmd+C copying works fine for me in vim mode, so there’s definitely something in your setup that’s causing the issue.

When you press Cmd+C in vim mode, does absolutely nothing happen, or does something else occur?
Are you in visual mode when trying to copy (after pressing v or V to select text)?

Check your NeoVintageous settings:

The most likely culprit is your vintageous_use_super_keys setting. Try changing it to: “vintageous_use_super_keys”: true.
Now namely for me I have them on false so off for some reason, I am on macOS tho and for me it works all fine, play around with it a bit and see what and how.

Also make sure you have: “vintageous_use_sys_clipboard”: true

As far as I know, NeoVintageous doesn’t have a built-in toggle to switch between vim and normal Sublime mode on the fly. You’d need to disable/enable the package through the Command Palette, which isn’t very convenient.

About the highlighting:

The behavior where MacVim removes highlighting after copying is actually normal vim behavior - visual selections are cleared after yank operations. NeoVintageous handles this differently with its vintageous_highlighted_yank setting.

1 Like

#3

Thanks and Appreciate your detailed reply.

vintageous_use_super_keys: false is working well for me. Thanks on the tip for sys clipboard.

I will continue to use sublime and neovintageous and see how quickly I will get upto speed.
If I’m able to map everything I’ve in .vimrc, then I will switch to Sublime text.
Now hunting for vim matchit like plugin…

0 Likes