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{{{
" switch.vim
"{{{
let g:switch_mapping = '<space>-'
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 <Plug>GitGutterNextHunk
nmap [h <Plug>GitGutterPrevHunk
omap ih <Plug>GitGutterTextObjectInnerPending
omap ah <Plug>GitGutterTextObjectOuterPending
xmap ih <Plug>GitGutterTextObjectInnerVisual
xmap ah <Plug>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 <space>ne :lnext<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_html_htmlhint_options = '-c ~/.htmlhintrc --format=unix'
let g:ale_fixers = {'javascript': ['eslint']}
"}}}
" ultisnips
"{{{
let g:UltiSnipsSnippetsDir='~/.vim/UltiSnips'
" Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe.
let g:UltiSnipsExpandTrigger='<c-j>'
let g:UltiSnipsJumpForwardTrigger='<c-b>'
let g:UltiSnipsJumpBackwardTrigger='<c-z>'
let g:UltiSnipsEditSplit='horizontal'
"}}}
" Netrw
"{{{
let g:netrw_liststyle=3
let g:netrw_list_hide='^\..*'
let g:netrw_preview = 0
"}}}
" bufexploer
"{{{
nnoremap <space>o :BufExplorer<CR>
"}}}
" undotree
"{{{
nnoremap <space>ut :UndotreeToggle<cr>
"}}}
" TagBar
"{{{
nnoremap <space>tb :TagbarOpen fj<CR>
nnoremap <space>] :tag /[.#@]<c-r>=expand('<cword>')<cr><cr>
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 <space>cp :ColorVPicker<CR>
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