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

revert(highlight.vim): revert E725

This commit is contained in:
wsdjeg 2022-04-02 12:02:50 +08:00
parent a488f92a9b
commit 5fcb1da81f

View File

@ -27,7 +27,7 @@ let s:hi_range_index = 0
" }}} " }}}
" transient_state API func: logo {{{ " transient_state API func: logo {{{
function! s:range_logo() abort dict function! s:range_logo() abort
let line = getline(3) let line = getline(3)
let range = s:current_range let range = s:current_range
let index = '[' . (s:index + 1) . '/' . len(s:cursor_stack) . ']' let index = '[' . (s:index + 1) . '/' . len(s:cursor_stack) . ']'
@ -102,7 +102,7 @@ function! s:hi() abort
endfor endfor
endfunction endfunction
function! s:init() abort dict function! s:init() abort
call s:hi() call s:hi()
let s:current_range = 'Display' let s:current_range = 'Display'
let [s:cursor_stack, s:index] = SpaceVim#plugins#iedit#paser(line('w0'), line('w$'), s:current_match, 0) let [s:cursor_stack, s:index] = SpaceVim#plugins#iedit#paser(line('w0'), line('w$'), s:current_match, 0)
@ -226,7 +226,7 @@ endfunction
" }}} " }}}
" key binding: R reset_range {{{ " key binding: R reset_range {{{
function! s:reset_range() abort dict function! s:reset_range() abort
let s:current_range = 'Display' let s:current_range = 'Display'
let [s:cursor_stack, s:index] = SpaceVim#plugins#iedit#paser(line('w0'), line('w$'), s:current_match, 0) let [s:cursor_stack, s:index] = SpaceVim#plugins#iedit#paser(line('w0'), line('w$'), s:current_match, 0)
call s:clear_highlight() call s:clear_highlight()
@ -235,7 +235,7 @@ endfunction
"}}} "}}}
" key binding: n next_item {{{ " key binding: n next_item {{{
function! s:next_item() abort dict function! s:next_item() abort
if s:index == len(s:cursor_stack) - 1 if s:index == len(s:cursor_stack) - 1
let s:index = 0 let s:index = 0
else else
@ -247,7 +247,7 @@ endfunction
" }}} " }}}
" key binding: r change_range {{{ " key binding: r change_range {{{
function! s:change_range() abort dict function! s:change_range() abort
if s:current_range ==# 'Display' if s:current_range ==# 'Display'
let s:current_range = 'Buffer' let s:current_range = 'Buffer'
let [s:cursor_stack, s:index] = SpaceVim#plugins#iedit#paser(1, line('$'), s:current_match, 0) let [s:cursor_stack, s:index] = SpaceVim#plugins#iedit#paser(1, line('$'), s:current_match, 0)
@ -274,13 +274,13 @@ endfunction
" }}} " }}}
" key binding: e iedit {{{ " key binding: e iedit {{{
function! s:iedit() abort dict function! s:iedit() abort
call SpaceVim#plugins#iedit#start() call SpaceVim#plugins#iedit#start()
endfunction endfunction
" }}} " }}}
" key binding: N/p previous_item {{{ " key binding: N/p previous_item {{{
function! s:previous_item() abort dict function! s:previous_item() abort
if s:index == 0 if s:index == 0
let s:index = len(s:cursor_stack) - 1 let s:index = len(s:cursor_stack) - 1
else else
@ -292,13 +292,13 @@ endfunction
" }}} " }}}
" key binding: b search_buffers {{{ " key binding: b search_buffers {{{
function! s:search_buffers() abort dict function! s:search_buffers() abort
call SpaceVim#plugins#flygrep#open({'input' : s:current_match, 'files':'@buffers'}) call SpaceVim#plugins#flygrep#open({'input' : s:current_match, 'files':'@buffers'})
endfunction endfunction
" }}} " }}}
" key binding: / search_project {{{ " key binding: / search_project {{{
function! s:search_project() abort dict function! s:search_project() abort
call SpaceVim#plugins#flygrep#open({'input' : s:current_match}) call SpaceVim#plugins#flygrep#open({'input' : s:current_match})
endfunction endfunction
" }}} " }}}
@ -333,7 +333,7 @@ endfunction
" }}} " }}}
" key binding: Tab toggle_item {{{ " key binding: Tab toggle_item {{{
function! s:toggle_item() abort dict function! s:toggle_item() abort
endfunction endfunction
" }}} " }}}