This commit is contained in:
ManjaroOne666 2018-09-25 16:45:42 +01:00
parent 51bef7712b
commit 65665b9447
1 changed files with 40 additions and 106 deletions

146
vimrc
View File

@ -142,7 +142,7 @@ Plug 'prabirshrestha/vim-lsp'
" inline_edit.vim " inline_edit.vim
" https://github.com/AndrewRadev/inline_edit.vim " https://github.com/AndrewRadev/inline_edit.vim
" Plug 'AndrewRadev/inline_edit.vim' Plug 'AndrewRadev/inline_edit.vim'
call plug#end() call plug#end()
@ -154,89 +154,24 @@ runtime macros/matchit.vim
" #plugin settings {{{ " #plugin settings {{{
" inline_edit.vim " inline_edit.vim{{{
" let g:inline_edit_patterns = [{ let g:inline_edit_patterns = [{
" \ 'main_filetype': '*html', \ 'main_filetype': '*html',
" \ 'sub_filetype': 'scss', \ 'sub_filetype': 'scss',
" \ 'indent_adjustment': 1, \ 'indent_adjustment': 1,
" \ 'start': '<style\>[^>]*lang=.scss[^>]*>', \ 'start': '<style\>[^>]*lang=.scss[^>]*>',
" \ 'end': '</style>' \ 'end': '</style>'
" \ }] \ }]
" let g:inline_edit_autowrite = 1 let g:inline_edit_autowrite = 1
" let g:inline_edit_proxy_type = "tempfile" let g:inline_edit_proxy_type = "tempfile"
" let g:inline_edit_new_buffer_command ="tabedit" let g:inline_edit_new_buffer_command ="tabedit"
" let g:inline_edit_modify_statusline = 0 let g:inline_edit_modify_statusline = 0
" nnoremap <space>ie :InlineEdit<cr>
" asyncomplete.vim
"{{{
" let g:asyncomplete_auto_popup = 0
" let g:asyncomplete_remove_duplicates = 1
" inoremap <silent><expr> <C-l> asyncomplete#force_refresh()
" not working why?
" let g:asyncomplete_min_chars = 3
" augroup User asyncomplete_setup
" autocmd!
" autocmd! CompleteDone * if pumvisible() == 0 | pclose | endif
" augroup END
" call asyncomplete#register_source(asyncomplete#sources#file#get_source_options({
" \ 'name': 'file',
" \ 'whitelist': ['*'],
" \ 'priority': -20,
" \ 'completor': function('asyncomplete#sources#file#completor')
" \ }))
" call asyncomplete#register_source(asyncomplete#sources#ultisnips#get_source_options({
" \ 'name': 'ultisnips',
" \ 'whitelist': ['*'],
" \ 'priority': -30,
" \ 'completor': function('asyncomplete#sources#ultisnips#completor'),
" \ }))
" call asyncomplete#register_source(asyncomplete#sources#necovim#get_source_options({
" \ 'name': 'necovim',
" \ 'whitelist': ['vim'],
" \ 'priority': -40,
" \ 'completor': function('asyncomplete#sources#necovim#completor'),
" \ }))
" call asyncomplete#register_source(asyncomplete#sources#buffer#get_source_options({
" \ 'name': 'buffer',
" \ 'whitelist': ['*'],
" \ 'blacklist': ['go'],
" \ 'priority': -50,
" \ 'completor': function('asyncomplete#sources#buffer#completor'),
" \ }))
" call asyncomplete#register_source(asyncomplete#sources#omni#get_source_options({
" \ 'name': 'omni',
" \ 'whitelist': ['*'],
" \ 'blacklist': ['c', 'cpp', 'html', 'python', 'vue'],
" \ 'priority': -60,
" \ 'completor': function('asyncomplete#sources#omni#completor')
" \ }))
" call asyncomplete#register_source(asyncomplete#sources#tags#get_source_options({
" \ 'name': 'tags',
" \ 'whitelist': ['*'],
" \ 'blacklist': ['vim', 'python'],
" \ 'priority': -70,
" \ 'completor': function('asyncomplete#sources#tags#completor'),
" \ 'config': {
" \ 'max_file_size': 50000000,
" \ },
" \ }))
nnoremap <space>ie :InlineEdit<cr>
"}}} "}}}
" vim-lsp " vim-lsp{{{
"{{{
let g:lsp_signs_enabled = 1 let g:lsp_signs_enabled = 1
let g:lsp_signs_error = {'text': '>>'} let g:lsp_signs_error = {'text': '>>'}
let g:lsp_signs_warning = {'text': '>'} let g:lsp_signs_warning = {'text': '>'}
@ -280,11 +215,9 @@ augroup User lsp_setup
\ }) \ })
endif endif
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>
@ -299,14 +232,14 @@ let g:ale_html_htmlhint_options = '-c ~/.htmlhintrc --format=unix'
let g:ale_fixers = {'javascript': ['eslint']} let g:ale_fixers = {'javascript': ['eslint']}
"}}} "}}}
" vim-easy-align " vim-easy-align {{{
"{{{
xmap ga <Plug>(EasyAlign) xmap ga <Plug>(EasyAlign)
nmap ga <Plug>(EasyAlign) nmap ga <Plug>(EasyAlign)
"}}} "}}}
" 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'],
@ -318,8 +251,8 @@ let g:switch_custom_definitions = [
\ ] \ ]
"}}} "}}}
" 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
@ -328,8 +261,8 @@ 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
@ -354,8 +287,8 @@ let g:user_emmet_settings = {
\} \}
"}}} "}}}
" 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
@ -365,8 +298,8 @@ augroup fixhighlighting
augroup END augroup END
"}}} "}}}
" ultisnips " ultisnips{{{
"{{{
nnoremap <space>ul :call ListUltisnips()<cr> nnoremap <space>ul :call ListUltisnips()<cr>
inoremap jkul <c-o>:call ListUltisnips()<cr> inoremap jkul <c-o>:call ListUltisnips()<cr>
@ -417,20 +350,20 @@ set completefunc=CompleteSnippets
"}}} "}}}
" 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
"}}} "}}}
" 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
@ -474,14 +407,14 @@ let g:tagbar_type_vue = {
\ } \ }
"}}} "}}}
" 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
@ -506,9 +439,10 @@ function! ToggleColorPreview() abort
endfunction endfunction
"}}} "}}}
" vim-instant-markdown " vim-instant-markdown{{{
" this doesn't work - issue is open in guthub " this doesn't work - issue is open in guthub
let g:instant_markdown_open_to_the_world = 1 let g:instant_markdown_open_to_the_world = 1
"}}}
"}}} "}}}