Update vimrc
This commit is contained in:
parent
01fe64e4a4
commit
99af6469c9
1 changed files with 26 additions and 28 deletions
|
@ -10,27 +10,34 @@ endif
|
|||
|
||||
" Plug plugins using VimPlug
|
||||
call plug#begin('~/.config/vim/plugged')
|
||||
" Tools
|
||||
Plug 'editorconfig/editorconfig-vim'
|
||||
Plug 'airblade/vim-gitgutter'
|
||||
Plug 'samoshkin/vim-mergetool'
|
||||
Plug 'fidian/hexmode'
|
||||
Plug 'scrooloose/nerdtree'
|
||||
Plug 'vim-scripts/DoxygenToolkit.vim'
|
||||
Plug 'drmikehenry/vim-headerguard'
|
||||
Plug 'jiangmiao/auto-pairs'
|
||||
|
||||
" Eye-Candy
|
||||
Plug 'itchyny/lightline.vim'
|
||||
Plug 'nanotech/jellybeans.vim'
|
||||
Plug 'scrooloose/syntastic'
|
||||
Plug 'sersorrel/vim-lilypond'
|
||||
Plug 'vim-scripts/DoxygenToolkit.vim'
|
||||
Plug 'drmikehenry/vim-headerguard'
|
||||
Plug 'sirtaj/vim-openscad'
|
||||
Plug 'cespare/vim-toml'
|
||||
Plug 'posva/vim-vue'
|
||||
Plug 'lervag/vimtex'
|
||||
Plug 'fatih/vim-go'
|
||||
Plug 'Yggdroot/indentLine'
|
||||
|
||||
" Commands
|
||||
Plug 'machakann/vim-swap'
|
||||
Plug 'tpope/vim-sleuth'
|
||||
Plug 'neoclide/coc.nvim', { 'branch': 'release' }
|
||||
Plug 'matze/vim-move'
|
||||
|
||||
" Syntax highlighting
|
||||
Plug 'sirtaj/vim-openscad'
|
||||
Plug 'lervag/vimtex'
|
||||
Plug 'sheerun/vim-polyglot'
|
||||
call plug#end()
|
||||
|
||||
"let g:indentLine_setColors = 0
|
||||
|
||||
packadd termdebug
|
||||
|
||||
set number relativenumber
|
||||
|
@ -55,7 +62,13 @@ set laststatus=2
|
|||
|
||||
set encoding=utf-8
|
||||
|
||||
set mouse=a
|
||||
|
||||
set incsearch
|
||||
set hlsearch
|
||||
|
||||
set nowrap
|
||||
set nocompatible
|
||||
|
||||
set wildmode=longest,list,full
|
||||
|
||||
|
@ -81,6 +94,7 @@ endif
|
|||
map <leader>b :Break<CR>
|
||||
map <leader>n :NERDTreeToggle<CR>
|
||||
|
||||
nnoremap <CR> :noh<CR><CR>
|
||||
|
||||
|
||||
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
|
||||
|
@ -148,22 +162,6 @@ let g:vimtex_compiler_latexmk = {
|
|||
\ 'build_dir': 'latexmk_output'
|
||||
\}
|
||||
|
||||
let g:move_key_modifier = 'C'
|
||||
|
||||
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
|
||||
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
|
||||
|
||||
inoremap <silent><expr> <C-space> coc#refresh()
|
||||
|
||||
"GoTo code navigation
|
||||
nmap <leader>g <C-o>
|
||||
nmap <silent> gd <Plug>(coc-definition)
|
||||
nmap <silent> gt <Plug>(coc-type-definition)
|
||||
nmap <silent> gi <Plug>(coc-implementation)
|
||||
nmap <silent> gr <Plug>(coc-references)
|
||||
|
||||
nmap <leader>rn <Plug>(coc-rename)
|
||||
|
||||
"show all diagnostics.
|
||||
nnoremap <silent> <leader>d :<C-u>CocList diagnostics<cr>
|
||||
"manage extensions.
|
||||
nnoremap <silent> <leader>e :<C-u>CocList extensions<cr>
|
||||
let g:indentLine_char_list = ['|', '¦', '┆', '┊']
|
||||
|
|
Loading…
Reference in a new issue