You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Initially map() and .noremap() were made with the expectation that you'd pass in a static str:
let n = Mapper::new(MapMode::Normal);
n.noremap("<leader>ev","<cmd>vsplit $MYVIMRC<CR>");
...which works great. but I find that it's also nice to make some helper functions for generating commands that are similar, which end up using lots of format!(). As such, it'd be nice to allow that 2nd param to also accept a String, etc.
The text was updated successfully, but these errors were encountered:
Initially
map()
and.noremap()
were made with the expectation that you'd pass in a static str:...which works great. but I find that it's also nice to make some helper functions for generating commands that are similar, which end up using lots of
format!()
. As such, it'd be nice to allow that 2nd param to also accept aString
, etc.The text was updated successfully, but these errors were encountered: