mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-21 02:55:09 +02:00
19 lines
482 B
VimL
19 lines
482 B
VimL
" Random Useful Functions
|
|
|
|
" Turn spellcheck on for markdown files
|
|
augroup auto_spellcheck
|
|
autocmd BufNewFile,BufRead *.md setlocal spell
|
|
augroup END
|
|
|
|
function! OpenLiveServer()
|
|
echo 'live server is on'
|
|
silent !live-server % &
|
|
endfunction
|
|
|
|
command Serve :call OpenLiveServer()
|
|
nnoremap <silent>bs :call OpenLiveServer()<CR>
|
|
|
|
" Remove trailing whitespaces automatically before save
|
|
" augroup strip_ws
|
|
" autocmd BufWritePre * call utils#stripTrailingWhitespaces()
|
|
" augroup END
|