From: Christian Heller Date: Sun, 3 May 2015 02:05:50 +0000 (+0200) Subject: Add vimrc dotfile. X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/%7B%7Bprefix%7D%7D/static/%7B%7Bdb.prefix%7D%7D/%7B%7Btodo.comment%7D%7D?a=commitdiff_plain;h=8b7bc7ce5bc7214bb6c047808874047e493ad77c;p=config Add vimrc dotfile. --- diff --git a/dotfiles/vimrc b/dotfiles/vimrc new file mode 100644 index 0000000..107aef9 --- /dev/null +++ b/dotfiles/vimrc @@ -0,0 +1,18 @@ +" Activate syntax highlighting. +syntax on +filetype plugin on + +" Don't add unsolicited final newline. +set binary + +" Indentation rules (tabs to 4 spaces). +set expandtab +set shiftwidth=4 +set softtabstop=4 + +" Backups. +set backup +set backupdir=~/.vimbackups +let myvar = strftime("%Y-%m-%d_%H-%M-%S") +let myvar = "set backupext=_". myvar +execute myvar