-
Notifications
You must be signed in to change notification settings - Fork 0
Linux VIM configuration file
Alexander Frank edited this page Jun 30, 2020
·
6 revisions
Create a vimrc configuration file:
vi ~/.vimrcThis is a per user configuration file.
Add the following content:
" this is a comment
syntax on " enable syntax highlighting
set mouse-=a " resolves copy issues between bash and windows
set number " show line numbers
set t_ut= " background color erase is set to empty string, otherwise could leak
" with e.g. the default terminal background (problem with 256 colors)
let g:gruvbox_contrast_dark = 'hard' " option for gruvbox, increases contrast
colo gruvbox " select a color scheme
set background=dark " background is dark
set tabstop=4 " tab width is 4 spaces
set expandtab " tab is replaced by tabstop spaces
set shiftwidth=4 " shift is also 4 spaces
set autoindent " indent is preserved when starting a new line
au FileType gitcommit set tw=72 " au = short version of autocommand, set the auto linewrap for gitcommits to 72 characters
if has("autocmd")
filetype indent on " base indent on filetype if it is recognized
endif