aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2025-03-08 15:28:03 +0100
committerMitja Felicijan <mitja.felicijan@gmail.com>2025-03-08 15:28:03 +0100
commit7654f7eeef45b6923bb897f63191209d78e1d50b (patch)
treec56ad220a5e4e9300aebf9635cd7d7e381149680
parent474cdfc7de2a04869bf4f7db0c7f608d68740099 (diff)
downloaddotfiles-7654f7eeef45b6923bb897f63191209d78e1d50b.tar.gz
Update
-rw-r--r--.vimrc11
1 files changed, 4 insertions, 7 deletions
diff --git a/.vimrc b/.vimrc
index d215ca0..3463956 100644
--- a/.vimrc
+++ b/.vimrc
@@ -1,18 +1,17 @@
1call plug#begin() 1call plug#begin()
2 Plug 'tpope/vim-sensible'
3 Plug 'tpope/vim-commentary' 2 Plug 'tpope/vim-commentary'
4 Plug 'airblade/vim-gitgutter'
5 Plug 'ctrlpvim/ctrlp.vim' 3 Plug 'ctrlpvim/ctrlp.vim'
6 Plug 'dense-analysis/ale' 4 Plug 'dense-analysis/ale'
7 Plug 'mitjafelicijan/ungabunga' 5 Plug 'mitjafelicijan/ungabunga'
8call plug#end() 6call plug#end()
9 7
10colorscheme ungabunga 8set nocompatible
11set number relativenumber autoindent signcolumn=yes cursorline ignorecase 9set number relativenumber autoindent signcolumn=yes cursorline ignorecase
12set hidden nowrap nobackup noswapfile noundofile autoread updatetime=300 10set hidden nowrap nobackup noswapfile noundofile autoread updatetime=300
13set encoding=utf8 spelllang=en_us 11set encoding=utf8 spelllang=en_us
14set backspace=2 scrolloff=4 12set backspace=2 scrolloff=4
15set shiftwidth=4 tabstop=4 13set shiftwidth=4 tabstop=4
14colorscheme ungabunga
16 15
17nnoremap <C-Right> :bnext<cr> 16nnoremap <C-Right> :bnext<cr>
18nnoremap <C-Left> :bprevious<cr> 17nnoremap <C-Left> :bprevious<cr>
@@ -21,7 +20,6 @@ nnoremap <C-b> :CtrlPBuffer<cr>
21nnoremap <C-k> :ALEHover<cr> 20nnoremap <C-k> :ALEHover<cr>
22nnoremap <C-j> :ALEDetail<cr> 21nnoremap <C-j> :ALEDetail<cr>
23nnoremap <Leader>r :let @/ = ''<CR> 22nnoremap <Leader>r :let @/ = ''<CR>
24nnoremap <Leader>f :%!clang-format -style=file<CR>:w<CR>
25 23
26nmap <silent> gr :ALEFindReferences<cr> 24nmap <silent> gr :ALEFindReferences<cr>
27nmap <silent> gd :ALEGoToDefinition<cr> 25nmap <silent> gd :ALEGoToDefinition<cr>
@@ -34,9 +32,8 @@ let g:ale_detail_to_floating_preview = 1
34let g:ale_floating_window_border = 0 32let g:ale_floating_window_border = 0
35let g:ale_virtualtext_cursor = 0 33let g:ale_virtualtext_cursor = 0
36let g:ale_set_quickfix = 1 34let g:ale_set_quickfix = 1
37let g:ale_linters = { 'cpp': ['clangd'], 'c': ['clangd'] } 35let g:ale_linters = { 'cpp': ['clangd'], 'c': ['clangd'], 'python': ['pylsp'] }
38let g:ale_fixers = { 'cpp': ['clangd'], 'c': ['clangd'] } 36let g:ale_fixers = { 'cpp': ['clangd'], 'c': ['clangd'], 'python': ['pylsp'] }
39 37
40let g:ctrlp_use_caching = 0 38let g:ctrlp_use_caching = 0
41let g:ctrlp_user_command = 'rg %s --files --color=never --glob ""' 39let g:ctrlp_user_command = 'rg %s --files --color=never --glob ""'
42