LunarVim.LunarVim/general/functions.vim

18 lines
455 B
VimL
Raw Normal View History

2020-05-10 16:20:02 -04:00
" Turn spellcheck on for markdown files
2020-05-10 23:27:51 -04:00
augroup auto_spellcheck
autocmd BufNewFile,BufRead *.md setlocal spell
augroup END
2020-05-10 16:20:02 -04:00
2020-08-06 22:32:00 -04:00
function! OpenLiveServer()
echo 'live server is on'
silent !live-server % &
endfunction
command Serve :call OpenLiveServer()
nnoremap <silent>bs :call OpenLiveServer()<CR>
2020-05-10 16:20:02 -04:00
" Remove trailing whitespaces automatically before save
2020-05-10 19:23:44 -04:00
" augroup strip_ws
2020-05-10 23:27:51 -04:00
" autocmd BufWritePre * call utils#stripTrailingWhitespaces()
2020-05-10 19:23:44 -04:00
" augroup END