Skip to content
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

; searches the wrong way when using F #5

Closed
JonnyRa opened this issue Apr 2, 2015 · 5 comments
Closed

; searches the wrong way when using F #5

JonnyRa opened this issue Apr 2, 2015 · 5 comments

Comments

@JonnyRa
Copy link

JonnyRa commented Apr 2, 2015

Like with n and search if you do a reverse search (eg ?) then n will head in the direction of travel.

Likewise for f &F ; goes forwards and backwards respectively.

The plugin does not respect this and goes forward when repeating an F search

@chrisbra
Copy link
Owner

chrisbra commented Apr 2, 2015

That is a feature. If you do not like it, :h improvedft-consistent-comma

@JonnyRa
Copy link
Author

JonnyRa commented Apr 7, 2015

Ok I'll give that a go. Might be worth amending the docs - right at the top they say "the |,| and |;|
command should just work as expected."

I have just read the bit about consistent commas. Is it supposed to be on by default? The docs seem to say you have to switch it on

My guess the reason that vim uses ; to repeat is that it is on the home row and easier to find - you are basically always going to hit that if it doesn't go where you want as its unlikely you would have searched in the wrong direction. I certainly prefer that

@JonnyRa
Copy link
Author

JonnyRa commented Apr 7, 2015

Hi.

It appears the variable is unset by default and setting it has no effect either way.

I have tried both

let g:ft_improved_consistent_comma = 1

and

let g:ft_improved_consistent_comma = 0

in my vimrc and resourced but with no effect - both options always result in ; doing a forward search for the last typed character

@JonnyRa
Copy link
Author

JonnyRa commented Apr 7, 2015

Also :h improvedft-consistent-comma doesn't work. I have tried various permutations and the only thing I can type to get me into the help is :h ft_improved - no suffixes seem to work.

Sorry I'm not trying to nitpick, just thought you'd want to know.

@chrisbra
Copy link
Owner

chrisbra commented Jun 5, 2015

(sorry for answering late, i overlooked your comments).
Looks like you were right, and it didn't work as expected. Please try again, it should be fixed now.

Note: :h improved-consistent_comma should work, if this doesn't work, you most likely do not have the latest version installed.

Best,
Christian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants