From 8566d05b5fda9ef496769b46f1cf0d59c9155603 Mon Sep 17 00:00:00 2001 From: Pavel Lutskov Date: Sun, 29 Jul 2018 19:27:23 +0200 Subject: [PATCH] Webdevelopment --- plugin/comment.vim | 6 +++++- plugin/settings.vim | 11 +++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/plugin/comment.vim b/plugin/comment.vim index c246699..3666820 100644 --- a/plugin/comment.vim +++ b/plugin/comment.vim @@ -2,6 +2,7 @@ let s:comment_map = { \ 'c': '\/\/', \ 'cpp': '\/\/', \ 'java': '\/\/', + \ 'javascript': '\/\/', \ 'vhdl': '--', \ 'python': '#', \ 'vim': '"', @@ -16,7 +17,10 @@ let s:block_map = { \ 'java': ['\/\*', '\*\/'], \ 'cpp': ['\/\*', '\*\/'], \ 'python': ['"""', '"""'], - \ 'vim': ['" {{{', '" }}}'] + \ 'vim': ['" {{{', '" }}}'], + \ 'css': ['\/\*', '\*\/'], + \ 'html': [''], + \ 'javascript': ['\/\*', '\*\/'] \ } function! MyCommenter(uncomment) range diff --git a/plugin/settings.vim b/plugin/settings.vim index 962347c..f8fcb55 100644 --- a/plugin/settings.vim +++ b/plugin/settings.vim @@ -53,6 +53,17 @@ let g:tagbar_autofocus = 1 let g:tagbar_map_close = "qT" " }}} +" Webdev stuff +" {{{ +let g:user_emmet_install_global = 0 +augroup webdev + autocmd! + autocmd FileType html,css EmmetInstall + autocmd FileType html setlocal omnifunc=htmlcomplete#CompleteTags + autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS +augroup END +" }}} + " LatexBox stuff " {{{ let g:LatexBox_no_mappings = 1