aboutsummaryrefslogtreecommitdiff
path: root/.vimrc
diff options
context:
space:
mode:
Diffstat (limited to '.vimrc')
-rw-r--r--.vimrc29
1 files changed, 10 insertions, 19 deletions
diff --git a/.vimrc b/.vimrc
index 6eddbff..cae2c54 100644
--- a/.vimrc
+++ b/.vimrc
@@ -1,34 +1,25 @@
1set nocompatible 1set nocompatible noexrc secure
2filetype plugin on
2 3
3call plug#begin() 4call 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'
8call plug#end() 8call plug#end()
9 9
10set laststatus=2 encoding=utf8 spelllang=en_us tabstop=4 shiftwidth=4 10set laststatus=2 encoding=utf8 spelllang=en_us tabstop=4 shiftwidth=4
11set number relativenumber autoindent cursorline ignorecase signcolumn=yes 11set number relativenumber autoindent cursorline ignorecase signcolumn=yes
12set hidden nowrap nobackup noswapfile noundofile autoread updatetime=300 12set hidden nowrap nobackup noswapfile noundofile autoread updatetime=300
13set hlsearch incsearch backspace=indent,eol,start path=** 13set hlsearch incsearch backspace=indent,eol,start path+=**
14set completeopt=menuone,noinsert,noselect,longest
14colorscheme wildcharm 15colorscheme wildcharm
15 16
16nnoremap <C-Right> :bnext<cr> 17nnoremap <C-Right> :bnext<cr>
17nnoremap <C-Left> :bprevious<cr> 18nnoremap <C-Left> :bprevious<cr>
18nnoremap <C-q> :copen<cr> 19nnoremap <C-q> :copen<cr>
19nnoremap <C-b> :CtrlPBuffer<cr> 20nnoremap <C-b> :CtrlPBuffer<cr>
20nnoremap <Leader>e :nohlsearch<cr> 21nnoremap <Leader>q :nohlsearch<cr>
21nnoremap <Leader>q :ALEHover<cr> 22nnoremap <Leader>c :!ctags -R .<CR>
22nnoremap <Leader>w :ALEDetail<cr>
23
24nmap <silent> gr :ALEFindReferences<cr>
25nmap <silent> gd :ALEGoToDefinition<cr>
26nmap <silent> re :ALERename<cr>
27 23
28let g:ctrlp_use_caching = 0 24let g:ctrlp_use_caching = 0
29let g:ale_completion_enabled = 0 25let g:ctrlp_working_path_mode = ''
30let g:ale_hover_to_floating_preview = 1
31let g:ale_detail_to_floating_preview = 1
32let g:ale_virtualtext_cursor = 0
33let g:ale_set_quickfix = 1
34let g:ale_linters = { 'c': ['clangd'], 'cpp': ['clangd'] }