user63898
user63898

Reputation: 30963

this is really annoying me how to remove all syntax colors of vim 7+

Im using centos 5.5 and installed vim 7 i defined syntax off in vimrc , and it removed me most of the syntax coloring , but i still have colors when i move to curly braces , and when i search for string in source its paint me the result with yellow , all so when i do code completion its also with colors how do i remove all colors from vim i want it to be like old vi.

Upvotes: 1

Views: 1690

Answers (3)

Serg
Serg

Reputation: 4283

You might want to try disabling syntax different way as :syntax=off doesn't turn off all the colors. Try using following :set syntax=off or i believe :set syntax= should work as well. This should disable all the colors, including Line number.

For follow up question regarding the colors of line numbers (if anyone want's to disable just that): you can disable the colors of the Line numbers by doing following: :hi LineNr ctermfg=white (really not disabling, just making it white)

You can use :hi to change the colors of mostly anything in VI to make them white or any color, really.

Upvotes: 1

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 799400

Remove the vi alias in your shell.

unalias vi

Upvotes: 2

wkl
wkl

Reputation: 80031

Write this stuff in ~/.vimrc

  • set nohlsearch - disables highlighted search
  • let g:loaded_matchparen=1 - disable brace/paren/bracket matching

Upvotes: 3

Related Questions