home · contact · privacy
Add vimrc dotfile.
authorChristian Heller <c.heller@plomlompom.de>
Sun, 3 May 2015 02:05:50 +0000 (04:05 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Sun, 3 May 2015 02:05:50 +0000 (04:05 +0200)
dotfiles/vimrc [new file with mode: 0644]

diff --git a/dotfiles/vimrc b/dotfiles/vimrc
new file mode 100644 (file)
index 0000000..107aef9
--- /dev/null
@@ -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