1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 02:20:05 +08:00

Fix SPC e n/p key binding (#3890)

This commit is contained in:
Wang Shidong 2020-10-11 18:54:43 +08:00 committed by GitHub
parent b5d58d6b9c
commit ea57d3fa8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 48 additions and 16 deletions

View File

@ -159,11 +159,19 @@ function! s:jump_to_next_error() abort
lnext lnext
catch catch
try try
cnext ll
catch catch
echohl WarningMsg try
echon 'There is no errors!' cnext
echohl None catch
try
cc
catch
echohl WarningMsg
echon 'There is no errors!'
echohl None
endtry
endtry
endtry endtry
endtry endtry
endfunction endfunction
@ -173,11 +181,19 @@ function! s:jump_to_previous_error() abort
lprevious lprevious
catch catch
try try
cprevious ll
catch catch
echohl WarningMsg try
echon 'There is no errors!' cprevious
echohl None catch
try
cc
catch
echohl WarningMsg
echon 'There is no errors!'
echohl None
endtry
endtry
endtry endtry
endtry endtry
endfunction endfunction

View File

@ -162,11 +162,19 @@ function! s:jump_to_next_error() abort
lnext lnext
catch catch
try try
cnext ll
catch catch
echohl WarningMsg try
echon 'There is no errors!' cnext
echohl None catch
try
cc
catch
echohl WarningMsg
echon 'There is no errors!'
echohl None
endtry
endtry
endtry endtry
endtry endtry
endfunction endfunction
@ -176,11 +184,19 @@ function! s:jump_to_previous_error() abort
lprevious lprevious
catch catch
try try
cprevious ll
catch catch
echohl WarningMsg try
echon 'There is no errors!' cprevious
echohl None catch
try
cc
catch
echohl WarningMsg
echon 'There is no errors!'
echohl None
endtry
endtry
endtry endtry
endtry endtry
endfunction endfunction