summaryrefslogtreecommitdiff
path: root/general/functions.vim
blob: 94ace1996e2c91e4284bbfa019b7f6e8511a736e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
" 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>

" augroup strip_ws
"   autocmd BufWritePre * call utils#stripTrailingWhitespaces()
" augroup END