scatterd-dotfiles/vim/ftplugin/markdown.vim
Geoff Harcourt f02eab0354 Extract filetype-specific setups to ftplugin
Vim's documentation advises that buffer-specific configuration based on
a filetype should be performed via a file in `$HOME/.vim/ftplugin`:
http://vimdoc.sourceforge.net/htmldoc/usr_41.html#41.12

This change moves CSS/Sass-, Git commit message-, and Markdown-related
editor settings into `ftplugin/gitcommit.vim` and
`ftplugin/markdown.vim`, and rewrites those settings to avoid using
`autocmd`, letting Vim execute `setlocal` when a file of the filetype is
determined or set.
2015-12-18 16:18:32 -05:00

5 lines
99 B
VimL

" Enable spellchecking
setlocal spell
" Automatically wrap at 80 characters
setlocal textwidth=80