3 ms·
> 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 workfl
by graue 14y ago
> 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/README.moreColors https://github.com/robertknight/konsole/blob/master/user-doc...
- bigboehmboy 14y agoCheck out http://www.reddit.com/r/vim/comments/17941z/is_there_any_way_to_display_a_gui_colorscheme/ http://www.reddit.com/r/vim/comments/17941z/is_there_any_way...
- graue 14y agoThanks! This is the only response that actually answers the question. I'll try Konsole with the linked vim patch.
- herrwolfe45 14y agoYeah - 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.
- graue 14y agoThe 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.
- soseng 14y agoI 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.
- johncoltrane 14y ago1. 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/9c4ad944627dc19bd898174c8fe28a5ee0de4c26 https://bitbucket.org/ZyX_I/vim/commits/9c4ad944627dc19bd898...
- adrianolaru 14y agoI 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 https://github.com/adrianolaru/vim-adio) especially for this setup. Check it out, maybe you'll like it.