From: Christian Heller Date: Sat, 12 Dec 2015 11:14:25 +0000 (+0100) Subject: Move vimrc do dotfiles_minimal (root may use vim too!). X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/%7B%7Bprefix%7D%7D/edit?a=commitdiff_plain;h=529ec7d93843f96b6e7d7edb632b46fd270ead7a;p=config Move vimrc do dotfiles_minimal (root may use vim too!). --- diff --git a/dotfiles_minimal/vimrc b/dotfiles_minimal/vimrc new file mode 100644 index 0000000..0103b0a --- /dev/null +++ b/dotfiles_minimal/vimrc @@ -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 diff --git a/dotfiles_user_minimal/vimrc b/dotfiles_user_minimal/vimrc deleted file mode 100644 index 0103b0a..0000000 --- a/dotfiles_user_minimal/vimrc +++ /dev/null @@ -1,27 +0,0 @@ -" 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