home
·
contact
·
privacy
projects
/
config
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb80d48
)
Add vimrc dotfile.
author
Christian Heller
<c.heller@plomlompom.de>
Sun, 3 May 2015 02:05:50 +0000
(
04:05
+0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Sun, 3 May 2015 02:05:50 +0000
(
04:05
+0200)
dotfiles/vimrc
[new file with mode: 0644]
patch
|
blob
diff --git a/dotfiles/vimrc
b/dotfiles/vimrc
new file mode 100644
(file)
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