Live data from Hacker News

I set all 376 Vim options and I'm still a fool

evanhahn.com

141–142 of 142 posts

Re: I set all 376 Vim options and I'm still a fool

#141

Earlier quoted context omitted.

Does anyone have a motion jump plugin they use with neovim they can recommend? I used to use a plugin where you could just to a given character in a given buffer, but I can’t remember the name or if it even works with neovim.

leap.nvim you press a keybind and then press one or two characters , all instances of that character pair in the viewport will get get a hint (a characteror two in highlight) , hit those two hint keys and the cursor jumps to that location its incredibly fast to navigate around your viewport with this. https://codeberg.org/andyg/leap.nvim

Nice! Thats what I was thinking of. Thanks!

Re: I set all 376 Vim options and I'm still a fool

#142

Earlier quoted context omitted.

Motions can be inclusive or exclusive. It works like the different ways of annotating ranges: [0,1] and (0,1). Consider the command `d` (delete) combined with the motions for `"`. First we have `da"`, it deletes the everything between the pair of `"` characters that surround my cursor. Next, `di"` deletes the contents of the `"` pair. The movement `a"` is inclusive (think 'a quote') and `i"` is exclusive (think 'insi…

oh, wow, great info, thanks. i knew about the general concept from high school math (where it is called open and closed intervals) and also about Python ranges, but didn't know about it in connection with vim. Got it now.

Also, I love mnemonics. They make many topics easier to remember.

Related: Sanskrit has tons of them.

https://duckduckgo.com/?t=fpas&q=sanskrit+mnemonics&ia=web

Post reply on HN