vim: default to expanding tabs, specify pandoc-markdown format settings

Let's see whether the global expandtab is a good idea and might be an issue in the future for certain file types like makefiles?
This commit is contained in:
Trolli Schmittlauch 2024-03-28 18:54:23 +01:00
parent ef5dd89ffe
commit fee2deb632

View file

@ -42,7 +42,7 @@ set history=1000
" representing system clipboard (not X11 clipboard) " representing system clipboard (not X11 clipboard)
set clipboard=unnamedplus set clipboard=unnamedplus
" set expandtab set expandtab
set shiftwidth=4 set shiftwidth=4
set tabstop=4 set tabstop=4
set softtabstop=4 set softtabstop=4
@ -102,6 +102,7 @@ let g:haskell_enable_typeroles = 1 " to enable highlighting of type roles
let g:haskell_enable_static_pointers = 1 " to enable highlighting of `static` let g:haskell_enable_static_pointers = 1 " to enable highlighting of `static`
let g:haskell_backpack = 1 " to enable highlighting of backpack keywords let g:haskell_backpack = 1 " to enable highlighting of backpack keywords
au FileType markdown setlocal tabstop=4 expandtab shiftwidth=4 softtabstop=4 au FileType markdown setlocal tabstop=4 expandtab shiftwidth=4 softtabstop=4
au FileType pandoc setlocal tabstop=4 expandtab shiftwidth=4 softtabstop=4
au FileType nix setlocal tabstop=2 expandtab shiftwidth=2 softtabstop=2 au FileType nix setlocal tabstop=2 expandtab shiftwidth=2 softtabstop=2
set ofu=syntaxcomplete#Complete set ofu=syntaxcomplete#Complete
" nmap <C-V> "+gP " nmap <C-V> "+gP