From 79327f6f268d1274be2a9deea8b9147bf3b2b5cb Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 6 Aug 2020 22:32:00 -0400 Subject: added xtabline and undotree --- general/functions.vim | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'general') diff --git a/general/functions.vim b/general/functions.vim index 58db6b1f..47284f2e 100644 --- a/general/functions.vim +++ b/general/functions.vim @@ -3,6 +3,14 @@ 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 bs :call OpenLiveServer() + " Remove trailing whitespaces automatically before save " augroup strip_ws " autocmd BufWritePre * call utils#stripTrailingWhitespaces() -- cgit v1.2.3