From a010d42b1ea9dd41bfa9f9059fc62b2a9e355257 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Sun, 3 Dec 2017 10:31:20 -0700 Subject: Tagbar, RainbowParentheses, SuperTab add. Fix Deoplete --- plugin/vim-options.vim | 41 +++++++++++++++++++++++++++-------------- 1 file changed, 27 insertions(+), 14 deletions(-) (limited to 'plugin/vim-options.vim') diff --git a/plugin/vim-options.vim b/plugin/vim-options.vim index 69d0b3e..9e15213 100644 --- a/plugin/vim-options.vim +++ b/plugin/vim-options.vim @@ -74,8 +74,7 @@ highlight DiffDelete cterm=BOLD ctermfg=NONE ctermbg=52 highlight DiffChange cterm=BOLD ctermfg=NONE ctermbg=23 highlight DiffText cterm=BOLD ctermfg=NONE ctermbg=23 " Set syntax of files that vim doesn't recognize -au BufRead,BufNewFile *.twig set syntax=htmljinja -au BufRead,BufNewFile *.html set syntax=htmljinja +au BufNewFile,BufRead *.html,*.htm,*.shtml,*.stm set ft=jinja au BufNewFile,BufRead *.yml set filetype=yaml au BufNewFile,BufRead *.sls set filetype=yaml au BufNewFile,BufRead *.inc set filetype=php @@ -135,15 +134,6 @@ endif "----------------------------------------------------------------------------------------------------------------------- " Custom functions "----------------------------------------------------------------------------------------------------------------------- -" Taken from ins-completion docs. Tab if only whitespace, autocomplete if there is text -function! CleverTab() - if strpart( getline('.'), 0, col('.')-1 ) =~ '^\s*$' - return "\" - else - return "\" - endif -endfunction -inoremap =CleverTab() " type jj to get out of insert mode inoremap jj " Ctags for python project @@ -419,10 +409,33 @@ endif "----------------------------------------------------------------------------------------------------------------------- -" Deoplete +" Tagbar +"----------------------------------------------------------------------------------------------------------------------- +if !empty(glob($EditorDir.'plugged/tagbar/plugin/tagbar.vim')) + nmap :TagbarToggle +endif +"----------------------------------------------------------------------------------------------------------------------- + + + +"----------------------------------------------------------------------------------------------------------------------- +" RainbowParentheses +"----------------------------------------------------------------------------------------------------------------------- +if !empty(glob($EditorDir.'plugged/rainbow_parentheses.vim/plugin/rainbow_parentheses.vim')) + au VimEnter * RainbowParenthesesToggle + au Syntax * RainbowParenthesesLoadRound + au Syntax * RainbowParenthesesLoadSquare + au Syntax * RainbowParenthesesLoadBraces +endif +"----------------------------------------------------------------------------------------------------------------------- + + + +"----------------------------------------------------------------------------------------------------------------------- +" SuperTab Plugin "----------------------------------------------------------------------------------------------------------------------- -if !empty(glob($EditorDir.'plugged/deoplete.nvim/plugin/deoplete.vim')) - let g:deoplete#enable_at_startup = 1 +if !empty(glob($EditorDir.'plugged/supertab/plugin/supertab.vim')) + let g:SuperTabDefaultCompletionType = "" endif "----------------------------------------------------------------------------------------------------------------------- -- cgit v1.2.3