mirror of
https://github.com/inkarkat/vim-ingo-library.git
synced 2026-10-11 21:49:15 +02:00
21 lines
549 B
VimL
21 lines
549 B
VimL
" ingo/search/buffer.vim: Functions for searching a buffer.
|
|
"
|
|
" DEPENDENCIES:
|
|
"
|
|
" Copyright: (C) 2013-2019 Ingo Karkat
|
|
" The VIM LICENSE applies to this script; see ':help copyright'.
|
|
"
|
|
" Maintainer: Ingo Karkat <ingo@karkat.de>
|
|
"
|
|
" REVISION DATE REMARKS
|
|
" 1.005.001 10-Apr-2013 file creation
|
|
|
|
function! ingo#search#buffer#IsKeywordMatch( pattern, startVirtCol )
|
|
return search(
|
|
\ printf('\%%%dv\<%s\>', a:startVirtCol, a:pattern),
|
|
\ 'cnW', line('.')
|
|
\)
|
|
endfunction
|
|
|
|
" vim: set ts=8 sts=4 sw=4 noexpandtab ff=unix fdm=syntax :
|