functions.vim 455 B

1234567891011121314151617
  1. " Turn spellcheck on for markdown files
  2. augroup auto_spellcheck
  3. autocmd BufNewFile,BufRead *.md setlocal spell
  4. augroup END
  5. function! OpenLiveServer()
  6. echo 'live server is on'
  7. silent !live-server % &
  8. endfunction
  9. command Serve :call OpenLiveServer()
  10. nnoremap <silent>bs :call OpenLiveServer()<CR>
  11. " Remove trailing whitespaces automatically before save
  12. " augroup strip_ws
  13. " autocmd BufWritePre * call utils#stripTrailingWhitespaces()
  14. " augroup END