Sometime it happens after installing vim editor on Ubuntu its not showing color syntax which is used to be enabled in rpm based system by default.
I had the same issue after installing a vim editor it was not shwing syntaxes in color, so after some search i found the way to change the default monochrome vi to color with syntax.
Run below command to install vim editor
If syntax color is not enabled by default then edit ~/.bashrc
I had the same issue after installing a vim editor it was not shwing syntaxes in color, so after some search i found the way to change the default monochrome vi to color with syntax.
Run below command to install vim editor
root@juned:~# sudo apt-get install vim
If syntax color is not enabled by default then edit ~/.bashrc
root@juned:~# vim ~/.bashrcAnd add below line in that file
alias vi='vim'Now edit /etc/vim/vimrc
root@juned:~# vim /etc/vim/vimrcAnd uncomment "syntax on" line, and any other features you want to enable in that file
No comments:
Post a Comment