5 ms·
Quick question to the Vim experts here at HN but why is it when I start vim from the terminal (Ubuntu) it does not apply the color schemes I downloaded from Vim
by jamongkad 18y ago
Quick question to the Vim experts here at HN but why is it when I start vim from the terminal (Ubuntu) it does not apply the color schemes I downloaded from Vim.org, yet when I start GVim I can see the color schemes applied?
- basil 18y agoIn your terminal Vim session, type :echo g:colors_name to find out if you have a colour scheme set. Also what version of Vim are you using? If you are using Vim-Tiny for example, it is not compiled with syntax highlighting support. Type :version to see the list of compiled features and look for '+syntax'. Otherwise it could be your terminal emulator playing up. Try :set t_Co to see how many colours Vim can recognise in your terminal. Ideally this should return at least '8'. If it doesn't there may be some tips in :h xterm-color.
- etal 18y agoAlso, check whether you're applying the color scheme in .vimrc or .gvimrc, and check where you're turning on syntax highlighting. Remember some color schemes just look different depending whether you're in the terminal or the full GUI.
- delackner 18y agoI learned something new today, from this article, with the lovely comment "Who needs .gvimrc?" if has('gui_running')
- graywh 18y agoSounds like you may be using a colorscheme that only defines gui colors. We get plenty of "problems" like that in #vim.