diff --git a/share/functions/fish_default_key_bindings.fish b/share/functions/fish_default_key_bindings.fish index 68e676e3f..1c976117f 100644 --- a/share/functions/fish_default_key_bindings.fish +++ b/share/functions/fish_default_key_bindings.fish @@ -104,4 +104,6 @@ function fish_default_key_bindings -d "emacs-like key binds" # the following to tell a console to paste: bind --preset $argv \e\x20ep fish_clipboard_paste end + + set -e -g fish_cursor_selection_mode end diff --git a/share/functions/fish_vi_key_bindings.fish b/share/functions/fish_vi_key_bindings.fish index 8987e0fa5..2ca0c9474 100644 --- a/share/functions/fish_vi_key_bindings.fish +++ b/share/functions/fish_vi_key_bindings.fish @@ -305,6 +305,7 @@ function fish_vi_key_bindings --description 'vi-like key bindings for fish' # After executing once, this will have defined functions listening for the variable. # Therefore it needs to be before setting fish_bind_mode. fish_vi_cursor + set -g fish_cursor_selection_mode inclusive set fish_bind_mode $init_mode