Просмотр исходного кода

removed whitespace note in airline if editing markdown

Josh Bicking 7 лет назад
Родитель
Сommit
ce5444cdd8
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      vimrc

+ 4 - 1
vimrc

@@ -127,7 +127,7 @@ function! BlackBG()
 endfunction
 
 " remove trailing whitespace and return to start position
-" remove lighlight if in nvim
+" remove highlight if in nvim
 if has('nvim')
     noremap <Leader>w :%s/\s\+$//<CR>:nohl<CR>``
 else
@@ -189,6 +189,9 @@ highlight YcmErrorsign ctermfg=Red
 " place the airline bar above the command line
 set laststatus=2
 
+" ignore trailing whitespace in markdown
+autocmd FileType markdown AirlineToggleWhitespace
+
 " neovim
 
 if has('nvim')