Skip to content

Commit 4ec0022

Browse files
committed
add shortcut for cargo build and run
add auto-pairs plugin
1 parent 2f5957d commit 4ec0022

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vimrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Plug 'mattn/webapi-vim'
3535
Plug 'neoclide/coc.nvim', {'branch': 'release'}
3636
Plug 'dense-analysis/ale'
3737
Plug 'puremourning/vimspector'
38+
Plug 'jiangmiao/auto-pairs'
3839
call plug#end()
3940

4041
" debugger config mapping to use vscode shortcuts
@@ -51,6 +52,8 @@ let g:termdebugger="rust-gdb"
5152
let g:rust_clip_command = 'xclip -selection clipboard'
5253
map <C-j> :close<CR>
5354
map <Leader>r :VimspectorReset<CR>
55+
map <Leader>b :Cargo build<CR>
56+
map <Leader>/ :Cargo run<CR>
5457
5558
" Some servers have issues with backup files, see #649.
5659
set nobackup

0 commit comments

Comments
 (0)