Live data from Hacker News

Tmux and Vim – better together

blog.bugsnag.com

271–280 of 297 posts

Re: Tmux and Vim – better together

#271
post #145
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 always felt vim is an excellent editing experience but a lousy project management (ie "IDE") experience. I've also grown tired of the song and dance of setting up vim config and plugins, getting excited when I finally get a decent autocomplete working without stopping to consider VS Code has great autocomplete out of the box. The problem is vim editing never quite mixes well with other editors. The vim plugin fo…

I agree. With the caveat that I'm not a vim power user, the IdeaVim plugin has worked well for me. It doesn't have everything, but I haven't encountered any annoying bugs while using it. Plus, IntelliJ / WebStorm do a lot of really powerful and convenient things. It has been a nice compromise.

Re: Tmux and Vim – better together

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

My point is that after the initial investment in the setup, it takes almost no time to maintain them. In my particular case, I invested about 2 weeks tweaking settings here and there until I felt comfortable with it. After that initial setup, it just gets out of your way.

Personally, my biggest issue is getting vim to work the same way on multiple platforms. I have a mac at work and alternate between windows and linux at home. Each of those has been slightly different than the others. To some extent, yes, once you have the config set you can just leave it alone and be fine. But for me, switching to a full IDE has made life easier.

Re: Tmux and Vim – better together

#273

Earlier quoted context omitted.

Oh! Ctrl-Z! I've been calling !zsh all these years, for quick shell access, and never thought of suspending vim. Thanks for the nugget.

Put this in your zshrc, and Ctrl-Z will also resume the most recently suspended process. Really handy to just Ctrl-Z in and out of Vim. # Make Ctrl-z also resume background process fancy-ctrl-z () { if [[ $#BUFFER -eq 0 ]]; then BUFFER="fg" zle accept-line else zleush-input zle clear-screen fi } zle -N fancy-ctrl-z bindkey '^Z' fancy-ctrl-z

I don't really know zsh, but that looks like it should be

  zle flush-input

Re: Tmux and Vim – better together

#274

Earlier quoted context omitted.

If you like searchable multiple-choice configuration, there's always customize. M-x customize

That doesn't help emacs noobs at all. Half the Emacs term still used today 40 years after being coined don't make any sense. Wait - this is not the Window, but the... Frame? What?

Emacs terminology for the uninitiated. http://wikemacs.org/wiki/Emacs_Terminology

Re: Tmux and Vim – better together

#275
post #93
post #75

Earlier quoted context omitted.

Nothing works out of the box, especially if you are trying to make two plugins work nicely with each other. If you want IDE like features i.e Autocomplete than you have to spend days to make it work and even after that it doesn't work like other "GUI" editors. + Terminal interface is very limiting to have nice plugins... I'm really glad I've switched to VSCode..

Same exact experience here. Like, I could never get ES6 highlighting to work in Vim. Just flat out didn't work, so all non-ES5 code I write looks terrible. Could be a conflict with my theme or something else. I don't know, or care to do the work to figure it out. I used Vim for a good 5 years. I still miss many things about it, but a shitty default UX is not one of them.

Yeah exactly... Main objective is just to write code, nothing more. No editor is perfect for me atm, VSCode eats my battery and it lacks some features but at least I'm only focused on writing code and having features that actually work...

Re: Tmux and Vim – better together

#276
post #109

I'm really a little disappointed how much this article is about using plugins and additional tools instead of learning to integrate both tools by oneself. At least vim is not a tool that gets better by plugins.

Vim absolutely gets better with plugins. ctrlp.vim, vim-tmux-navigator, vim-clang-format, ag.vim, vim-fugitive, supertab, vim-surround are all valuable plugins that I make use of every single day.

But you don't know what it stopped you from discovering about vim core that you solve your problems that way. And as shown in another comment in this thread, each problem you can solve with vim core you can combine with other features:

E.g., if you don't use a plugin for command execution and instead learn about ":!command" then you will at some point be able to automatically read the results from your command into the current buffer (":r !command"). This enables a complete set of features that you haven't even known before. For instance you won't ever have spelling errors in your IP addresses ever again, because you just read them with a ifconfig-grep-awk combo into wherever you want to paste it. If you also learn about creating your own vimcode functions you can make it even a hotkey to insert your current ip address at the cursor position.

All of that wouldn't be possible to discover if you used a plugin to execute shell commands from vim.

Re: Tmux and Vim – better together

#277
post #240

Earlier quoted context omitted.

> * Autocomplete. This deserves way more recognition than it gets. Having function signatures, documentation, overloads, types, available IN-LINE while you type saves so much work from programming and is essential to delivering correct code. If you want to be an effective programmer, this is a fundamental tool. Coding. This deserves way more recognition than it gets. Having function signatures, documentation, overloa…

Autocomplete is obnoxious. I write Ruby primarily and if you need autocomplete for Ruby, you're probably doing it wrong.

I'm telling the same thing. Brain is required for coding not autocompletion. :)

Re: Tmux and Vim – better together

#279
post #103

I wish tmux could document their line protocol. Currently only iTerm is using that to integrate with tmux and no one else is doing it.

Terminator devs are working on the same kind of integration [1]. You can already attach to a running tmux session and Terminator will pick up the layout and create the splits and tabs accordingly. It has some rendering issues if you are using zsh and/ or fzf but otherwise great to see the progress.

[1]: https://bugs.launchpad.net/terminator/+bug/1301605

Re: Tmux and Vim – better together

#280
post #191

Earlier quoted context omitted.

https://github.com/gregsexton/Muon :)

Awesome. Do you also know what they are using for the shell? Seems to be something a bit different from that theme.

It looks like Atom but Im not sure, you can see more of them here: https://github.com/lysyi3m/osx-terminal-themes
Post reply on HN