summaryrefslogtreecommitdiffstats
path: root/.vim/ftplugin
diff options
context:
space:
mode:
Diffstat (limited to '.vim/ftplugin')
-rw-r--r--.vim/ftplugin/README14
-rw-r--r--.vim/ftplugin/c.vim1
-rw-r--r--.vim/ftplugin/cpp.vim1
-rw-r--r--.vim/ftplugin/gitcommit.vim1
-rw-r--r--.vim/ftplugin/python.vim3
-rw-r--r--.vim/ftplugin/text.vim1
-rw-r--r--.vim/ftplugin/yaml.vim1
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