News for hackers. Stuff that matters.
Re:How SublimeText Bodybags vim+Terminator by graue on Sunday February 03, 2013 @01:27PM (#5160543)
> 3) Since Vim runs in the terminal, it means that I can, very easily, perform many things without having to use the mouse or alt-tab once. Uninterrupted workflow is extremely important to me as a developer who tinkers with the entire stack:

I have a stupid, but related question for the smart people of HN.

I find myself using Vim in the terminal, instead of GVim, for the same reason: Ctrl-Z works, Ctrl-PgDn to the next terminal tab (and back: Ctrl-PgUp) works, it doesn't pop up a new window when I run it, etc.

But GVim has much nicer colors (I picked my favorite out of about 50 themes), and I can't get Vim in a terminal to look more than halfway decent. In the terminal, colors are more distracting and hard on the eyes.

Is anyone aware of a way to get the best of both worlds, i.e. true-color colorschemes in Vim in a terminal? To partially answer my own question, KDE's Konsole seems to support true color[1], but before I install it I'd be curious to know if Vim even works with that feature, and if there are any other, preferably GTK-based, true-color terminals out there.

[1]: https://github.com/robertknight/konsole/blob/master/user-doc...

Re:How SublimeText Bodybags vim+Terminator by johncoltrane on Monday February 04, 2013 @08:04AM (#5163848)
1. Make sure your terminal advertises itself as supporting 256 colors. $ echo $TERM should output xterm-256color

2. Find yourself a nice 256 colors-ready colorscheme.

3. Enjoy.

If you can't find a 256 colors-ready colorscheme that suits your needs, you can use a Vim plugin called CSApprox to convert a GUI colorscheme for use in a 256 colors terminal.

ZyX as written a patch to allow Vim to play well with that feature in Konsole. You could try it: https://bitbucket.org/ZyX_I/vim/commits/9c4ad944627dc19bd898...

Re:How SublimeText Bodybags vim+Terminator by bigboehmboy on Sunday February 03, 2013 @01:33PM (#5160565)
Re:How SublimeText Bodybags vim+Terminator by graue on Sunday February 03, 2013 @06:45PM (#5161716)
Thanks! This is the only response that actually answers the question. I'll try Konsole with the linked vim patch.
Re:How SublimeText Bodybags vim+Terminator by herrwolfe45 on Sunday February 03, 2013 @02:43PM (#5160822)
Yeah - you basically just need to get xterm (or whichever terminal em you are using) to run as 256 colors:

My solution is to place this in my .bashrc

# begin code if [ "$TERM" == "xterm" ]; then export TERM=xterm-256color fi # end code

Of course the terminal should be 256 color terminal. Hope this helps.

Re:How SublimeText Bodybags vim+Terminator by graue on Monday February 04, 2013 @12:19AM (#5162596)
The problem with that is it's still only 256 colors, which likely doesn't include all the colors in my preferred colorscheme. That's why I'm looking for "true-color", which typically means 16.7 million colors like we are used to (e.g. #rrggbb in CSS), not 256.
Re:How SublimeText Bodybags vim+Terminator by adrianolaru on Thursday February 07, 2013 @11:49AM (#5183099)
I am using vim in tmux inside a terminal (iTerm2) and I was also unhappy with how vim looked in the terminal so I've made a colorscheme (https://github.com/adrianolaru/vim-adio) especially for this setup. Check it out, maybe you'll like it.
Re:How SublimeText Bodybags vim+Terminator by soseng on Sunday February 03, 2013 @03:30PM (#5161017)
I ran into the same issue with vim in a terminal. I decided to give gVim a try and I really like it. I used to use the sp and vs commands but now find myself using the tabbed windows in gvim. Try typing :tabnew for a new tab and gt for cycling through them.