diff options
| author | Thomas Schmucker <ts@its1.de> | 2023-03-31 13:55:01 +0200 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2023-03-31 13:55:01 +0200 |
| commit | 74fd73196a645f092e285aeb178590f423df0401 (patch) | |
| tree | e4bf19f7c46a3ab7bbebac2b10e9b69674f4d978 /nvim/ftplugin | |
| parent | 9e479ffbba3a6cc128d2aaf8bebb056595727ff2 (diff) | |
| download | dotfiles-74fd73196a645f092e285aeb178590f423df0401.tar.gz dotfiles-74fd73196a645f092e285aeb178590f423df0401.tar.bz2 dotfiles-74fd73196a645f092e285aeb178590f423df0401.zip | |
Feineinstellungen für html und c Dateien
Diffstat (limited to 'nvim/ftplugin')
| -rw-r--r-- | nvim/ftplugin/c.vim | 7 | ||||
| -rw-r--r-- | nvim/ftplugin/html.vim | 14 |
2 files changed, 21 insertions, 0 deletions
diff --git a/nvim/ftplugin/c.vim b/nvim/ftplugin/c.vim new file mode 100644 index 0000000..e0c347d --- /dev/null +++ b/nvim/ftplugin/c.vim | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | setlocal cinoptions=:0,p0,t0 | ||
| 2 | setlocal cinwords=if,else,while,do,for,switch,case | ||
| 3 | setlocal formatoptions=tcqr | ||
| 4 | setlocal cindent | ||
| 5 | |||
| 6 | setlocal foldenable | ||
| 7 | setlocal foldmethod=syntax | ||
diff --git a/nvim/ftplugin/html.vim b/nvim/ftplugin/html.vim new file mode 100644 index 0000000..fced505 --- /dev/null +++ b/nvim/ftplugin/html.vim | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | setlocal tabstop=2 | ||
| 2 | setlocal softtabstop=2 | ||
| 3 | setlocal shiftwidth=2 | ||
| 4 | setlocal smarttab | ||
| 5 | setlocal expandtab | ||
| 6 | setlocal autoindent | ||
| 7 | |||
| 8 | setlocal foldenable | ||
| 9 | setlocal foldmethod=indent | ||
| 10 | |||
| 11 | let g:html_indent_script1='inc' | ||
| 12 | let g:html_indent_style1='inc' | ||
| 13 | let g:html_indent_autotags='html' | ||
| 14 | let g:html_indent_inctags='head,body' | ||
