Live data from Hacker News

Vim after 15 Years

statico.github.io

101–110 of 176 posts

Re: Vim after 15 Years

#101
post #67

Earlier quoted context omitted.

The only thing preventing me from using is the slight lag it introduce each time is used in insert mode. It is bearable with ',', but I cannot stand it with . If it is possible to remove completely this lag (not simply reduce it), then it would be awesome.

Apologies if this is incorrect (on my phone atm) but I've been using as leader for two years now, and have never ever noticed lag in insert mode. Perhaps it's a setting you have enabled/disabled, or unrelated to vim?

Presumably you don't have any key mappings that are active in insert mode?

Re: Vim after 15 Years

#102
post #63

Earlier quoted context omitted.

I have not heard any good argument for a leader key better than . f, t, b for fzf (and t is not a stretch on my keyboard layout)

> (and t is not a stretch on my keyboard layout) Colemak?

t? How does that not ruin "to" movements?

Re: Vim after 15 Years

#103
post #67

Earlier quoted context omitted.

I have not heard any good argument for a leader key better than . f, t, b for fzf (and t is not a stretch on my keyboard layout)

The only thing preventing me from using is the slight lag it introduce each time is used in insert mode. It is bearable with ',', but I cannot stand it with . If it is possible to remove completely this lag (not simply reduce it), then it would be awesome.

Do you need to use it on insert mode as well? I set to use space as the leader key only on normal mode so there's no lag.

Re: Vim after 15 Years

#104
post #86

If you're going to use buffers (which you should), make sure to set hidden otherwise you'll get an error message when you try to swap to a different buffers when you have unsaved changes in your current buffer,

Great for helping lose unsaved changes, too.

Re: Vim after 15 Years

#105
post #94

Vim, apparently, is the new emacs. /me ducks and runs out of the room

That's what I don't get: for years, vi (and vim) mocked the emacs community (with some justification) for throwing everything and the kitchen sink into our editor. We were building an entire operating environment, while vi was providing a nice, solid, fast text editor. But with vim & neovim, people are building a complex operating environment in a terrible language, and ignoring the man-centuries of effort which have…

I have a similar thought coming from a Java/Eclipse background; why use a bunch of half baked plugins to build a poor IDE experience? Vanilla vim is very capable. Personally, I use zero plugins, and a minimal vimrc, and have for years.

Re: Vim after 15 Years

#106
I've been using vim about 20 years now.

Maybe I'm weird but I don't use any plugins. When I want more than what Vim does I use something else. Autocomplete, find usages, etc? I'll use an IDE for that. When I need to refactor a 500MB text file without hanging my machine, I'll use vim.

Re: Vim after 15 Years

#107
post #94

Vim, apparently, is the new emacs. /me ducks and runs out of the room

That's what I don't get: for years, vi (and vim) mocked the emacs community (with some justification) for throwing everything and the kitchen sink into our editor. We were building an entire operating environment, while vi was providing a nice, solid, fast text editor. But with vim & neovim, people are building a complex operating environment in a terrible language, and ignoring the man-centuries of effort which have…

This bothers me too, as a vi / vim user of 20 years, I've always respected emacs even if I didn't want to use it. But now it's getting to be where vim too is laboring under a big pile of hacks, and in a worse language than elisp. Recently I've switched to kakoune for development, which innovated where it counts by implementing new ideas about the core job of editing text. I'll still use plain vi as $EDITOR, because I know it's always there for me, but vim-as-an-ide is not for me.

Re: Vim after 15 Years

#108
post #91

Vim, apparently, is the new emacs. /me ducks and runs out of the room

I think there's loads of great ideas in emacs we can use for inspiration. I've tried Spacemacs a couple of times, it's very good but not for me I think. I'd be happy to import ideas like dired though.

dirvish.vim is my attempt to adapt dired to the Vim philosophy. It doesn't attempt to "DWIM", but provides :Shdo which allows you to script file operations using your shell.

https://github.com/justinmk/vim-dirvish/

Re: Vim after 15 Years

#109
post #106

I've been using vim about 20 years now. Maybe I'm weird but I don't use any plugins. When I want more than what Vim does I use something else. Autocomplete, find usages, etc? I'll use an IDE for that. When I need to refactor a 500MB text file without hanging my machine, I'll use vim.

I used to use `alias qvim="vim -u ~/.qvimrc"` as my small, toned down vimrc. It still had some bells (like vim-surround), but lacked the full-on Unite.vim, tmux, etc integration of my usual vimrc.

Re: Vim after 15 Years

#110
post #97
post #34

I made a Vim plugin to use 'normal' sublime/atom-like keybindings: https://github.com/tombh/novim-mode I have an almost identical setup as that described in this post. Being in the terminal and integrating with tmux is a wonderful environment - lightweight and immersive. And all these Vim plugins are of such good quality - are Vim plugin authors perhaps of a different, geekier, ilk? So it's a shame that vanilla Vim i…

Many newcomers using your plugin will have a huge problem when using vanilla VIM. The same problem exist with Spacemacs, Spacevim or other weird things. If someone don't want to use VIM modal editing why not to stay with Sublime/Atom/VSCode or any other editor? They also have very rich plugins ecosystem. Not mentioning that Sublime is like crazy fast... To clarify it's not an attack on anyone. For instance evil mode…

I agree that you can't just use all the old keys otherwise you'll never learn. But what I am looking for is kind of a translation guide from ST to Vim.

For Vim learners I really think that GVim is a great tool because eg it doesn't do bad things when hit some keys you're used to with muscle memory such as copy/paste and Ctrl+arrow.

It has dropdown menus with the commands on so you can learn from them.

Once you're comfortable in GVim it's easy to switch to regular Vim.

Plus I use it on Windows as handles fonts and syntax highlighting better.

Post reply on HN