summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Fankhauser hiddenalpha.ch2023-04-04 13:50:04 +0200
committerAndreas Fankhauser hiddenalpha.ch2023-04-04 13:50:04 +0200
commitcfc1f3156cae2e2c07578da2541cf96415be7c5e (patch)
treeb7d85190673376e4ef4c20f1f32df0c4075b799a
parent071f2194ec0b51b6f28a4a71d71970c81f579d51 (diff)
downloaddotfiles-cfc1f3156cae2e2c07578da2541cf96415be7c5e.zip
dotfiles-cfc1f3156cae2e2c07578da2541cf96415be7c5e.tar.gz
(vi) Add colorcolumn for some file types
-rw-r--r--src/vi/_vimrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vi/_vimrc b/src/vi/_vimrc
index af86e7e..5b54ea8 100644
--- a/src/vi/_vimrc
+++ b/src/vi/_vimrc
@@ -207,6 +207,10 @@ endif
autocmd FileType html setl sw=2 ts=2
autocmd FileType xml setl sw=2 ts=2
autocmd BufNewFile,BufRead Makefile setl noexpandtab list
+autocmd FileType c setl colorcolumn=101
+autocmd FileType java setl colorcolumn=101
+autocmd FileType lua setl colorcolumn=101
+autocmd FileType js setl colorcolumn=101
autocmd FileType text setl ft=awk
autocmd BufNew,BufRead *.gnuplot setl ft=gnuplot