krotlibrary.blogg.se

Macvim background color
Macvim background color





macvim background color

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

#MACVIM BACKGROUND COLOR CODE#

Here is the code I am using, based on answer. I find this extremely helpful to know what mode I'm in without reading the powerline, especially on a large screen. When using MacVim with 'Lokaltog/vim-powerline' you can setup your normal/visual/insert colors to match the powerline mode color. 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

macvim background color

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







Macvim background color