Live data from Hacker News

Vim after 15 Years

statico.github.io

11–20 of 176 posts

Re: Vim after 15 Years

#11

Interesting read, I've been using Vim for some 18 years myself and I was completely unaware of fzf. However, I'm curious if you know `rg` (aka. ripgrep): https://github.com/BurntSushi/ripgrep In my experience it's markedly faster than `ag` (which is markedly faster than `grep`).

I work at VS Code and we recently switched to ripgrep for quick open and search. Even searching in Chromium source takes only a few seconds. Pretty impressive speed.

Re: Vim after 15 Years

#12

Earlier quoted context omitted.

I've been using i3 for years now. I experienced the same pain. Mac hijacks a lot of the child vm keybindings. I didn't have this problem with windows as the host os. But that doesn't really make sense. Best of luck with the transition. Posting from a thinkpad, with i3, pycharm and vim right now :).

What kind of thinkpad? :)

T440s, but I was on a T430s earlier for work.

Re: Vim after 15 Years

#13
tmux send-keys is fantastic. I recently added a shortcut to run the test that my cursor is on in a different pane.

This changed my life.

I thought I had to decide between having a separate pane to run my tests in and having a convenient and precise way to run to exactly the test or test file I want to run. But because of send-keys, I can have both!

Re: Vim after 15 Years

#14
I'm an avid tmux+neovim user, too, though working with Reason is a lot easier in VS Code. Making the switch from actual vim to fake vim (ie JS emulation) sucks.

Recently, VSCodeVim merged #1725 to add actual neovim as an editor - it's using NeoVim's embedding API so you're using neovim to edit the text file inside of VSCode's chrome, including all of VSCode's type hints and popups. Info here: https://github.com/VSCodeVim/Vim/issues/1735

There's an ongoing rewrite to make neovim also work with your existing .vimrc file: https://github.com/VSCodeVim/Vim/pull/1897

I'm really stoked that we get the best of both - for languages with first-class VSCode support we don't have to decide between a half-baked VIM plugin or using VSCode without vim... you get both!

Re: Vim after 15 Years

#15

Problems with macOS and iTerm2... that is too bad. I am going to do a 30 day challenge with a Thinkpad from Costco next month. Full linux install with Ubuntu 17.10! I have wanted to try i3wm for as long as I can remember. Unfortunately, it is a PITA to get working on a VM with the Mac as the key chords don't play nicely intersystem. Super excited to give it a go... what is awesome is that I can have an IDE like Pycha…

Switched to i3 a few weeks back and I absolutely love it. Switching between applications and workspaces is incredibly fast, and the _only_ time I need the mouse is for web browsing. It's amazing.

Re: Vim after 15 Years

#17
I had another pane autorunning something when it detected src file changes (inotify). So you just :w, and it happens.

The method in this blog could do this: just add :w to the mapping. The blog method might seem hacky in using up and enter, but this makes it easy to modify the command you want to run.

Re: Vim after 15 Years

#18

tmux send-keys is fantastic. I recently added a shortcut to run the test that my cursor is on in a different pane. This changed my life. I thought I had to decide between having a separate pane to run my tests in and having a convenient and precise way to run to exactly the test or test file I want to run. But because of send-keys, I can have both!

Sounds cool! Could you share that shortcut please? I'm sure I could work it out, but there's always a bit of trial and error, and looking up docs without knowing the name in vim (for me, anyway).

Re: Vim after 15 Years

#20
post #15

Problems with macOS and iTerm2... that is too bad. I am going to do a 30 day challenge with a Thinkpad from Costco next month. Full linux install with Ubuntu 17.10! I have wanted to try i3wm for as long as I can remember. Unfortunately, it is a PITA to get working on a VM with the Mac as the key chords don't play nicely intersystem. Super excited to give it a go... what is awesome is that I can have an IDE like Pycha…

Switched to i3 a few weeks back and I absolutely love it. Switching between applications and workspaces is incredibly fast, and the _only_ time I need the mouse is for web browsing. It's amazing.

Use qutebrowser, and you'll never need the mouse again!
Post reply on HN