Webdevelopment

This commit is contained in:
2018-07-29 19:27:23 +02:00
parent 8be1791f6d
commit 8566d05b5f
2 changed files with 16 additions and 1 deletions

View File

@@ -2,6 +2,7 @@ let s:comment_map = {
\ 'c': '\/\/', \ 'c': '\/\/',
\ 'cpp': '\/\/', \ 'cpp': '\/\/',
\ 'java': '\/\/', \ 'java': '\/\/',
\ 'javascript': '\/\/',
\ 'vhdl': '--', \ 'vhdl': '--',
\ 'python': '#', \ 'python': '#',
\ 'vim': '"', \ 'vim': '"',
@@ -16,7 +17,10 @@ let s:block_map = {
\ 'java': ['\/\*', '\*\/'], \ 'java': ['\/\*', '\*\/'],
\ 'cpp': ['\/\*', '\*\/'], \ 'cpp': ['\/\*', '\*\/'],
\ 'python': ['"""', '"""'], \ 'python': ['"""', '"""'],
\ 'vim': ['" {{{', '" }}}'] \ 'vim': ['" {{{', '" }}}'],
\ 'css': ['\/\*', '\*\/'],
\ 'html': ['<!--', '-->'],
\ 'javascript': ['\/\*', '\*\/']
\ } \ }
function! MyCommenter(uncomment) range function! MyCommenter(uncomment) range

View File

@@ -53,6 +53,17 @@ let g:tagbar_autofocus = 1
let g:tagbar_map_close = "qT" 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 " LatexBox stuff
" {{{ " {{{
let g:LatexBox_no_mappings = 1 let g:LatexBox_no_mappings = 1