Feature Request: ] and [ commands for cnfile and cpfile #29

treyhunner opened this Issue Jan 3, 2013 · 5 comments

2 participants


I'm not sure what letter would be best to use, but I often find myself using the following workflow that would benefit from this:
1. Ggrep "something"
2. :%s/something/else/g
3. :cnf
4. :%s/something/else/g
5. :cnf
6. :cnf
7. :%s/something/different/g
8. ...


I want this too. But I'm not sure what to map it to. The most obvious choice is ]<C-C> (which would allow :lnfile to be ]<C-L>). But it intuitively makes sense for <C-C> to cancel the previous ].


I've used this plugin (and ] jumps in general) very little so far so I'm not sure what would be most logical.

I was going to suggest ]Q but that's already used sensibly it seems. What about ]<C-q>?


Total brain fart, ]<-Q> would be the analogous place. The only problem with that is that it won't work in a terminal unless you disable flow control (stty -ixon).


I don't think that's a problem because <C-q> disables flow control.

Pressing <C-s> gives me a problem in vim (freezes the terminal), but <C-q> doesn't do anything but fix my terminal (if I previously pressed <C-s> by mistake).

@tpope tpope added a commit that closed this issue Jan 11, 2013
@tpope Add maps for :[lc][np]file
Closes #29.
@tpope tpope closed this in 97c7162 Jan 11, 2013

It's a problem in that it's confusing why something that works in the GUI doesn't work in the terminal for not at all obvious reasons. Still, it's better than nothing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment