From 710245afa719e006317228fe38a6f334ab401c18 Mon Sep 17 00:00:00 2001 From: ManjaroOne666 Date: Sat, 7 Apr 2018 19:20:03 +0100 Subject: [PATCH] folds and stuff --- vimrc.plugins.vim | 39 +++++++++++++++++++++++++++++++++------ 1 file changed, 33 insertions(+), 6 deletions(-) diff --git a/vimrc.plugins.vim b/vimrc.plugins.vim index 7263468..aaf3953 100644 --- a/vimrc.plugins.vim +++ b/vimrc.plugins.vim @@ -102,33 +102,42 @@ filetype plugin indent on " required " #plugin settings{{{ " switch.vim +"{{{ let g:switch_mapping = '-' let g:switch_custom_definitions = [ \ ['0', '1'], \ ['ease-in', 'ease-out'], \ ['auto', 'none'] \ ] +"}}} " vim-hardtime +"{{{ let g:hardtime_default_on = 1 let g:hardtime_showmsg = 1 let g:hardtime_ignore_quickfix = 1 let g:hardtime_allow_different_key = 0 let g:hardtime_maxcount = 3 let g:hardtime_ignore_buffer_patterns = ['BufExplorer', 'TagBar'] +"}}} " vim-peekaboo +"{{{ let g:peekaboo_window = 'vert to 30new' +"}}} " gitgutter +"{{{ nmap ]h GitGutterNextHunk nmap [h GitGutterPrevHunk omap ih GitGutterTextObjectInnerPending omap ah GitGutterTextObjectOuterPending xmap ih GitGutterTextObjectInnerVisual xmap ah GitGutterTextObjectOuterVisual +"}}} " Use the silver searcher ag command instead of grep +"{{{ if executable('ag') " Use ag over grep set grepprg=ag\ --nogroup\ --nocolor @@ -154,14 +163,18 @@ let g:user_emmet_settings = { \ 'indentation': ' ', \ } \} +"}}} " taboo.vim +"{{{ set sessionoptions+=tabpages,globals let g:taboo_tab_format = ' %f%m ' let g:taboo_renamed_tab_format = ' %l%m ' let g:taboo_modified_tab_flag = '+' +"}}} " vue-vim +"{{{ " disable preprocessor checking for vue files - increases speed let g:vue_disable_pre_processors=0 " set custom syntax highlighting @@ -169,9 +182,10 @@ augroup fixhighlighting autocmd! autocmd BufNewFile,BufRead *.vue syntax sync fromstart augroup END - +"}}} " ALE +"{{{ nnoremap ne :lnext nnoremap pe :lprev @@ -182,29 +196,37 @@ let g:ale_sign_column_always = 1 let g:ale_linters = {'scss': ['stylelint'], 'javascript': ['eslint'], 'php':['php'], 'html':['htmlhint']} let g:ale_html_htmlhint_options = '-c ~/.htmlhintrc --format=unix' let g:ale_fixers = {'javascript': ['eslint']} - +"}}} " ultisnips +"{{{ let g:UltiSnipsSnippetsDir='~/.vim/UltiSnips' " Trigger configuration. Do not use if you use https://github.com/Valloric/YouCompleteMe. let g:UltiSnipsExpandTrigger='' let g:UltiSnipsJumpForwardTrigger='' let g:UltiSnipsJumpBackwardTrigger='' let g:UltiSnipsEditSplit='horizontal' +"}}} " Netrw +"{{{ let g:netrw_liststyle=3 let g:netrw_list_hide='^\..*' let g:netrw_preview = 0 - +"}}} " bufexploer +"{{{ nnoremap o :BufExplorer +"}}} " undotree +"{{{ nnoremap ut :UndotreeToggle +"}}} " TagBar +"{{{ nnoremap tb :TagbarOpen fj nnoremap ] :tag /[.#@]=expand('') let g:tagbar_autoclose = 1 @@ -246,14 +268,16 @@ let g:tagbar_type_vue = { \ 'v:variable' \ ] \ } +"}}} " gutentags +"{{{ let g:gutentags_ctags_tagfile = '.tags' let g:gutentags_ctags_exclude = ['package.json', 'Session.vim', 'package-lock.json', 'TODO.txt'] - "}}} " colorV +"{{{ let g:colorv_no_global_map = 1 let g:colorv_win_pos = 'top' let g:colorv_preview_area = 0 @@ -267,12 +291,15 @@ nnoremap cp :ColorVPicker let g:colorv_is_previewing = 0 function! ToggleColorPreview() abort if g:colorv_is_previewing == 0 - execute "ColorVPreview" + execute 'ColorVPreview' let g:colorv_is_previewing = 1 else - execute "ColorVClear" + execute 'ColorVClear' let g:colorv_is_previewing = 0 endif endfunction +"}}} + +"}}} " vim: foldmethod=marker