Update

Author Mitja Felicijan <mitja.felicijan@gmail.com> 2025-03-08 15:28:03 +0100
Committer Mitja Felicijan <mitja.felicijan@gmail.com> 2025-03-08 15:28:03 +0100
Commit 7654f7eeef45b6923bb897f63191209d78e1d50b (patch)
-rw-r--r-- .vimrc 11
1 files changed, 4 insertions, 7 deletions
diff --git a/.vimrc b/.vimrc
1
call plug#begin()
1
call 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'
8
call plug#end()
6
call plug#end()
9
  
7
  
10
colorscheme ungabunga
8
set nocompatible
11
set number relativenumber autoindent signcolumn=yes cursorline ignorecase
9
set number relativenumber autoindent signcolumn=yes cursorline ignorecase
12
set hidden nowrap nobackup noswapfile noundofile autoread updatetime=300
10
set hidden nowrap nobackup noswapfile noundofile autoread updatetime=300
13
set encoding=utf8 spelllang=en_us
11
set encoding=utf8 spelllang=en_us
14
set backspace=2 scrolloff=4
12
set backspace=2 scrolloff=4
15
set shiftwidth=4 tabstop=4
13
set shiftwidth=4 tabstop=4
  
14
colorscheme ungabunga
16
  
15
  
17
nnoremap <C-Right> :bnext<cr>
16
nnoremap <C-Right> :bnext<cr>
18
nnoremap <C-Left> :bprevious<cr>
17
nnoremap <C-Left> :bprevious<cr>
...
21
nnoremap <C-k> :ALEHover<cr>
20
nnoremap <C-k> :ALEHover<cr>
22
nnoremap <C-j> :ALEDetail<cr>
21
nnoremap <C-j> :ALEDetail<cr>
23
nnoremap <Leader>r :let @/ = ''<CR>
22
nnoremap <Leader>r :let @/ = ''<CR>
24
nnoremap <Leader>f :%!clang-format -style=file<CR>:w<CR>
  
25
  
23
  
26
nmap <silent> gr :ALEFindReferences<cr>
24
nmap <silent> gr :ALEFindReferences<cr>
27
nmap <silent> gd :ALEGoToDefinition<cr>
25
nmap <silent> gd :ALEGoToDefinition<cr>
...
34
let g:ale_floating_window_border = 0
32
let g:ale_floating_window_border = 0
35
let g:ale_virtualtext_cursor = 0
33
let g:ale_virtualtext_cursor = 0
36
let g:ale_set_quickfix = 1
34
let g:ale_set_quickfix = 1
37
let g:ale_linters = { 'cpp': ['clangd'], 'c': ['clangd'] }
35
let g:ale_linters = { 'cpp': ['clangd'], 'c': ['clangd'], 'python': ['pylsp'] }
38
let g:ale_fixers = { 'cpp': ['clangd'], 'c': ['clangd'] }
36
let g:ale_fixers = { 'cpp': ['clangd'], 'c': ['clangd'], 'python': ['pylsp'] }
39
  
37
  
40
let g:ctrlp_use_caching = 0
38
let g:ctrlp_use_caching = 0
41
let g:ctrlp_user_command = 'rg %s --files --color=never --glob ""'
39
let g:ctrlp_user_command = 'rg %s --files --color=never --glob ""'
42