https://phoenixnap.com/kb/vim-color-schemes
In your home folder in ubuntu ( cd ~)
// Create .vimrc file
$ vim .vimrc
// in .vimrc file add the following
# Set directory is to fix vim security issue, where opened file by vim saved in default temp location can be opened
set directory=~/.vimbak
# As of Sept 8 2021 colo is deprecated
colo desert
OR
colorscheme desert
syntax on
// :wq! to save the file
// Then in home directory. create directory .vimbak for vim to temporarily save progress on opened file
$ mkdir .vimbak
Vim not reading .vimrc?
https://stackoverflow.com/questions/3495124/not-reading-vimrc
This should not happen, go inside of the link above to find solutions.
(Not recommended) In ubuntu u can change vim global settings for all users at :
/etc/vim/vimrc
No comments:
Post a Comment