From fbba77dedee97f99f306797fc96b0327aa02a65e Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Thu, 8 Jun 2017 11:40:33 +0100 Subject: [PATCH] Use default tab width in markdown Also check if +syntax is available before enabling spell. --- after/ftplugin/markdown.vim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/after/ftplugin/markdown.vim b/after/ftplugin/markdown.vim index 680892d..19fff24 100644 --- a/after/ftplugin/markdown.vim +++ b/after/ftplugin/markdown.vim @@ -1,5 +1,5 @@ " Enable spelling except in Windows terminal vim. -if !has("win32") || has("gui_running") +if has('syntax') && (!has('win32') || has('gui_running')) setlocal spell endif @@ -31,8 +31,6 @@ endfunction " Max 80 chars wide. setlocal textwidth=80 -" Use tabwidth of 4 to be markdown complient. -setlocal tabstop=4 shiftwidth=4 softtabstop=4 " Custom surround for markdown link syntax. " "ys{motion}l" makes link out of "word" -> "[word]()"