From: Oleg Broytman Date: Sat, 2 Apr 2022 12:06:57 +0000 (+0300) Subject: Refactor(.vim/ftplugin): Settings common to all programming languages X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=e27f9627dc1ecbc20153a68b9110a9873acd2b73;p=dotfiles.git Refactor(.vim/ftplugin): Settings common to all programming languages --- diff --git a/.vim/ftplugin/javascript.vim b/.vim/ftplugin/javascript.vim index 70f214a..5887068 100644 --- a/.vim/ftplugin/javascript.vim +++ b/.vim/ftplugin/javascript.vim @@ -2,5 +2,4 @@ if exists("b:did_ftplugin") finish endif -setlocal formatoptions-=t formatoptions+=croql -setlocal shiftwidth=4 softtabstop=4 +runtime! ftplugin/programming_lang.vim diff --git a/.vim/ftplugin/programming_lang.vim b/.vim/ftplugin/programming_lang.vim new file mode 100644 index 0000000..b05efc9 --- /dev/null +++ b/.vim/ftplugin/programming_lang.vim @@ -0,0 +1,4 @@ +" Settings common to all programming languages + +setlocal formatoptions-=t formatoptions+=croql +setlocal shiftwidth=4 softtabstop=4 diff --git a/.vim/ftplugin/sh.vim b/.vim/ftplugin/sh.vim new file mode 100644 index 0000000..5887068 --- /dev/null +++ b/.vim/ftplugin/sh.vim @@ -0,0 +1,5 @@ +if exists("b:did_ftplugin") + finish +endif + +runtime! ftplugin/programming_lang.vim