Live data from Hacker News

Porn, Zen, and .vimrc

karolis.koncevicius.lt

51–60 of 131 posts

Re: Porn, Zen, and .vimrc

#51
post #7

> This article describes my Vim journey, starting from heavy personal customization and ending with a renewed love for defaults this exact pattern is found in so many vi|m articles and is touted as a triumph of vim's default patterns, when it is really a failure of vim to support whole ranges of functionality. as a daily user of neovim, i know that vscode is a superior alternative and am waiting for a month off to tr…

> vscode is a superior alternative

What about vscode makes you like it over vim? I use nvim + coc for Intellisense and prefer it to vscode with vim mode.

Re: Porn, Zen, and .vimrc

#52
post #7

> This article describes my Vim journey, starting from heavy personal customization and ending with a renewed love for defaults this exact pattern is found in so many vi|m articles and is touted as a triumph of vim's default patterns, when it is really a failure of vim to support whole ranges of functionality. as a daily user of neovim, i know that vscode is a superior alternative and am waiting for a month off to tr…

Honestly same. The vim integration in vscode is good enough, and the IDE features make refactoring and editing so much easier.

I know that you can get good LSP integrations in vim, but the problem is that discovering the features available to you is impossible in a text-first UI. In vscode I can go through menus, I can right click and see available refactoring options, etc.

Re: Porn, Zen, and .vimrc

#53

I can't imagine remapping any of the standard commands. What if you have to edit something as a guest on someone else's system? Just get used to it and deal. I've been using it (in "vi" form) daily since 1985 or so and doing any of those remappings would drive me nuts.

Can’t you ssh from vim? I’ve done it in the past.

Re: Porn, Zen, and .vimrc

#54
I personally find vin to be a good tool for editing text without leaving the terminal. But when I’m writing a lot of code, I’ve found the vim ide concept to be far more trouble than its worth.

Modern IDEs like VSCode + Vim bindings is my preferred platform

Re: Porn, Zen, and .vimrc

#55
post #49
post #44

Earlier quoted context omitted.

Exactly! I like being able to log in to any server and use vim/vi without any issues. I've noticed similar pattern with other tools, e.g. git. I've seen coworkers add all kinds off aliases to simplify git commands, and I'm very much against it since I prefer portability.

The portability aspect seems overstated, or perhaps your use cases are just different. I can already log in to any server with my custom configs; Ansible is what configures my user already, so I just have it dump out my configs. If I can access it, it has my configs. Admittedly, it does get annoying when I'm sudo-ed to another user, but it's vanishingly rare for me that I am both sudo-ed to another user, and doing en…

Instead of `sudo vi`, you can use `sudo -e` (or its equivalent, `sudoedit`) to run the editor as your user.

Re: Porn, Zen, and .vimrc

#56

I can't help remapping ; to : and vice-versa. Can't think of the last time I needed the default ; and sparing my pinky from having to hit shift every time I want to ;q is a game changer. Obviously, that's annoying to change in every vim install but I just have a very light .vimrc that I curl in every new box

I use a git repository for my configs that also includes scripts to install the configs and packages for different environments from the bare minimum to a desktop environment. I’ll try remapping :, sounds like a good idea

Re: Porn, Zen, and .vimrc

#57
post #46
post #12

The only map that I would say is an absolute improvement over the default is map ; : Using : is a waste of a keystroke (ie. shift) in an editor that I chose specifically to reduce chorded key combos.

I used to map like this, but then I found ; is to repeat f{char}. How do you repeat f command? Map it to another key? Use / instead?

The answer is I don't. I make heavy use of /, but for navigating within a line I make do with *#^$w.

It's kind of cool how you can get two Vim power users (not a group I count myself among, mind) in a room together and find they use a completely different subset of features.

Re: Porn, Zen, and .vimrc

#58

I can't help remapping ; to : and vice-versa. Can't think of the last time I needed the default ; and sparing my pinky from having to hit shift every time I want to ;q is a game changer. Obviously, that's annoying to change in every vim install but I just have a very light .vimrc that I curl in every new box

[deleted]

Re: Porn, Zen, and .vimrc

#59
post #46
post #12

The only map that I would say is an absolute improvement over the default is map ; : Using : is a waste of a keystroke (ie. shift) in an editor that I chose specifically to reduce chorded key combos.

I used to map like this, but then I found ; is to repeat f{char}. How do you repeat f command? Map it to another key? Use / instead?

    nnoremap ; :
    nnoremap : ;
Allows me to use : for repeating.

Re: Porn, Zen, and .vimrc

#60
post #42

It's been a while since I started using vim. I can see some similarities. Though, I didn't really do much configuration in the early days. Currently, I have pretty much no configs when it comes to key maps or some custom or shortcuts. I only add plugins for code completion and highlighting. Nothing else.

Honestly I'm the same, my .vimrc is mainly set commands for line numbers, highlighting matches, basic folding and setting backup/undo/swap directories.

I work as a JS Dev on a large(ish) React project with Vim, so I realised I did want modern facilities such as Coc.nvim and denite.nvim which are my two weaknesses. I tried using `set wildmenu` for a while but I found it difficult to use compared with my denite leader+r using rg.

Other than that I have four Tim Pope plugins (vinegar, fugitive, surround, and commentary). Fugitive I could live without as I rarely use it but I could not live without surround - I'd say it's my most useful plugin and doing the same in Vim was awkward.

Post reply on HN