Skip to content

Commit

Permalink
subl - update keybindings
Browse files Browse the repository at this point in the history
  • Loading branch information
VonHeikemen committed Jul 1, 2021
1 parent 159ecc8 commit c6a16fa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -667,11 +667,16 @@
"keys": [
"ctrl+l"
],
"command": "then_go_back_to_normal_mode",
"args": {
"exec": "single_selection"
},
"command": "single_selection",
"context": [
{
"key": "setting.command_mode",
"operand": true
},
{
"key": "setting.visual_mode",
"operand": false
},
{
"key": "num_selections",
"operator": "not_equal",
Expand Down
4 changes: 2 additions & 2 deletions .config/sublime-text-3/Packages/User/NvMode/keybindings.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ def keybinding(bind, **kwargs):
[
command("nv_enter_normal_mode"),
command("delete_till_beginning_of_line_if_empty")
],
],
insert_mode[0],
context['no_widget']
)
bind(["ctrl+l"], "noop", normal_mode)
bind(["ctrl+l"], "nv_enter_normal_mode", visual_mode)
bind(["ctrl+l"], "then_go_back_to_normal_mode", context['multiple_selections'], exec="single_selection")
bind(["ctrl+l"], "single_selection", normal_mode, context['multiple_selections'])

bind(["i", "i"], "nv_enter_insert_mode", visual_mode)

Expand Down

0 comments on commit c6a16fa

Please sign in to comment.