I try to get Vi to work properly witch backspace and i have edited ~/.vimrc with:
set nocompatible
set fileformats=unix,dos
set history=100
set ignorecase
set number
set showmatch
syntax on
highlight Comment ctermfg=LightCyan
set wrap
set incsearch
set hlsearch
set smartcase
But none of the options appear in vi. How is this possible? I reopened my shell and even rebooted my PC even though is seems useless. I tried /etc/vimrc to add the settings, also not workling
I think that file in vi and ex is for a totally different purpose.
These options will not work in vi or ex.
But I know very little - just that I usually do not use vi but vim instead
and only basic functions.
/root/.vimrc & ~/.vimrc
set nocompatible
set fileformats=unix,dos
set history=100
set ignorecase
set number
set showmatch
syntax on
highlight Comment ctermfg=LightCyan
set wrap
set incsearch
set hlsearch
set smartcase
/root/.bashrc & ~/.bashrc
alias vi=vim
alias sudo="sudo " (needed when sudo is used)