Live data from Hacker News

Vim after 15 Years

statico.github.io

51–60 of 176 posts

Re: Vim after 15 Years

#51

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…

I also use i3 and customizing it is a lot of fun :D

This(http://abhirag.in/articles/org/i3_setup.html) is my i3 setup with literate dotfiles, hope you find it helpful in switching to i3 :)

Re: Vim after 15 Years

#52
As a former Vim user I'm happy to see a post like that ! Some old problems mentionned in the post like asynchronous processes mostly, but also the lack of smart indentation with the TAB key that also takes into account the type of file you're editing really drove me out of Vim. I've since switched to Emacs (with Evil mode because modal editors rocks), and I haven't looked back since.

Re: Vim after 15 Years

#53
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.

Firefox? Check out something like VimFX. No need for the mouse on 80% of the webpages.

Re: Vim after 15 Years

#54
An interest plugin I've found recently (Neovim only) is Deoplete, which is basically Ctrl-n on steroids. As you type, it shows a list of completions without any kind of slowdown (on my 4 yo MBA). For some languages, such as TypeScript, it even shows type definitions. It's close to being on-par with the smart completion in IntelliJ.

https://github.com/Shougo/deoplete.nvim

Re: Vim after 15 Years

#56

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…

I recently switched from iTerm2 to Alacritty https://github.com/jwilm/alacritty. It does not have scrollback, splits, tabs and other fancy features. But for me, performance and snappiness is the most important feature (besides, I use Tmux for all those things mentioned).

For getting something close to i3 (you wont...?) on macOS I am using chunkwm https://github.com/koekeishiya/chunkwm.

I spent some time during the summer to get to know Linux using i3 (i3-gaps actually) with urxvt on a VirtualBox. I do recommend it!

Re: Vim after 15 Years

#58

"The vim-surround plugin is so useful that it should probably be built into Vim." I couldn't agree with this more. Also undotree [1] should be built into Vim as well. Vim represents undo/redo under the hood as a tree, which is absolutely incredible once you have a plugin that unlocks it, but the built-in facilities for traversing that tree could be charitably described as "dismal". Vim's undo tree makes a solved prob…

Clickable link for [1]

[1]: https://github.com/mbbill/undotree

Re: Vim after 15 Years

#59

Earlier quoted context omitted.

Something faster than ag? Honestly had no idea. I've been so happy with ag.

I think it only matters for very large trees. I didn't notice much difference personally.

it also handles .gitignores better, so it might give you more accurate results.

Re: Vim after 15 Years

#60

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.

If you use inotifywait a lot, I recommend trying http://entrproject.org/ which solves a lot of minor annoyances with inotifywait. It makes it easy to e.g. rebuild all web pages, restart your simplehttpserver and reload the current Firefox tab every time on of your `git ls-files` changes. The "restart server"-part can be fiddly with plain inotifywait, trivial with `entr -r`.
Post reply on HN