From 76efabe67beb3bf2c378c4fdfbb177f312758973 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Wed, 18 Sep 2019 16:01:43 +0200 Subject: [PATCH] Add gopass settings for vim --- .config/nvim/init.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 5fcae94..7c3554b 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -428,6 +428,10 @@ set noshowmode highlight ColorColumn ctermbg=magenta call matchadd('ColorColumn', '\%81v', 100) +" Special setting for editing gopass files - make sure nothing leaks outside +" the directories it is supposed to +au BufNewFile,BufRead /dev/shm/gopass.* setlocal noswapfile nobackup noundofile + " }}} " KEYBINDINGS {{{ " ================================================================================ @@ -606,7 +610,7 @@ iabbrev whit with iabbrev whith with " Text expansion -iabbrev @@ marty.oehme@gmail.com +iabbrev @e@ marty.oehme@gmail.com iabbrev ccopy Copyright 2019 Marty Oehme, all rights reserved. "