-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
experimental, add total match count #19
Conversation
if @romainl is into it. this will probably need to be optional
Thanks, I'll wait until this week-end to try it locally. |
no idea why that was there
* &lines not reliable * optimize
Great patch. If romainl doesn't like it, it'd be great as its own separate plugin. And a suggestion: putting the search term after the numbers. Like:
As it is now going before, the match results will have an inconsistent position depending on the length of your query. Alternatively, just don't show the search term at all, since it's already shown by its matching results. Like:
It's the smallest of gripes though and I can understand wanting to keep the search term in its same place for pure consistency. |
Just found a bug: Exits visual mode when cursor goes over a search result with hlsearch on. Probably from the |
i'll look for the cause of that bug, thanks. my main focus is on making this as close to the default behaviour as possible, also if the timeout is reached it doesn't break your concentration by looking really different |
Found another bug on my end: any time a search mapping (e.g. To reproduce: edit: could just be gvim on Windows, I haven't tested in Unix gvim or a terminal because Windows blows |
redraw. |
Ah, I didn't catch that, thanks. Also, random suggestion that might be dumb or pointless: Could this
be replaced with just
? |
no, v:searchforward reflects whether you typed the pattern after pressing "this seems to work
augroup PCOOL
au!
augroup END
nnoremap <silent>n :<C-U>set scrolloff=999\|au PCOOL cursormoved * set scrolloff&vim\|
\ au! PCOOL cursormoved *<cr>:call feedkeys(max([v:prevcount,1]).'n','n')<cr> |
Sorry if I'm misunderstanding, but Also good idea with scrolloff to center without redrawing |
doesn't reflect the movement direction, like vim by default does |
What's an example of |
we don't know which direction the last movement was in.
|
Oh... I was using my vimrc where I have the results bit put into a function that's attached to the end of all my search mappings, so |
guess #23 also should apply to the counting |
@bounceme, this looks good and useful but I'd prefer to have it behind an option as it is not directly related to the original purpose of vim-cool. |
merging it. thanks for the Readme updates @romainl |
if @romainl is into it. this will probably need to be optional