home · contact · privacy
Fix some issues with dotfiles directories structure.
[config] / dotfiles / minimal / vimrc
diff --git a/dotfiles/minimal/vimrc b/dotfiles/minimal/vimrc
new file mode 100644 (file)
index 0000000..0103b0a
--- /dev/null
@@ -0,0 +1,27 @@
+" Activate syntax highlighting.
+syntax on
+filetype plugin on
+
+" Number lines.
+set number
+
+" 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
+
+" Keep syntax highlighting healthy.
+autocmd BufEnter * :syntax sync fromstart
+
+" Mark the 80-th column.
+set colorcolumn=80