diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2025-08-03 01:14:08 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2025-08-03 01:14:08 +0200 |
| commit | d29253c128c9a5c912f7605d24b193c0ad63f9be (patch) | |
| tree | 729d02a8282349561ad0b9681f7cc8c8e30f00c7 /.vimrc | |
| parent | 4c9f784a1c1475ab95cd8f6eb98a7556a77ce92e (diff) | |
| download | dotfiles-d29253c128c9a5c912f7605d24b193c0ad63f9be.tar.gz | |
Update
Diffstat (limited to '.vimrc')
| -rw-r--r-- | .vimrc | 29 |
1 files changed, 10 insertions, 19 deletions
| @@ -1,34 +1,25 @@ | |||
| 1 | set nocompatible | 1 | set nocompatible noexrc secure |
| 2 | filetype plugin on | ||
| 2 | 3 | ||
| 3 | call plug#begin() | 4 | call plug#begin() |
| 4 | Plug 'tpope/vim-commentary' | 5 | Plug 'tpope/vim-commentary' |
| 5 | Plug 'ctrlpvim/ctrlp.vim' | 6 | Plug 'airblade/vim-gitgutter' |
| 6 | Plug 'dense-analysis/ale' | 7 | Plug 'ctrlpvim/ctrlp.vim' |
| 7 | Plug 'airblade/vim-gitgutter' | ||
| 8 | call plug#end() | 8 | call plug#end() |
| 9 | 9 | ||
| 10 | set laststatus=2 encoding=utf8 spelllang=en_us tabstop=4 shiftwidth=4 | 10 | set laststatus=2 encoding=utf8 spelllang=en_us tabstop=4 shiftwidth=4 |
| 11 | set number relativenumber autoindent cursorline ignorecase signcolumn=yes | 11 | set number relativenumber autoindent cursorline ignorecase signcolumn=yes |
| 12 | set hidden nowrap nobackup noswapfile noundofile autoread updatetime=300 | 12 | set hidden nowrap nobackup noswapfile noundofile autoread updatetime=300 |
| 13 | set hlsearch incsearch backspace=indent,eol,start path=** | 13 | set hlsearch incsearch backspace=indent,eol,start path+=** |
| 14 | set completeopt=menuone,noinsert,noselect,longest | ||
| 14 | colorscheme wildcharm | 15 | colorscheme wildcharm |
| 15 | 16 | ||
| 16 | nnoremap <C-Right> :bnext<cr> | 17 | nnoremap <C-Right> :bnext<cr> |
| 17 | nnoremap <C-Left> :bprevious<cr> | 18 | nnoremap <C-Left> :bprevious<cr> |
| 18 | nnoremap <C-q> :copen<cr> | 19 | nnoremap <C-q> :copen<cr> |
| 19 | nnoremap <C-b> :CtrlPBuffer<cr> | 20 | nnoremap <C-b> :CtrlPBuffer<cr> |
| 20 | nnoremap <Leader>e :nohlsearch<cr> | 21 | nnoremap <Leader>q :nohlsearch<cr> |
| 21 | nnoremap <Leader>q :ALEHover<cr> | 22 | nnoremap <Leader>c :!ctags -R .<CR> |
| 22 | nnoremap <Leader>w :ALEDetail<cr> | ||
| 23 | |||
| 24 | nmap <silent> gr :ALEFindReferences<cr> | ||
| 25 | nmap <silent> gd :ALEGoToDefinition<cr> | ||
| 26 | nmap <silent> re :ALERename<cr> | ||
| 27 | 23 | ||
| 28 | let g:ctrlp_use_caching = 0 | 24 | let g:ctrlp_use_caching = 0 |
| 29 | let g:ale_completion_enabled = 0 | 25 | let g:ctrlp_working_path_mode = '' |
| 30 | let g:ale_hover_to_floating_preview = 1 | ||
| 31 | let g:ale_detail_to_floating_preview = 1 | ||
| 32 | let g:ale_virtualtext_cursor = 0 | ||
| 33 | let g:ale_set_quickfix = 1 | ||
| 34 | let g:ale_linters = { 'c': ['clangd'], 'cpp': ['clangd'] } | ||
