aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch Riedstra <Mitch@riedstra.us>2016-12-18 10:48:36 -0500
committerMitch Riedstra <Mitch@riedstra.us>2016-12-18 10:48:36 -0500
commit656eeaaaacd32ceaa0c5363684b91962df20936a (patch)
treef0536b643ecc3f23a92b01f855a003ae2c46e407
parent08027c132e94dda8927e572dd2ae77f652adc583 (diff)
downloadvim-cfg-656eeaaaacd32ceaa0c5363684b91962df20936a.tar.gz
vim-cfg-656eeaaaacd32ceaa0c5363684b91962df20936a.tar.xz
Set specific options for markdown files
-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