1
0
Fork 0

No swap, backup and undo using gopass

This commit is contained in:
Daniele Tricoli 2022-01-15 03:30:38 +01:00
parent 08ab445dbe
commit 55291ed570
1 changed files with 2 additions and 0 deletions

View File

@ -65,6 +65,8 @@ cmd [[ autocmd ColorScheme * highlight ExtraTrailingWhitespace ctermbg=red guibg
cmd [[ autocmd InsertEnter * match ExtraTrailingWhitespace /\s\+\%#\@<!$/ ]]
cmd [[ autocmd InsertLeave * match ExtraTrailingWhitespace /\s\+$/ ]]
-- No swap, backup and undo using gopass.
cmd [[ autocmd BufNewFile,BufRead /dev/shm/gopass.* setlocal noswapfile nobackup noundofile ]]
-- Set filetype ruby for Vagranfile.
cmd [[ autocmd BufNewFile,BufRead [vV]agrantfile set filetype=ruby ]]
-- Set filetype scss for sass files: at least it's not all the same color.