News for hackers. Stuff that matters.
Re:Learn Vim (the Smart Way): a book to learn the good parts... by chongli on Wednesday August 26, 2020 @07:16PM (#24288384)
Make your leader key something easy like the comma character ","

I would do this but I use the comma and semicolon keys all the time. I find them so useful. Gosh vim is weird. Everyone uses it differently!

Re:Learn Vim (the Smart Way): a book to learn the good parts... by leephillips on Wednesday August 26, 2020 @08:26PM (#24288890)
I guess you mean you use them to insert ,s and ;s. But the leader key would not be for insert mode, so you can choose anything convenient.
Re:Learn Vim (the Smart Way): a book to learn the good parts... by chongli on Wednesday August 26, 2020 @08:29PM (#24288907)
No, I use them with the f and F keys. They repeat the previous character search in forward and backward directions.
Re:Learn Vim (the Smart Way): a book to learn the good parts... by leephillips on Wednesday August 26, 2020 @08:54PM (#24289066)
Oh, I see. Sorry for assuming. I use the ; for that often, but didn't even know about , for going backwards. (Now I'm thinking that my bunch of maps using , were not such a good idea.)
Re:Learn Vim (the Smart Way): a book to learn the good parts... by atweiden on Wednesday August 26, 2020 @10:13PM (#24289511)
I find rhysd/clever-f [1] to be more DWIM than Vim's default f/F.

    " 0: F is backward search, and repeating f after F searches in the same direction
    " 1: F is backward search, and repeating F after F searches in the same direction
    let g:clever_f_fix_key_direction = 1
[1] https://github.com/rhysd/clever-f.vim
Re:Learn Vim (the Smart Way): a book to learn the good parts... by chongli on Thursday August 27, 2020 @02:03AM (#24290574)
I try not to use vim plug-ins where built in functionality will suffice. I’ve trained vim’s default behaviour into my muscle memory so I’m fine with it. In fact, I used plain old vi (technically Keith Bostic’s nvi [1]) for years and sometimes I find myself preferring it.

I think a lot of people who use vim end up with a ton of unnecessary plugins and they aren’t even aware of half the functionality of plain vi. I might just be a weird minimalist though.

[1] https://sites.google.com/a/bostic.com/keithbostic/vi/