The configuration file for vim in Ubuntu is stored in the/etc/vim directory with the configuration file named VIMRC
Show line Numbers
Syntax highlighting
Auto Indent
Show commands in text
Show nearest brace match
Smart Match
Smart Tips and search
"The following is commented out as they cause vim-to-behave a lot" differently from regular Vi. They is highly recommended though. " Set ShowCmd "Show (partial) command in status line." Set Showmatch "Show matching brackets." Set ignorecase "Do case insensitive matching" set Smartcase "Does smart case matching" set Incsearch "Increment Al Search "Set Autowrite " Automatically save before commands Like:next And:make "set hidden " Hide buffers when t Hey is abandoned "set mouse=a " Enable mouse usage (all modes)
Note that in the location file, use the "can comment
Automatic highlighting Code hints
"VIM5 and later versions support syntax highlighting. Uncommenting the next "line enables syntax highlighting by Default.if have (" syntax ") syntax onendif
Command Prompt Code
"Uncomment the following to had Vim load indentation rules and plugins" according to the detected Filetype.if had ("Autoc md ") filetype plugin indent onendif
Set Nuset autoindentset cindent "This was main for C Languageset tabstop=4set shiftwidth=4set softtabstop=4
Configuration changes to Vim under Ubuntu