summaryrefslogtreecommitdiffstats
path: root/tv/2configs
diff options
context:
space:
mode:
authortv <tv@shackspace.de>2015-11-01 13:22:43 +0100
committertv <tv@shackspace.de>2015-11-01 13:22:43 +0100
commit2977f6d2910528bd7b3c78ae614aebff18dd4874 (patch)
treec8896c5b37c503cd78f9549a900002b63fef26d3 /tv/2configs
parentc29f45dec1c41f6ab12a9b2c4f91e70a4bbc830c (diff)
tv vim: no backup & co for /dev/shm/*
Diffstat (limited to 'tv/2configs')
-rw-r--r--tv/2configs/vim.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/tv/2configs/vim.nix b/tv/2configs/vim.nix
index 2e49a0ca0..7eb2eb139 100644
--- a/tv/2configs/vim.nix
+++ b/tv/2configs/vim.nix
@@ -132,6 +132,8 @@ let
syn match Comment /\s#.*/
''}
+ au BufRead,BufNewFile /dev/shm/* set nobackup nowritebackup noswapfile
+
nmap <esc>q :buffer
nmap <M-q> :buffer