From 6e570970ec7af8b05b390e104d9aaf757896ba6c Mon Sep 17 00:00:00 2001 From: xingchensong Date: Wed, 24 Nov 2021 17:28:00 +0800 Subject: [PATCH] use ctrl-up/ctrl-down to jump diff --- vim/vimrc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index 176f0d7..cb43195 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -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'] \ } @@ -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 = '⚡' @@ -473,6 +473,10 @@ noremap :bn noremap :bp nmap :bdelete +" jump to prev/next git diff +nmap [c +nmap ]c + " bind to open/close NERTree map :NERDTreeToggle