From 656eeaaaacd32ceaa0c5363684b91962df20936a Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Sun, 18 Dec 2016 10:48:36 -0500 Subject: Set specific options for markdown files --- init.vim | 16 ++++++++++++---- 1 file 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 -- cgit v1.2.3