summaryrefslogtreecommitdiffstats
path: root/after/ftplugin
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2019-11-15 17:10:16 +0100
committerAhmed Abdelhalim <[email protected]>2019-11-15 17:10:16 +0100
commit51b67bb5a07ee3eaab080c14a8b01dc43c52c21f (patch)
treee50e9597a1fc692f2bb9da42b697c0f90cac80e3 /after/ftplugin
parent1ae3ed9d49c2400c5411c0439c975f64d91b70de (diff)
Add filetype specific indentations
Diffstat (limited to 'after/ftplugin')
l---------after/ftplugin/eruby.vim1
-rw-r--r--after/ftplugin/python.vim4
-rw-r--r--after/ftplugin/ruby.vim8
3 files changed, 13 insertions, 0 deletions
diff --git a/after/ftplugin/eruby.vim b/after/ftplugin/eruby.vim
new file mode 120000
index 0000000..af11168
--- /dev/null
+++ b/after/ftplugin/eruby.vim
@@ -0,0 +1 @@
+ruby.vim \ No newline at end of file
diff --git a/after/ftplugin/python.vim b/after/ftplugin/python.vim
new file mode 100644
index 0000000..e847d12
--- /dev/null
+++ b/after/ftplugin/python.vim
@@ -0,0 +1,4 @@
+setlocal tabstop=8
+setlocal expandtab
+setlocal shiftwidth=4
+setlocal softtabstop=4
diff --git a/after/ftplugin/ruby.vim b/after/ftplugin/ruby.vim
new file mode 100644
index 0000000..ad4ed03
--- /dev/null
+++ b/after/ftplugin/ruby.vim
@@ -0,0 +1,8 @@
+set omnifunc=rubycomplete#Complete
+let g:rubycomplete_buffer_loading = 1
+let g:rubycomplete_rails = 1
+let g:rubycomplete_classes_in_global = 1
+let g:rubycomplete_include_object = 1
+let g:rubycomplete_include_objectspace = 1
+setlocal spell " allow spell checking for ruby documentation
+set complete+=k " allow spell autocompletion using CTRL-N