summaryrefslogtreecommitdiffstats
path: root/tv/2configs/vim.nix
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2015-11-01 13:22:43 +0100
committertv <tv@krebsco.de>2015-11-01 13:22:43 +0100
commit7033d7b944668efa806371a172410dbfc3430cdb (patch)
treee68f91745164b6bcca04bdbd5f25a03794c91ba6 /tv/2configs/vim.nix
parent78b2bbba6d4f04c7950cf01cb3fa51420ef34d44 (diff)
tv vim: no backup & co for /dev/shm/*
Diffstat (limited to 'tv/2configs/vim.nix')
-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 2e49a0c..7eb2eb1 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