cleaning up

This commit is contained in:
Ellen Arvidsson 2025-06-18 20:13:25 +02:00
parent 8f38a1df7b
commit 5bad8ef7a8
24 changed files with 287 additions and 187 deletions

3
ftplugin/arduino.vim Normal file
View file

@ -0,0 +1,3 @@
set softtabstop=8 tabstop=8 noexpandtab
set cindent

14
ftplugin/c.vim Normal file
View file

@ -0,0 +1,14 @@
map <leader>dd :LspDiagCurrent<CR>
map <leader>dn :LspDiagNext<CR>
map <leader>dp :LspDiagPrev<CR>
map <leader>er :LspRename<CR>
" toggle show diagnostic indicator next to line numbers
map <leader>td :call LogE_LspDiagShowSignToggle()<CR>
" ctags file names
set tags=tags;
set colorcolumn=+0

1
ftplugin/cabal.vim Normal file
View file

@ -0,0 +1 @@
set expandtab softtabstop=4 shiftwidth=4

10
ftplugin/cpp.vim Normal file
View file

@ -0,0 +1,10 @@
set softtabstop=8 shiftwidth=8 noexpandtab
map <leader>dd :LspDiagCurrent<CR>
map <leader>dn :LspDiagNext<CR>
map <leader>dp :LspDiagPrev<CR>
map <leader>er :LspRename<CR>
" toggle show diagnostic indicator next to line numbers
map <leader>td :call LogE_LspDiagShowSignToggle()<CR>

6
ftplugin/haskell.vim Normal file
View file

@ -0,0 +1,6 @@
" Tab specific option
set tabstop=8 "A tab is 8 spaces
set expandtab "Always uses spaces instead of tabs
set softtabstop=4 "Insert 4 spaces when tab is pressed
set shiftwidth=4 "An indent is 4 spaces
set shiftround "Round indent to nearest shiftwidth multiple

5
ftplugin/html.vim Normal file
View file

@ -0,0 +1,5 @@
let g:html_indent_inctags = "html,body,head,tbody"
let g:html_indent_script1 = "inc"
let g:html_indent_style1 = "inc"
set softtabstop=2 shiftwidth=2 expandtab

1
ftplugin/java.vim Normal file
View file

@ -0,0 +1 @@
set softtabstop=4 shiftwidth=4 expandtab

1
ftplugin/javascript.vim Normal file
View file

@ -0,0 +1 @@
set softtabstop=2 shiftwidth=2 expandtab

1
ftplugin/json.vim Normal file
View file

@ -0,0 +1 @@
set softtabstop=2 shiftwidth=2 expandtab

2
ftplugin/markdown.vim Normal file
View file

@ -0,0 +1,2 @@
set colorcolumn=+1

1
ftplugin/ocaml.vim Normal file
View file

@ -0,0 +1 @@
set expandtab shiftwidth=2 tabstop=2

1
ftplugin/p0.vim Normal file
View file

@ -0,0 +1 @@
set softtabstop=2 shiftwidth=2 expandtab

1
ftplugin/php.vim Normal file
View file

@ -0,0 +1 @@
set softtabstop=8 shiftwidth=8 noexpandtab

1
ftplugin/python.vim Normal file
View file

@ -0,0 +1 @@
set softtabstop=4 shiftwidth=4 expandtab

5
ftplugin/tex.vim Normal file
View file

@ -0,0 +1,5 @@
set textwidth=80
set softtabstop=2 shiftwidth=2 expandtab
set iskeyword+=:

1
ftplugin/text.vim Normal file
View file

@ -0,0 +1 @@
set textwidth=80

1
ftplugin/typescript.vim Normal file
View file

@ -0,0 +1 @@
set softtabstop=2 shiftwidth=2 expandtab