Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
29
rated 0 times [  29] [ 0]  / answers: 1 / hits: 107414  / 1 Year ago, wed, december 21, 2022, 12:32:03

How do I change default settings of Vim editor such as setting auto indent, setting Tab space to 4 and changing text colors? Also how to set vim as the default code editor?


More From » vim

 Answers
6

Edit ~/.vimrc and put these in it:



set autoindent
set tabstop=4
colorscheme default


Note: type :colorscheme and hit Tab in order to find available colorsschemes installed for your Vim .



To use vim as default editor, use this



export EDITOR=/path/to/vim or simply export EDITOR=vim



or you can save this in your rc file


[#32359] Thursday, December 22, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
avilyexplor

Total Points: 20
Total Questions: 102
Total Answers: 120

Location: Maldives
Member since Mon, Jun 21, 2021
3 Years ago
;