Vim OS X Mountain Lion terminal cursor color

I want to make the cursor and selected text more readable in vim (white background, black foreground), so I did

hi Visual guibg=white guifg=black gui=NONE ctermfg=black ctermbg=white cterm=reverse hi Cursor guibg=white guifg=black gui=NONE ctermfg=black ctermbg=white cterm=reverse 

which gives me exactly what I want on MacVim. However, the vim terminal uses terminal settings by default, which are very difficult to read and find ... how can I override the default values ​​for the terminal?

Edit: to say hi Visual works fine. This is hi Cursor , which does not.

+6
source share
2 answers

I am not a Mac user, but I do not think this is possible. The cursor color in the Vim console is inherited from the terminal application and cannot be changed. * You can try changing the cursor color in the terminal settings.

* Disclaimer: This certainly applies to the Windows command line that I have to use at work. I would not be surprised if other Unix-like shells were more flexible.

+7
source

You cannot change the cursor color programmatically (i.e. just do it for vim), but you can change it in Terminal> Preferences> Profiles> Text> Cursor (see image), which can solve your problem.

I find a bright green cursor that makes a big difference to visibility!

EDIT: This is mentioned in the comments, but I missed this for the first time, so I think he deserves his own answer.

Terminal settings

+3
source

Source: https://habr.com/ru/post/922444/


All Articles