From 0281e3b14de673b5a5c6f31902c3410dd61bd4bc Mon Sep 17 00:00:00 2001 From: InigoGutierrez Date: Tue, 28 Apr 2020 01:16:42 +0200 Subject: Changed some colors and added wikis to vimwiki in .vimrc. --- files/vim/.vimrc | 56 ++++++++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 48 insertions(+), 8 deletions(-) diff --git a/files/vim/.vimrc b/files/vim/.vimrc index f7c3b76..0c64b11 100644 --- a/files/vim/.vimrc +++ b/files/vim/.vimrc @@ -16,8 +16,10 @@ Plug 'tpope/vim-surround' Plug 'tpope/vim-repeat' Plug 'vimwiki/vimwiki' Plug 'vim-airline/vim-airline' -Plug 'vim-syntastic/syntastic' -Plug 'Valloric/YouCompleteMe' +Plug 'Shougo/deoplete.nvim' +Plug 'dense-analysis/ale' +"Plug 'vim-syntastic/syntastic' +"Plug 'Valloric/YouCompleteMe' "Plug 'OmniSharp/omnisharp-vim' Plug 'dylanaraps/wal.vim' call plug#end() @@ -44,6 +46,20 @@ highlight ColorColumn ctermbg=darkblue ctermfg=black "highlight ColorColumn ctermbg=red ctermfg=blue "exec 'set colorcolumn='.join(range(2,80,3), ',') +" Completion color +highlight Pmenu ctermbg=blue ctermfg=black +highlight PmenuSel ctermbg=darkblue ctermfg=white + +" Panel border color +highlight VertSplit ctermbg=black ctermfg=darkblue + +" Symbol pairs match color +highlight MatchParen ctermbg=cyan ctermfg=black + +" Errors colors +highlight Error ctermbg=red ctermfg=black +highlight SpellBad ctermbg=red ctermfg=black + " Filetypes filetype indent plugin on au BufRead,BufNewFile *.pu set filetype=plantuml @@ -74,6 +90,20 @@ vmap D DVB_Duplicate() exec "set listchars=tab:\uBB·,trail:\uB7,nbsp:~" nnoremap l :set list! +" For deoplete + +let g:deoplete#enable_at_startup = 1 + +call deoplete#custom#option({ +\ 'auto_complete': v:true, +\ 'auto_complete_delay': 0, +\ 'smart_case': v:true, +\ }) + +call deoplete#custom#option('sources', { +\ '_': ['ale'], +\}) + " For YouCompleteMe let g:ycm_auto_trigger = 0 let g:ycm_autoclose_preview_window_after_insertion = 1 @@ -132,18 +162,27 @@ let g:airline_symbols.maxlinenr = '↩' " For vimwiki " filetype plugin on let g:vimwiki_ext2syntax = {'.md': 'markdown', '.markdown': 'markdown', '.mdown': 'markdown'} -let g:vimwiki_list = [{'path': '~/vimwiki/', - \ 'syntax': 'markdown', 'ext': '.md'}] +let g:vimwiki_list = [{'path': '~/docs/vimwiki/', 'syntax': 'markdown', 'ext': '.md'}, + \ {'path': '~/docs/notes/', 'syntax': 'markdown', 'ext': '.md'}, + \ {'path': '~/games/dungeonesYDragones/tarkba/vimwiki/', 'syntax': 'markdown', 'ext': '.md'}, + \ {'path': '~/games/dungeonesYDragones/creaciones/vimwiki/', 'syntax': 'markdown', 'ext': '.md'}] + +" Vertical split character +set fillchars+=vert:█ " Shortcuts for split navigation map h map j map k map l -"map H " can't be different from -"map J -"map K -"map L +map < +map + +map - +map > +map 10< +map 5+ +map 5- +map 10> nnoremap :tabnew "nnoremap gt "Can't be set without also remapping @@ -192,3 +231,4 @@ nnoremap gs :!git status nnoremap ga :!git add % nnoremap gp :!git push nnoremap gc :!git commit -m " + -- cgit v1.2.1