From: R. Steve McKown Date: Thu, 24 Dec 2015 14:30:53 +0000 (-0700) Subject: vim: leak no info for files opened on /run/shm X-Git-Url: https://oss.titaniummirror.com/gitweb?p=smckown%2Fdotfiles.git;a=commitdiff_plain;h=b8362dfeb671512910014e813a00f4141d4c5c3a vim: leak no info for files opened on /run/shm password-store opens encrypted files for edit unencrypted in /run/shm. This autocmd turns off vim features which cause leakage of that unencrypted information. --- diff --git a/vim/vimrc b/vim/vimrc index 70612f7..0b689fc 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -75,6 +75,8 @@ set cinoptions=t0,U1,k2s,j1,J1 " File type specific settings. if has("autocmd") + autocmd BufNewFile,BufRead /run/shm/* set nobackup nowritebackup noundofile + \ noswapfile viminfo="" noshelltemp history=0 nomodeline secure autocmd filetype make setlocal sts=0 sw=8 noexpandtab tw=80 fo-=t fo+=j autocmd filetype sh,ld setlocal sts=4 sw=4 tw=80 fo-=t fo+=j autocmd filetype python setlocal sts=4 sw=4 tw=79 fo-=t fo+=j