From b21bcdc56dcbd69b8b27030eb2dced9e59ffd797 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Av=C3=A9?= Date: Thu, 18 Apr 2024 12:47:00 +0200 Subject: [PATCH] Add c-backspace mapping --- .config/nvim/lua/mappings.lua | 1 + .config/zsh/.zshrc | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.config/nvim/lua/mappings.lua b/.config/nvim/lua/mappings.lua index b35738b..c9267a7 100644 --- a/.config/nvim/lua/mappings.lua +++ b/.config/nvim/lua/mappings.lua @@ -4,6 +4,7 @@ vim.keymap.set("n", "k", "gk", {}) vim.keymap.set("n", "", "", {}) vim.keymap.set("t", "jj", "", { noremap = true, silent = true }) vim.keymap.set("n", "", ":q", { noremap = true, silent = true }) +vim.keymap.set("n", "", ":q!", { noremap = true, silent = true }) vim.keymap.set("n", "", "", { noremap = true }) vim.keymap.set("n", "", "g;", { noremap = true }) vim.keymap.set("n", "", "g,", { noremap = true }) diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 5454896..d900cf3 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -278,7 +278,7 @@ alias wget=wget --hsts-file="$XDG_DATA_HOME/wget-hsts" alias xbindkeys="xbindkeys -f $XDG_CONFIG_HOME/xbindkeys/config" alias python=python3 alias r=". ranger" -alias v="vim . && cd \"\$(cat /tmp/oil_dir)\"" +alias v="vim . && cd \"\$(cat /tmp/oil_dir 2> /dev/null || pwd)\"" alias cpr="rsync --archive -hh --partial --info=stats1,progress2 --modify-window=1" alias mvr="rsync --archive -hh --partial --info=stats1,progress2 --modify-window=1 --remove-source-files" alias rg="rg -i --colors 'match:bg:yellow' --colors 'match:fg:black' --colors 'match:style:nobold' --colors 'path:fg:green' --colors 'path:style:bold' --colors 'line:fg:yellow' --colors 'line:style:bold'"