News for hackers. Stuff that matters.
Re:Amp – A complete text editor for the terminal by throwrhebrick on Thursday November 22, 2018 @05:14AM (#18509081)
I honestly don't know why people would want to navigate code using jump-mode/easymotion. I've found it far more confusing than just searching for the word.
Re:Amp – A complete text editor for the terminal by otikik on Thursday November 22, 2018 @06:30AM (#18509348)
I have been using Vim for several years now and I still struggle with basic-level movement commands. Like, I never remember if f-h will move me to |hello or to h|ello. If those are working for you, that is great, but I appreciate some alternatives there. The usual Vim approaches ("do vimtutor!" or "practice one new command a week!") are not working for me.
Re:Amp – A complete text editor for the terminal by yakshaving_jgt on Thursday November 22, 2018 @06:35AM (#18509370)
> I never remember if f-h will move me to |hello or to h|ello.

…Isn't the answer "neither"?

If the cursor is somewhere before that `h`, then doing `fh` will put the cursor on that `h`. If you want to enter insert mode before that `h`, you would press `i`, or `a` to enter insert mode after the `h`.

Re:Amp – A complete text editor for the terminal by otikik on Thursday November 22, 2018 @07:00AM (#18509468)
You are probably right. Which is my point. Vim movement commands remain unintuitive to me, even after using the thing for years.
Re:Amp – A complete text editor for the terminal by sy7ar on Thursday November 22, 2018 @08:55AM (#18509995)
It’s extremely intuitive to me. It’s more like muscle memory than logical thinking, I think you might be thinking too analytically.
Re:Amp – A complete text editor for the terminal by otikik on Friday November 23, 2018 @12:08PM (#18517608)
If it works for you, that is great. It doesn't work for me.
Re:Amp – A complete text editor for the terminal by edanm on Thursday November 22, 2018 @08:38AM (#18509902)
That's half-right, I think. The question is, when using a command like "change until" or "change forward", i.e. 'ct' or 'cf', what will the effect be?

In the case of 'ct', you're going to delete up until the letter, whereas in 'cf', it will include the letter you're targetting.

Re:Amp – A complete text editor for the terminal by yakshaving_jgt on Thursday November 22, 2018 @09:24AM (#18510125)
It's definitely exactly right, but I tried to word it in a way which didn't make me look like a know-it-all.

> The question is, when using a command like "change until" or "change forward", i.e. 'ct' or 'cf', what will the effect be?

Is this a question? You answered it accurately. The behaviour is consistent here too, though the mnemonics people often use don't always make total sense.

Re:Amp – A complete text editor for the terminal by jolmg on Thursday November 22, 2018 @02:01PM (#18511814)
> "change forward" [...] 'cf'

"change find", you mean.

Re:Amp – A complete text editor for the terminal by edanm on Thursday November 22, 2018 @02:20PM (#18511927)
Interesting! I'd always thought of it as "f"orward.

Is there any official reference to it standing for find? Googling has found a few unofficial references, but help doesn't appear to say either way.

Re:Amp – A complete text editor for the terminal by jolmg on Thursday November 22, 2018 @03:44PM (#18512432)
In vim's usr_03.txt manual file, it says:

> One of the most useful movement commands is the single-character search command. The command "fx" searches forward in the line for the single character x. Hint: "f" stands for "Find".

That seems official.

Re:Amp – A complete text editor for the terminal by mywtfmp3 on Thursday November 22, 2018 @08:45AM (#18509937)
Interesting. I always tend to think cursor is on top of character, not before or after it.
Re:Amp – A complete text editor for the terminal by oblio on Thursday November 22, 2018 @08:17AM (#18509800)
jump-mode as in "go to symbol"?
Re:Amp – A complete text editor for the terminal by vectorEQ on Thursday November 22, 2018 @05:27AM (#18509138)
ctrl+W <word> enter - seems you are right :D <3 nano hahah i find more complicated editors just distract with their fancies from what you are doing. inputting and deleting characters.
Re:Amp – A complete text editor for the terminal by laumars on Thursday November 22, 2018 @06:04AM (#18509255)
It's just a learning curve. Over time it starts becoming second nature and you don't even notice that you're doing it. Must like most things we do in our day to day that are actually rather complication functions (driving, writing, walking, etc).

What I do like about the vim keys though is the ability to delete or copy/paste with precision by chaining hotkeys together.

Regarding your searching for a word example, unsurprisingly you can do the same in vi (let alone vim) too:

  / - search forwards
  ? - search backwards
edit: It wasn't me who voted you down by the way. I know you've not complained about it but I wanted to express that I don't agree with you getting downvoted even though I don't agree with the content of your post.
Re:Amp – A complete text editor for the terminal by ivanfon on Thursday November 22, 2018 @08:15AM (#18509786)
I’ve actually found the opposite - sure there’s a learning curve, but once you get used to it and it becomes second nature, Vim becomes the fastest way to convert thought to code.