From 75e98f8092cfb62e038f8635c4a3c2b6ca7fec62 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Mon, 26 Apr 2021 20:36:11 +0200 Subject: Move C specific config, set default textwidth=100 --- .vim/ftplugin/c.vim | 2 ++ .vimrc | 6 ++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.vim/ftplugin/c.vim b/.vim/ftplugin/c.vim index e69de29..9f890e7 100644 --- a/.vim/ftplugin/c.vim +++ b/.vim/ftplugin/c.vim @@ -0,0 +1,2 @@ +setlocal textwidth=80 +setlocal cindent diff --git a/.vimrc b/.vimrc index 0ba74df..1abacc2 100644 --- a/.vimrc +++ b/.vimrc @@ -28,8 +28,8 @@ set foldmethod=marker " Wrap line longer than the display "set wrap -" Textwidth of 80 (Standard terminal) -set tw=80 +" Textwidth of 100 +set textwidth=100 " Number of undo operations to store set undolevels=50 @@ -55,8 +55,6 @@ filetype on " Enable filetype detection filetype indent on " Enable filetype specific indenting filetype plugin on " Enable filetype specific plugins -au FileType c set cindent - let g:git_diff_spawn_mode=2 " }}} -- cgit v1.2.3-54-g00ecf