Skip to content

Commit

Permalink
use ctrl-up/ctrl-down to jump diff
Browse files Browse the repository at this point in the history
  • Loading branch information
xingchensong committed Nov 24, 2021
1 parent 6fabe3f commit 6e57097
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions vim/vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ let g:asyncrun_open = 8
let g:ale_linters = {
\ 'c': ['clang', 'gcc'],
\ 'cpp': ['cpplint', 'clang++', 'g++'],
\ 'python': ['flake8', 'pylint'],
\ 'python': ['flake8'],
\ 'sh': ['shellcheck'],
\ 'cmake': ['cmakelint']
\ }
Expand All @@ -181,8 +181,8 @@ let g:ale_cpp_cpplint_options = '-Wall -O2 -std=c++11 -isystem
let g:ale_python_auto_pipenv = 1
let g:ale_python_auto_poetry = 1
let g:ale_python_flake8_auto_pipenv = 1
let g:ale_python_pylint_auto_pipenv = 1
let g:ale_python_pylint_use_msg_id = 1
"let g:ale_python_pylint_auto_pipenv = 1
"let g:ale_python_pylint_use_msg_id = 1
"自定义error和warning图标
let g:ale_sign_error = ''
let g:ale_sign_warning = ''
Expand Down Expand Up @@ -473,6 +473,10 @@ noremap <c-Right> :bn<CR>
noremap <c-Left> :bp<CR>
nmap <c-c> :bdelete<CR>
" jump to prev/next git diff
nmap <c-Up> [c
nmap <c-Down> ]c
" bind <F2> to open/close NERTree
map <F2> :NERDTreeToggle<CR>
Expand Down

0 comments on commit 6e57097

Please sign in to comment.