Live data from Hacker News

Vim tricks

hillelwayne.com

61–63 of 63 posts

Re: Vim tricks

#61
post #28

Earlier quoted context omitted.

Dude! That is awesome... it makes sense now. I totally didn't even know bout either! Do you rebind your caps to control as well? That was another thing I did which is 10/10

Yeah I rebind keys and write my own functions. I have a preference for distilling things that I use out of plugins[0] and into just vanilla vim (I still use plugins). I'll share my configurations[1]. I don't document it well btw and there's frequently changes. But I find that looking at others rc files many times gives me ideas that I hadn't seen before. Also, if you have any suggestions I'd love to hear them. [0]see…

I forgot to mention these are also critical to know, because they apply to pretty much everywhere in OSX (even inside chrome address bar, terminal, plain text areas like the HN reply box, etc):

c-f Move forward

c-b Move backward

c-p Move up

c-n Move down

c-a Jump to beginning of line

c-e Jump to end of line

c-d Delete forward

c-h Delete backward

c-k Delete forward to end of line

c-u Delete entire line

Re: Vim tricks

#62
post #26

Earlier quoted context omitted.

I particularly prefer doom-emacs [1]. I migrated from Vim to Spacemacs, however doom-emacs is leaner, faster and has better evil integration. For example, Spacemacs has no mapping for evil-numbers, however doom-emacs maps it to Ctrl+A (increase number) and Ctrl+Shift+A (decrease number) [2]. However, you will probably need to do some customizations in doom-emacs. Spacemacs works mostly only using its internal layers,…

I recently moved from Spacemacs to Doom. I second, that it’s so much better, in that it’s faster, leaner, and easier to comprehend. Some of the keybindings could be more thorough. I find myself M-x’ing a lot. I take this as an acceptable trade off, as keybindings are easy to set on one’s own.

I like it because it is easier to add than remove. Spacemacs has so many language specifics keybindings that, while taking less time to be productive, also makes customization much harder thanks to the multiple conflicts that you will probably get when trying to map something.

However this is the trade-off. You have to spend more time in doom-emacs, however there is less friction to customize.

Re: Vim tricks

#63

Earlier quoted context omitted.

Take a look at `:help 'keywordprg'`.

Can I do things like get `K` to work on python commands? Including modules? Or with other languages? I see that I can do `set keywordprg=pydoc` but I want modules too.

Check out vim-dokumentary: https://github.com/gastonsimone/vim-dokumentary
Post reply on HN