diff --git a/ftplugin/qf.vim b/after/ftplugin/qf.vim similarity index 100% rename from ftplugin/qf.vim rename to 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