commit 70ea39d3527f26be4604ee81936d0fc0276140af
parent ab7a90e0858169ed5e744d118ba7eaedf585baf3
Author: William Casarin <jb55@jb55.com>
Date: Mon, 28 Jun 2021 07:22:05 -0700
vim: quick C-x exit
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/dotfiles/.config/nvim/init.vim b/dotfiles/.config/nvim/init.vim
@@ -18,6 +18,7 @@ set clipboard+=unnamedplus
let mapleader = "\\"
let maplocalleader = "\\"
nmap <Leader>xda ma:%s/\s\+$//g<CR>`a
+nmap <C-x> :x<CR>
autocmd FileType go autocmd BufWritePre <buffer> execute "normal! mz:mkview\<esc>:%!fmtsafe gofmt\<esc>:loadview\<esc>`z"
autocmd FileType rust autocmd BufWritePre <buffer> execute "normal! mz:mkview\<esc>:%!fmtsafe rustfmt\<esc>:loadview\<esc>`z"