summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2021-04-26 20:36:11 +0200
committerTobias Klauser <tklauser@distanz.ch>2021-04-26 20:36:11 +0200
commit75e98f8092cfb62e038f8635c4a3c2b6ca7fec62 (patch)
tree5c81bcfefbbfa1643143f177e95063079f0df1e7
parentdb7a34c39879e6ac2edb6a9db1558efd9d3fdff6 (diff)
Move C specific config, set default textwidth=100
-rw-r--r--.vim/ftplugin/c.vim2
-rw-r--r--.vimrc6
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
" }}}