]> git.phdru.name Git - dotfiles.git/commitdiff
Refactor(.vim/ftplugin): Settings common to all programming languages
authorOleg Broytman <phd@phdru.name>
Sat, 2 Apr 2022 12:06:57 +0000 (15:06 +0300)
committerOleg Broytman <phd@phdru.name>
Sat, 2 Apr 2022 12:06:57 +0000 (15:06 +0300)
.vim/ftplugin/javascript.vim
.vim/ftplugin/programming_lang.vim [new file with mode: 0644]
.vim/ftplugin/sh.vim [new file with mode: 0644]

index 70f214af5d4823a696c23b9062c661f4887a8f46..58870681488aafd83f3f8e9179b8c0152af0dfb4 100644 (file)
@@ -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 (file)
index 0000000..b05efc9
--- /dev/null
@@ -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 (file)
index 0000000..5887068
--- /dev/null
@@ -0,0 +1,5 @@
+if exists("b:did_ftplugin")
+   finish
+endif
+
+runtime! ftplugin/programming_lang.vim