folds and stuff

This commit is contained in:
ManjaroOne666 2018-04-07 19:20:03 +01:00
parent 5486f38ba6
commit 710245afa7
1 changed files with 33 additions and 6 deletions

View File

@ -102,33 +102,42 @@ filetype plugin indent on " required
" #plugin settings{{{ " #plugin settings{{{
" switch.vim " switch.vim
"{{{
let g:switch_mapping = '<space>-' let g:switch_mapping = '<space>-'
let g:switch_custom_definitions = [ let g:switch_custom_definitions = [
\ ['0', '1'], \ ['0', '1'],
\ ['ease-in', 'ease-out'], \ ['ease-in', 'ease-out'],
\ ['auto', 'none'] \ ['auto', 'none']
\ ] \ ]
"}}}
" vim-hardtime " vim-hardtime
"{{{
let g:hardtime_default_on = 1 let g:hardtime_default_on = 1
let g:hardtime_showmsg = 1 let g:hardtime_showmsg = 1
let g:hardtime_ignore_quickfix = 1 let g:hardtime_ignore_quickfix = 1
let g:hardtime_allow_different_key = 0 let g:hardtime_allow_different_key = 0
let g:hardtime_maxcount = 3 let g:hardtime_maxcount = 3
let g:hardtime_ignore_buffer_patterns = ['BufExplorer', 'TagBar'] let g:hardtime_ignore_buffer_patterns = ['BufExplorer', 'TagBar']
"}}}
" vim-peekaboo " vim-peekaboo
"{{{
let g:peekaboo_window = 'vert to 30new' let g:peekaboo_window = 'vert to 30new'
"}}}
" gitgutter " gitgutter
"{{{
nmap ]h <Plug>GitGutterNextHunk nmap ]h <Plug>GitGutterNextHunk
nmap [h <Plug>GitGutterPrevHunk nmap [h <Plug>GitGutterPrevHunk
omap ih <Plug>GitGutterTextObjectInnerPending omap ih <Plug>GitGutterTextObjectInnerPending
omap ah <Plug>GitGutterTextObjectOuterPending omap ah <Plug>GitGutterTextObjectOuterPending
xmap ih <Plug>GitGutterTextObjectInnerVisual xmap ih <Plug>GitGutterTextObjectInnerVisual
xmap ah <Plug>GitGutterTextObjectOuterVisual xmap ah <Plug>GitGutterTextObjectOuterVisual
"}}}
" Use the silver searcher ag command instead of grep " Use the silver searcher ag command instead of grep
"{{{
if executable('ag') if executable('ag')
" Use ag over grep " Use ag over grep
set grepprg=ag\ --nogroup\ --nocolor set grepprg=ag\ --nogroup\ --nocolor
@ -154,14 +163,18 @@ let g:user_emmet_settings = {
\ 'indentation': ' ', \ 'indentation': ' ',
\ } \ }
\} \}
"}}}
" taboo.vim " taboo.vim
"{{{
set sessionoptions+=tabpages,globals set sessionoptions+=tabpages,globals
let g:taboo_tab_format = ' %f%m ' let g:taboo_tab_format = ' %f%m '
let g:taboo_renamed_tab_format = ' %l%m ' let g:taboo_renamed_tab_format = ' %l%m '
let g:taboo_modified_tab_flag = '+' let g:taboo_modified_tab_flag = '+'
"}}}
" vue-vim " vue-vim
"{{{
" disable preprocessor checking for vue files - increases speed " disable preprocessor checking for vue files - increases speed
let g:vue_disable_pre_processors=0 let g:vue_disable_pre_processors=0
" set custom syntax highlighting " set custom syntax highlighting
@ -169,9 +182,10 @@ augroup fixhighlighting
autocmd! autocmd!
autocmd BufNewFile,BufRead *.vue syntax sync fromstart autocmd BufNewFile,BufRead *.vue syntax sync fromstart
augroup END augroup END
"}}}
" ALE " ALE
"{{{
nnoremap <space>ne :lnext<cr> nnoremap <space>ne :lnext<cr>
nnoremap <space>pe :lprev<cr> nnoremap <space>pe :lprev<cr>
@ -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_linters = {'scss': ['stylelint'], 'javascript': ['eslint'], 'php':['php'], 'html':['htmlhint']}
let g:ale_html_htmlhint_options = '-c ~/.htmlhintrc --format=unix' let g:ale_html_htmlhint_options = '-c ~/.htmlhintrc --format=unix'
let g:ale_fixers = {'javascript': ['eslint']} let g:ale_fixers = {'javascript': ['eslint']}
"}}}
" ultisnips " ultisnips
"{{{
let g:UltiSnipsSnippetsDir='~/.vim/UltiSnips' let g:UltiSnipsSnippetsDir='~/.vim/UltiSnips'
" Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe. " Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe.
let g:UltiSnipsExpandTrigger='<c-j>' let g:UltiSnipsExpandTrigger='<c-j>'
let g:UltiSnipsJumpForwardTrigger='<c-b>' let g:UltiSnipsJumpForwardTrigger='<c-b>'
let g:UltiSnipsJumpBackwardTrigger='<c-z>' let g:UltiSnipsJumpBackwardTrigger='<c-z>'
let g:UltiSnipsEditSplit='horizontal' let g:UltiSnipsEditSplit='horizontal'
"}}}
" Netrw " Netrw
"{{{
let g:netrw_liststyle=3 let g:netrw_liststyle=3
let g:netrw_list_hide='^\..*' let g:netrw_list_hide='^\..*'
let g:netrw_preview = 0 let g:netrw_preview = 0
"}}}
" bufexploer " bufexploer
"{{{
nnoremap <space>o :BufExplorer<CR> nnoremap <space>o :BufExplorer<CR>
"}}}
" undotree " undotree
"{{{
nnoremap <space>ut :UndotreeToggle<cr> nnoremap <space>ut :UndotreeToggle<cr>
"}}}
" TagBar " TagBar
"{{{
nnoremap <space>tb :TagbarOpen fj<CR> nnoremap <space>tb :TagbarOpen fj<CR>
nnoremap <space>] :tag /[.#@]<c-r>=expand('<cword>')<cr><cr> nnoremap <space>] :tag /[.#@]<c-r>=expand('<cword>')<cr><cr>
let g:tagbar_autoclose = 1 let g:tagbar_autoclose = 1
@ -246,14 +268,16 @@ let g:tagbar_type_vue = {
\ 'v:variable' \ 'v:variable'
\ ] \ ]
\ } \ }
"}}}
" gutentags " gutentags
"{{{
let g:gutentags_ctags_tagfile = '.tags' let g:gutentags_ctags_tagfile = '.tags'
let g:gutentags_ctags_exclude = ['package.json', 'Session.vim', 'package-lock.json', 'TODO.txt'] let g:gutentags_ctags_exclude = ['package.json', 'Session.vim', 'package-lock.json', 'TODO.txt']
"}}} "}}}
" colorV " colorV
"{{{
let g:colorv_no_global_map = 1 let g:colorv_no_global_map = 1
let g:colorv_win_pos = 'top' let g:colorv_win_pos = 'top'
let g:colorv_preview_area = 0 let g:colorv_preview_area = 0
@ -267,12 +291,15 @@ nnoremap <space>cp :ColorVPicker<CR>
let g:colorv_is_previewing = 0 let g:colorv_is_previewing = 0
function! ToggleColorPreview() abort function! ToggleColorPreview() abort
if g:colorv_is_previewing == 0 if g:colorv_is_previewing == 0
execute "ColorVPreview" execute 'ColorVPreview'
let g:colorv_is_previewing = 1 let g:colorv_is_previewing = 1
else else
execute "ColorVClear" execute 'ColorVClear'
let g:colorv_is_previewing = 0 let g:colorv_is_previewing = 0
endif endif
endfunction endfunction
"}}}
"}}}
" vim: foldmethod=marker " vim: foldmethod=marker