![macvim customize colors guifg macvim customize colors guifg](http://4.bp.blogspot.com/-msj4bLjtioc/TbMlzTTZcLI/AAAAAAAADHY/NbQ_79WgAdc/s1600/macvim_python.png)
Here the orange highlight being used in the text-box as I'm writing this Stack Overflow entry. For example, I've changed my highlight color to Orange in OSX, and when I select text, it is now orange instead of blue, same as in VIM. I also find it's helpful to set the OS up to visually select using the same color too. Here is an example using the molokai original color scheme. In my colors/molokai.vim file: " Visual Mode Orange Background, Black TextĪutocmd InsertEnter * highlight CursorLine guibg=#323D3EĪutocmd InsertEnter * highlight Cursor guibg=#00AAFF Īutocmd InsertLeave * highlight CursorLine guibg=#3E3D32Īutocmd InsertLeave * highlight Cursor guibg=#A6E22E Here is the code I am using, based on answer.
![macvim customize colors guifg macvim customize colors guifg](https://i.imgur.com/JTA3W.png)
I find this extremely helpful to know what mode I'm in without reading the powerline, especially on a large screen.
![macvim customize colors guifg macvim customize colors guifg](https://i.stack.imgur.com/7rq4q.jpg)
#MACVIM CUSTOMIZE COLORS GUIFG MANUAL#
When using MacVim with 'Lokaltog/vim-powerline' you can setup your normal/visual/insert colors to match the powerline mode color. Last change: 2012 Jan 13 VIM REFERENCE MANUAL by Bjorn Winckler The MacVim Graphical User Interface macvim gui-macvim 1. N.B: You can use the same method to change the colour of the cursor without all of those if-statements and escape-sequences (and this will also work in GVim). set cursorlineĪutocmd InsertEnter * highlight CursorLine guifg=white guibg=blue ctermfg=white ctermbg=blueĪutocmd InsertLeave * highlight CursorLine guifg=white guibg=darkblue ctermfg=white ctermbg=darkblue This is pretty straightforward, put the following in your. I may be possible to mix termcap color with autocmd, but IMO, highlight is more easy to maintain in long term (and in case if use gVim occassionally) " Revert Color to default when leaving Insert ModeĪutocmd InsertLeave * highlight CursorLine ctermbg=Yellow ctermfg=None Highlight CursorLine ctermbg=Yellow ctermfg=NoneĪutocmd InsertEnter * highlight CursorLine ctermbg=Green ctermfg=Red Have you look in into the 'highlight' command which is a easier way to control this.įor example, to change the CursorLine, :hi CursorLine guifg=red guibg=blue