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

Mapping commands #97

Closed
gerardroche opened this issue Apr 6, 2017 · 2 comments
Closed

Mapping commands #97

gerardroche opened this issue Apr 6, 2017 · 2 comments

Comments

@gerardroche
Copy link
Contributor

Issue by adamk33n3r
Wednesday Jan 14, 2015 at 22:46 GMT
Originally opened as guillermooo/Vintageous#810


When I try to map a command to a keymap it only puts a ':'.
e.g. nmap mm :w
When I push mm it just acts like I pushed ':'.
This is mentioned in the wiki: 'Only commands known to Vintageous can be used in mappings." Does this have something to do with it?

@gerardroche
Copy link
Contributor Author

Comment by jonnyniv
Monday Aug 22, 2016 at 08:38 GMT


Is there any update on the status of this issue?

@gerardroche
Copy link
Contributor Author

@adamk33n3r @jonnyniv This has been fixed in the latest 1.4.0 release (NeoVintageous is a fork of the discontinued Vintageous plugin). You can now also map to Sublime Text commands and your own custom commands:

To create your example mapping, open your .vintageousrc file for editing (run "Open My .vintageourc File" in the Command Palette: CTRL-SHIFT-P)

nnoremap mm :w<CR>

Mapping to commands is currently only supported in basic cases:

Mapping to Command-line mode commands is supported for basic use-cases: >
:command

Mapping to Sublime Text commands is supported for basic use-cases. The command
must start an Uppercase letter to avoid confusion with built-in Command-line
mode commands. The command is converted to snake_case. For example to map to
the Sublime Text command "toggle_side_bar": >
:ToggleSideBar

See the :help neovintageous command for information.

Also see the forum post on latest release: NeoVintageous 1.4.0 released zap KAPOW.

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

1 participant