Skip to content

Commit 5e93668

Browse files
author
skywind3000
committed
search use current word under cursor
1 parent b678fcb commit 5e93668

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

autoload/quickui/tools.vim

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
" tools.vim -
44
"
55
" Created by skywind on 2019/12/23
6-
" Last Modified: 2021/11/30 01:33
6+
" Last Modified: 2021/11/30 01:35
77
"
88
"======================================================================
99

@@ -491,7 +491,8 @@ endfunc
491491
" search inputbox
492492
"----------------------------------------------------------------------
493493
function! quickui#tools#input_search()
494-
let text = quickui#input#open('Enter text to search:', '', 'search')
494+
let t = expand('<cword>')
495+
let text = quickui#input#open('Enter text to search:', t, 'search')
495496
redraw
496497
if text == ''
497498
echo "quit search"

0 commit comments

Comments
 (0)