lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lmi] Making repeated changes in Vim (was: Removing empty messages f


From: Vadim Zeitlin
Subject: Re: [lmi] Making repeated changes in Vim (was: Removing empty messages from static_assert())
Date: Sat, 10 Feb 2018 19:50:00 +0100

On Sat, 10 Feb 2018 18:00:11 +0000 Greg Chicares <address@hidden> wrote:

GC> > even if it was
GC> > tempting, but manually (well, ":git grep static-assert" and "s/, \?""//"
GC> > and then just Ctrl-N/"&" many times kind of manually, but still) to be 
sure
GC> > I didn't miss any corner cases.
GC> 
GC> It's always interesting to compare editing commands. I assume
GC> ':git' is provided by some plugin, but...

 Oops, sorry, I've actually used ":Ggrep", which is provided by Fugitive,
but I wanted to avoid bringing it into the discussion one more time to
avoid creating a feeling that I'm obsessed by it (which I totally am not, I
just can't live without it), so I decided to replace it with ":!git grep"
and forgot the "!".

GC> And what's Ctrl-N?

 And here I'm just guilty of completely forgetting that it's not a standard
mapping, but one I use since what looks to be like always (but a quick
look at "git log -GC-N" shows that it has only been 12 years...). I have
this in my .vimrc:

        " Ctrl-N/P duplicate arrow keys and j/k so use them for navigating in 
the
        " errors list instead
        nmap <C-N> :cn<C-M>
        nmap <C-P> :cp<C-M>

GC> It just seems to move the cursor down, like 'j'.

 Yes, and this seems so useless that it just begs being remapped to
something else. And ":cn" is a command I use relatively often and,
moreover, when I use it I almost always use it many times in a row, so the
gain of binding it to Ctrl-N is not negligible, even for such a short
command.

 Sorry for managing to confuse you twice in 2 lines of text, this wasn't at
all intentional,
VZ


reply via email to

[Prev in Thread] Current Thread [Next in Thread]