Live data from Hacker News

Tmux and Vim – better together

blog.bugsnag.com

151–160 of 297 posts

Re: Tmux and Vim – better together

#151

Earlier quoted context omitted.

> I disagree. The default settings of Visual studio work perfectly fine for me. That's lucky for you, but unfortunately, it's not the case for me at all. > As an added advantage, I can use other developers in my companies workstations to show them something quickly if I need I might be using other peoples computers 10 hours a year, but I'm using my own maybe as much as 2200 hours a year. It doesn't seem logical to ta…

Have you actually tried to get YouCompleteMe[1] to work for C/C++ autocomplete? It's a huge PIA. Autocomplete just works in VSCode and many other IDEs once you point them at the right directory. https://github.com/Valloric/YouCompleteMe

[deleted]

Re: Tmux and Vim – better together

#152
post #30

All this looks really great, however I think I just can't deal with the effort of maintaining these complex editor configurations anymore. I've been a multi-decade Vim user, until I switched to VSCode last year. It made me realize how much better the user experience can be for an editor. I had all kinds of complex vim configurations and plugins with special cases for linux vs. mac, server vs. desktop, GUI vs. termina…

Same boat. I use Atom with vim keybindings now and I feel much more productive than when I rolled with straight vim + tmux. Great tools, but there are much better options these days.

I found the Atom vim-keybinding plugins severely lacking in a lot of vim functionality that I use regularly.

I moved quickly back to tmux/vim.

Re: Tmux and Vim – better together

#153
post #87
post #11

Neovim got a great builtin terminal emulator so I can just treat it like any other vim panes.

How is the current status of Neovim? I think the last time I heard about was 3+ years ago.

It's great. I use it as my day to day. Sane defaults, I barely have anything in my vimrc.

Re: Tmux and Vim – better together

#154
post #107

Earlier quoted context omitted.

Pretty much everyone knows the price of admission to using tools like Vim and Emacs is the time investment in config and learning the quirks. What the OP is saying that this doesn't have to be a perpetual state. Once you invest effort early on getting it right you often don't need to touch it, beyond a few tweaks now and then. The maintenance burden definitely declines over time. Then all you need is a storage soluti…

> Pretty much everyone knows the price of admission to using tools like Vim and Emacs is the time investment in config and learning the quirks. To me, the real hurdle to vim (or emacs) isn't configuration : it's learning vim (or emacs). That muscle memory doesn't come from a .vimrc file, and it doesn't come overnight. Is that what you meant by "quirks"?

This can be said about anything, though. You still have to develop muscle memory for shortcuts and menu paths in other applications.

Re: Tmux and Vim – better together

#155
post #107
post #91

Earlier quoted context omitted.

Why is it weird? You created yours 10 years ago, great. For those of us who didn't it is a bit of a hassle.

Pretty much everyone knows the price of admission to using tools like Vim and Emacs is the time investment in config and learning the quirks. What the OP is saying that this doesn't have to be a perpetual state. Once you invest effort early on getting it right you often don't need to touch it, beyond a few tweaks now and then. The maintenance burden definitely declines over time. Then all you need is a storage soluti…

Honestly, I learned to code with vim, and it never struck me as particularly complicated. The commands follow a pretty consistent logic... the defaults aren't great but it took me one google search to find out what a vimrc file is.

emacs on the other hand, even as an experienced programmer, I found near unusable in its default and after a week of frustration with all the inconsistencies and oddities gave up on it. Which is a shame because obviously it is the more powerful of the two. I wish someone would create a modern editor in the spirit of emacs.

Re: Tmux and Vim – better together

#156
post #11

Neovim got a great builtin terminal emulator so I can just treat it like any other vim panes.

The last time I looked at the terminal emulator built into Neovim the keybindings were terrible. What keys do you personally use for navigating in and out of TERMINAL buffers?

Re: Tmux and Vim – better together

#157
post #19
post #12

Earlier quoted context omitted.

Expecting terminal programs to interact sanely with mouse gestures is somewhat futile. If I need to paste something from a vim buffer into a graphical application, I use :' !xsel -bi to copy the text. If I were doing it more often, I would probably add a keybinding to streamline the process, and solve minor annoyances like having to undo to get the copied lines back. Maybe there is a good plugin for clipboard integra…

You could use " y (and/or "+y, depending on your X clipboard setup) to yank to your clipboard. Similarly, " p paste from it.

I always forgot which of + and * works and end up having to try both. I think I looked up the difference once, but I didn't retain the information.

Re: Tmux and Vim – better together

#158
post #57
post #14

Earlier quoted context omitted.

Same, I don't use tmux with vim for exactly the reasons you gave. Instead I use i3 to split screens, etc. much better imo.

Problem is attaching the session on a remote machine, this is the main reason I've gone back to mainly using tmux in fullscreen workspaces instead of relying on a tiling window manager. Still often use tiling though to tile a browser with a terminal or two browsers.

I just maintain multiple SSH connections.

Re: Tmux and Vim – better together

#159
post #81
post #43

Earlier quoted context omitted.

How do you store them? Just backup into a dotfiles repo or what? I've been looking into dotfiles + gnu stow.

Mine are on github. If you want to use this setup simply copy and paste the contents of your original files and use the `makesymlinks.sh` script to create the links. It takes me 30 seconds to setup a new computer with it. https://github.com/garyharan/dotfiles

That's the post that inspired me to start cloning my config files from GitHub.

Re: Tmux and Vim – better together

#160
post #100
post #30

All this looks really great, however I think I just can't deal with the effort of maintaining these complex editor configurations anymore. I've been a multi-decade Vim user, until I switched to VSCode last year. It made me realize how much better the user experience can be for an editor. I had all kinds of complex vim configurations and plugins with special cases for linux vs. mac, server vs. desktop, GUI vs. termina…

I've used vim for a long time and simply don't bother with different configurations for different special cases. I also never bother with GUI versions. Just always use the terminal and only use plugins that are cross-platform.

This is a smart way to manage vim: terminal vim and a small number of the essential plugins. Clone ~/.vimrc and ~/.tmux.conf via GitHub. I haven't had any headaches doing it this way.
Post reply on HN