From 82b8c7d7860c90ca9f6b0883861d893ccf918b9b Mon Sep 17 00:00:00 2001 From: Peter Date: Mon, 7 Dec 2020 21:29:04 +0000 Subject: Consistent Ctrl-BS/Ctrl-Del behaviour, thanks Kai! --- .config/fish/config.fish | 4 ++++ .config/nvim/init.vim | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 27e292c..6376460 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -48,6 +48,10 @@ if ! test -e "$XDG_CONFIG_HOME/rclone/rclone.conf"; and test -f "$SYNCDIR/src/do # Prompt, inspired by Oxide by Dikiaap function fish_prompt; echo && set_color green; echo (dirs) && set_color normal; printf "❯ "; end +# Keybinds +bind \cH backward-kill-path-component +bind \e\[3\;5~ kill-word + # Colour scheme set -x fish_color_autosuggestion 585858 set -x fish_color_cancel \x2dr diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index f2ddd39..6e0983c 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -2,6 +2,7 @@ " Set options set nocompatible let mapleader ="," +set backspace=indent,eol,start set clipboard+=unnamedplus set ignorecase set linebreak @@ -13,6 +14,10 @@ set title set titlestring=%f\ %m syntax on +" Key remapping +inoremap +imap Xce + " Automatically deletes all trailing whitespace and newlines at end of file on save. autocmd BufWritePre * %s/\s\+$//e autocmd BufWritepre * %s/\n\+\%$//e -- cgit v1.2.3