From e27f9627dc1ecbc20153a68b9110a9873acd2b73 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 2 Apr 2022 15:06:57 +0300 Subject: [PATCH] Refactor(.vim/ftplugin): Settings common to all programming languages --- .vim/ftplugin/javascript.vim | 3 +-- .vim/ftplugin/programming_lang.vim | 4 ++++ .vim/ftplugin/sh.vim | 5 +++++ 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .vim/ftplugin/programming_lang.vim create mode 100644 .vim/ftplugin/sh.vim 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 -- 2.39.5