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 2fc5396..0b23522 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