aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2021-08-09 23:04:27 +0800
committerjdhao <jdhao@hotmail.com>2021-08-09 23:04:27 +0800
commit0aa6117ffc38581006a8a41e0e6fc2259a07ea74 (patch)
treee89ba68702b413006657e92489f98249bf82d756
parent69c22793e1c37c35724204c3b26c5ea0488591f0 (diff)
Move ftplugin to after/ftplugin
Make my own settings have the final say on how a filetype should behave, instead of some 3rd party plugins.
-rw-r--r--after/ftplugin/qf.vim (renamed from ftplugin/qf.vim)0
-rw-r--r--after/ftplugin/yaml.vim5
-rw-r--r--ftplugin/yaml.vim4
3 files changed, 5 insertions, 4 deletions
diff --git a/ftplugin/qf.vim b/after/ftplugin/qf.vim
index 89b4c1f..89b4c1f 100644
--- a/ftplugin/qf.vim
+++ b/after/ftplugin/qf.vim
diff --git a/after/ftplugin/yaml.vim b/after/ftplugin/yaml.vim
index 46e9ccd..a8e3099 100644
--- a/after/ftplugin/yaml.vim
+++ b/after/ftplugin/yaml.vim
@@ -2,3 +2,8 @@ set tabstop=2 " number of visual spaces per TAB
set softtabstop=2 " number of spaces in tab when editing
set shiftwidth=2 " number of spaces to use for autoindent
set expandtab " expand tab to spaces so that tabs are spaces
+
+" Turn off syntax highlighting for large YAML files.
+if line('$') > 500
+ setlocal syntax=OFF
+endif
diff --git a/ftplugin/yaml.vim b/ftplugin/yaml.vim
deleted file mode 100644
index ad695d7..0000000
--- a/ftplugin/yaml.vim
+++ /dev/null
@@ -1,4 +0,0 @@
-" Turn off syntax highlighting for large YAML files.
-if line('$') > 500
- setlocal syntax=OFF
-endif