aboutsummaryrefslogtreecommitdiff
path: root/init.vim
diff options
context:
space:
mode:
Diffstat (limited to 'init.vim')
-rw-r--r--init.vim16
1 files changed, 12 insertions, 4 deletions
diff --git a/init.vim b/init.vim
index 3052409..2124c4b 100644
--- a/init.vim
+++ b/init.vim
@@ -113,6 +113,10 @@ set updatecount=0
" Vi in-compatibility
set nocompatible
+set tabstop=4
+set shiftwidth=4
+set noexpandtab
+
autocmd Filetype python call SetPythonOptions()
autocmd Filetype htmldjango call SethtmldjangoOptions()
@@ -122,7 +126,15 @@ autocmd Filetype html call SetHTMLOptions()
autocmd Filetype sh call SetShellOptions()
autocmd Filetype go call SetGoOptions()
autocmd Filetype yaml call SetYamlOptions()
+autocmd Filetype markdown call SetMarkdownOptions()
+function SetMarkdownOptions()
+ set spell
+ set tabstop=4
+ set shiftwidth=4
+ set expandtab
+ AcpDisable
+endfunction
function SetPythonOptions()
set tabstop=4
set shiftwidth=4
@@ -183,10 +195,6 @@ function SetYamlOptions()
set noic
endfunction
-set tabstop=4
-set shiftwidth=4
-set noexpandtab
-
function! PhpSyntaxOverride()
hi! def link phpDocTags phpDefine