From dcffa1e9b4b24c3f0a0db88821e59f658cc7b82f Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Wed, 27 Feb 2019 18:02:25 +0100 Subject: [PATCH] moved color column to filetype specific script --- vim/ftplugin/cpp.vim | 3 +++ vim/install.sh | 1 + vim/vimrc | 6 +++--- 3 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 vim/ftplugin/cpp.vim diff --git a/vim/ftplugin/cpp.vim b/vim/ftplugin/cpp.vim new file mode 100644 index 0000000..af6c740 --- /dev/null +++ b/vim/ftplugin/cpp.vim @@ -0,0 +1,3 @@ +" max line length column +set colorcolumn=100 + diff --git a/vim/install.sh b/vim/install.sh index 8174059..5bba86b 100755 --- a/vim/install.sh +++ b/vim/install.sh @@ -1,4 +1,5 @@ #!/usr/bin/env sh ln -svrf vimrc ~/.vimrc +ln -svrf ftplugin ~/.vim/ftplugin diff --git a/vim/vimrc b/vim/vimrc index 5cc4702..9dde30d 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -33,15 +33,15 @@ call plug#end() set tabstop=4 set shiftwidth=4 +" autowrite +set autowrite + " dark theme set background=dark " line numbers set number -" max line length column -set colorcolumn=100 - " always enable status line set laststatus=2