X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=vimrc;h=25688a68e958f2f260baac797ec7d5e02be92daf;hb=7b893ef84922a2ef2c2355b9c8b58d43ea5dc07e;hp=63741d7899f8f1fded8744a21c0d05125a29b570;hpb=2c098407bbb00ef750c89a8c0db507c7919be705;p=config%2Fdotfiles.git diff --git a/vimrc b/vimrc index 63741d7..25688a6 100644 --- a/vimrc +++ b/vimrc @@ -1,6 +1,6 @@ " Vim main configuration file. -" Copyright (C) 2008-2013 Simon Ruderich +" Copyright (C) 2008-2016 Simon Ruderich " " This file is free software: you can redistribute it and/or modify " it under the terms of the GNU General Public License as published by @@ -46,6 +46,11 @@ set nocompatible " precaution just in case somebody enables 'exrc'. set secure +" Try to use pipes instead of temporary files. Prevents some auto commands +" from running for temporary files but also prevents the file's content to be +" written to disk. +set noshelltemp + " Use UTF-8 for all internal data (buffers, registers, etc.). This doesn't " affect reading files in different encodings, see 'fileencodings' for that. set encoding=utf-8 @@ -62,6 +67,8 @@ if filewritable('~/.tmp') == 2 || filewritable('~/tmp') == 2 endif " But store them in ~/.tmp or ~/tmp (already set by default) if available. set directory^=~/.tmp +" Never use /tmp which gets cleaned on reboot. +set directory-=/tmp " Disable modelines as they may cause security problems. Instead use " securemodelines (Vim script #1876).