Last active
January 27, 2022 17:49
-
-
Save PabloHiro/74ecafa10a1560a160061d8b20d0cbe4 to your computer and use it in GitHub Desktop.
.vimrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Reference: | |
" http://nvie.com/posts/how-i-boosted-my-vim/ | |
" | |
" Most general settings first | |
set nocompatible " set Vim rather than Vi settings; must go first | |
set nowrap " don't wrap lines | |
set tabstop=4 " a tab is four spaces | |
set expandtab " spaces instead of tabs | |
set backspace=indent,eol,start " allow backspacing over everything in insert mode | |
set hlsearch " highlight search terms | |
set undolevels=1000 " use 1000 levels of undo | |
set noerrorbells " don't beep | |
set showmode " display current mode | |
set title " show opened file at all times | |
" Personal settings | |
colorscheme desert | |
syntax on | |
" Remove trailing whitespaces | |
autocmd BufWritePre * :%s/\s\+$//e | |
" When vimrc is edited, reload it | |
autocmd! BufWritePost .vimrc source $MYVIMRC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment