summaryrefslogtreecommitdiff
path: root/vim/.vim/ftplugin/markdown.vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim/.vim/ftplugin/markdown.vim')
-rw-r--r--vim/.vim/ftplugin/markdown.vim14
1 files changed, 14 insertions, 0 deletions
diff --git a/vim/.vim/ftplugin/markdown.vim b/vim/.vim/ftplugin/markdown.vim
new file mode 100644
index 0000000..8abe28a
--- /dev/null
+++ b/vim/.vim/ftplugin/markdown.vim
@@ -0,0 +1,14 @@
+setlocal syntax=markdown
+
+" Spellcheck in markdown (automatic to english)
+setlocal spelllang=en
+setlocal spell
+
+" Textwidth for automatic wrap `gq` is formatting operation
+setlocal textwidth=79
+setlocal formatoptions+=t
+
+
+" Highlight where the lines are more than 80 characters wide
+setlocal colorcolumn=80
+highlight ColorColumn ctermbg=LightGreen