Skip to content

Commit

Permalink
Make some settings buffer local, fixes
Browse files Browse the repository at this point in the history
* Make formatting options local to a markdown buffer so it doesn't
  interfere with other files
* Fix vim config errors (don't put spaces around assignment operator)
  • Loading branch information
afnanenayet committed Mar 21, 2019
1 parent 59270da commit fd4346b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ftplugin/markdown.vim
Expand Up @@ -4,13 +4,13 @@ let b:deoplete_disable_auto_complete = 1
setlocal spell
setlocal spellsuggest
set textwidth=79
set formatexpr=
setlocal formatexpr=

" set tabwidth = 2 spaces for markdown
setlocal tabstop=2
setlocal shiftwidth=2
nnoremap <buffer> <silent> gc :ALEfix<CR>
let b:ale_fix_on_save = 1
nnoremap <buffer> <silent> gc :ALEFix<CR>
let b:ale_fix_on_save=1

" Personal preference, I like to see the formatting modifiers
setlocal conceallevel = 0
setlocal conceallevel=0

0 comments on commit fd4346b

Please sign in to comment.