diff options
author | Robin Obůrka <robin.oburka@nic.cz> | 2019-03-11 12:58:55 +0100 |
---|---|---|
committer | Robin Obůrka <robin.oburka@nic.cz> | 2019-03-11 12:58:55 +0100 |
commit | 652634143a78e262f0e26a10f253d2385fb44a41 (patch) | |
tree | 35ee484ee06db63538a57b1488a4a58ddbfaa49b /.vim | |
parent | Change plugin manager from pathogen to vundle (diff) | |
download | vim_sync-652634143a78e262f0e26a10f253d2385fb44a41.tar.xz |
Refactor file type configuration to the ftplugin
Diffstat (limited to '.vim')
-rw-r--r-- | .vim/ftplugin/README | 14 | ||||
-rw-r--r-- | .vim/ftplugin/c.vim | 1 | ||||
-rw-r--r-- | .vim/ftplugin/cpp.vim | 1 | ||||
-rw-r--r-- | .vim/ftplugin/gitcommit.vim | 1 | ||||
-rw-r--r-- | .vim/ftplugin/python.vim | 3 | ||||
-rw-r--r-- | .vim/ftplugin/text.vim | 1 | ||||
-rw-r--r-- | .vim/ftplugin/yaml.vim | 1 |
7 files changed, 22 insertions, 0 deletions
diff --git a/.vim/ftplugin/README b/.vim/ftplugin/README new file mode 100644 index 0000000..10327fb --- /dev/null +++ b/.vim/ftplugin/README @@ -0,0 +1,14 @@ +To detect file type use + +``` +set ft +``` + +in buffer. + + +You can define your own filetype in .vim/ftdetect directory: + +``` +au BufRead,BufNewFile *[cC]onffile,*.cf set filetype=conffile +``` diff --git a/.vim/ftplugin/c.vim b/.vim/ftplugin/c.vim new file mode 100644 index 0000000..7c98e62 --- /dev/null +++ b/.vim/ftplugin/c.vim @@ -0,0 +1 @@ +set spell spelllang=en diff --git a/.vim/ftplugin/cpp.vim b/.vim/ftplugin/cpp.vim new file mode 100644 index 0000000..7c98e62 --- /dev/null +++ b/.vim/ftplugin/cpp.vim @@ -0,0 +1 @@ +set spell spelllang=en diff --git a/.vim/ftplugin/gitcommit.vim b/.vim/ftplugin/gitcommit.vim new file mode 100644 index 0000000..bea0581 --- /dev/null +++ b/.vim/ftplugin/gitcommit.vim @@ -0,0 +1 @@ +set spell spelllang=en textwidth=80 diff --git a/.vim/ftplugin/python.vim b/.vim/ftplugin/python.vim new file mode 100644 index 0000000..ef4e184 --- /dev/null +++ b/.vim/ftplugin/python.vim @@ -0,0 +1,3 @@ +let b:ale_linters = ['pyls'] + +set expandtab tabstop=4 shiftwidth=4 spell spelllang=en diff --git a/.vim/ftplugin/text.vim b/.vim/ftplugin/text.vim new file mode 100644 index 0000000..7fa0bd3 --- /dev/null +++ b/.vim/ftplugin/text.vim @@ -0,0 +1 @@ +set spell expandtab spelllang=cs diff --git a/.vim/ftplugin/yaml.vim b/.vim/ftplugin/yaml.vim new file mode 100644 index 0000000..510b376 --- /dev/null +++ b/.vim/ftplugin/yaml.vim @@ -0,0 +1 @@ +set expandtab tabstop=2 shiftwidth=2 spell spelllang=en |