vim: Disable 'cindent' in non-code filetypes

This commit is contained in:
2025-09-17 16:49:34 +02:00
parent ea2867fc9f
commit ae52ba20d2
4 changed files with 13 additions and 0 deletions

View File

@@ -3,6 +3,9 @@ setlocal colorcolumn+=51
setlocal textwidth=72
" Spell checking always enabled
setlocal spell spelllang=en
" Disable C-indentation as it messes up formatting of paragraphs containing
" parentheses
setlocal nocindent
" Disable gutentags as it seems to regenerate the entire tags file when editing
" git-commits...

View File

@@ -1,5 +1,8 @@
" Turn on line-wrapping
setlocal wrap
" Disable C-indentation as it messes up formatting of paragraphs containing
" parentheses
setlocal nocindent
" Fold by sections
function! MdSectionFold()

View File

@@ -1,5 +1,8 @@
" Turn on line-wrapping
setlocal wrap
" Disable C-indentation as it messes up formatting of paragraphs containing
" parentheses
setlocal nocindent
" Close the quickfix window after a cursor movement
let g:vimtex_quickfix_autoclose_after_keystrokes = 1

View File

@@ -1,3 +1,7 @@
" Disable C-indentation as it messes up formatting of paragraphs containing
" parentheses
setlocal nocindent
" Don't highlight Unicode table separator (e.g. vertical box drawing character).
" See vimrc.d/looks.vim for w:ignore_non_ascii_chars
if vimwiki#vars#get_syntaxlocal('rxTableSep') !~ '[\d0-\d127]'