1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-14 23:49:19 +08:00

Add vcs conflict marker unimpaired binding (#2932)

close #2886
This commit is contained in:
Wang Shidong 2019-07-09 20:35:08 +08:00 committed by GitHub
parent f87ffe65ae
commit 3249178052
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 0 deletions

View File

@ -41,6 +41,12 @@ function! SpaceVim#layers#VersionControl#config() abort
autocmd BufReadPost,BufWritePost,CursorMoved,CursorMovedI * silent call s:record()
augroup END
endif
nnoremap <silent> [n :call <SID>Context(1)<CR>
nnoremap <silent> ]n :call <SID>Context(0)<CR>
endfunction
function! s:Context(reverse) abort
call search('^\(@@ .* @@\|[<=>|]\{7}[<=>|]\@!\)', a:reverse ? 'bW' : 'W')
endfunction
function! SpaceVim#layers#VersionControl#set_variable(var) abort

View File

@ -932,6 +932,8 @@ Denite/Unite 是一个强大的信息筛选浏览器,这类似于 Emacs 中的
| `] SPC` | 在当前行或已选区域下方添加空行 |
| `[ b` | 跳至前一 buffer |
| `] b` | 跳至下一 buffer |
| `[ n` | 跳至前一冲突位置 |
| `] n` | 跳至下一冲突位置 |
| `[ f` | 跳至文件夹中的前一个文件 |
| `] f` | 跳至文件夹中的下一个文件 |
| `[ l` | 跳至前一个错误处 |

View File

@ -953,6 +953,8 @@ Similar to easymotion or `f` in vimperator for firefox, this mode allows one to
| `] SPC` | Insert space below |
| `[ b` | Go to previous buffer |
| `] b` | Go to next buffer |
| `[ n` | Go to previous conflict marker |
| `] n` | Go to next conflict marker |
| `[ f` | Go to previous file in directory |
| `] f` | Go to next file in directory |
| `[ l` | Go to the previous error |