Neovim got a great builtin terminal emulator so I can just treat it like any other vim panes.
This. I tried tmux but it required too much configuration, whereas Neovim just used my current terminal, already configured exactly the way I wanted it.
I had to make a few small tweaks, like making it easier to switch between VIM and terminal panes, but overall I'm very happy with the Neovim + terminal mode setup.
I use vim 7.4 and it segfaults atleast four-five times everyday. I suspect it's some plugin that is causing it to crash but I don't really know. Does it happen to anyone else too? I have mapped Ctrl-C to ESC and I use it often. One specific instance I have seen vim crash is when the cursor is at np.inf and I press Ctrl-C.
Either you have a plugin that's wreaking havoc, or you have something weird in your setup, because a stable Vim version crashing is not something I've seen often.
How do you guys share session in TMUX beetween computers that there are not in the same local network?
There's tmate: a tmux fork wich allow instant pairing without the hassle of ssh'in into the other computer and running a shared tmux. You can instant-run with the online service or install and use your own tmate server (BSD-licensed).
Same here! I've been using both Vim (4 year) and Tmux (2 year) and I noticed I was actually spending more time configuring my text editor rather than just writing code. So I switched first to Atom and then to VSCode and I'm supper happy with the result.
What are you guys doing with your configurations? I've been using vim since 2009 and tmux for the last 5 years. Initially, I had to figure out how things worked, and that took some time, but I never spent any time configuring it now except if I find a new plugin and figure out a new feature I'd like to add.
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...
How do you store them? Just backup into a dotfiles repo or what? I've been looking into dotfiles + gnu stow.
I do exactly this myself, and it works remarkably well. I had a few conflicts I had to work around between different packages, but the updated vim package directory structure has mostly solved that problem. EDIT: The biggest problem, for me, is that since they are all dotfiles, they are invisible to normal ls operations within the stow directory. It's a minor nit, but it can be quite annoying to run up against.
I've aliased ls to `alias ls='ls -GFhal'` to get around hidden dotfiles.
Weird. I built my .rc files like 10 years ago, and only edit them about twice a year to add a plugin or modify a keybinding. Not a pain to maintain at all.
How do you store them? Just backup into a dotfiles repo or what? I've been looking into dotfiles + gnu stow.
I use a Github repo, but I actually store it on Dropbox. I then symlink everything into place on a new computer.
Any change I make to a dotfile then shows up on any other machines.
Hmm. I use both vim (and vi since '93 or '92), and tmux, but maybe not with this type of workflow - mine is similar. For a shell, I use ConqueShell (and ConqueGDB when debugging) and have a vertical split bound to a leader (and you can use the output as a normal buffer - copy, paste, scroll, search using regex in normal, etc are some of the benefits). I've got shift+arrow bindings for navigating around buffers in splits, and alt+arrow for navigating around windows. As for running tests, I have autocmds that do bindings based on filetype for generic operations, and if there's a test I run often on a project, I just create a leader binding for it. If you're thinking about this type of workflow, give ConqueShell an eval. YMMV.
edit: fzf seems to work a lot like CTRL-P.
I usually use :!command to run a command real quick from within vim, where I also have access to the current filename and contents. A classic gem is ":w !diff % -" to see what I've changed since the last save.
That's what I've done for years too. I didn't know about the diff, but I love that - thank you.
Not sure if it is only at my Mac, but with the latest Mac OS + iTerm + TMUX + VIM, my clipboard doesn't work properly, even using the following setup on my tmux bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy" Anyone with the same problem?