From 74fd73196a645f092e285aeb178590f423df0401 Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Fri, 31 Mar 2023 13:55:01 +0200 Subject: Feineinstellungen für html und c Dateien MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nvim/ftplugin/c.vim | 7 +++++++ nvim/ftplugin/html.vim | 14 ++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 nvim/ftplugin/c.vim create mode 100644 nvim/ftplugin/html.vim (limited to 'nvim/ftplugin') 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 @@ +setlocal cinoptions=:0,p0,t0 +setlocal cinwords=if,else,while,do,for,switch,case +setlocal formatoptions=tcqr +setlocal cindent + +setlocal foldenable +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 @@ +setlocal tabstop=2 +setlocal softtabstop=2 +setlocal shiftwidth=2 +setlocal smarttab +setlocal expandtab +setlocal autoindent + +setlocal foldenable +setlocal foldmethod=indent + +let g:html_indent_script1='inc' +let g:html_indent_style1='inc' +let g:html_indent_autotags='html' +let g:html_indent_inctags='head,body' -- cgit v1.3