Skip to content

Instantly share code, notes, and snippets.

@matheusramos
Created March 5, 2018 00:54
Show Gist options
  • Save matheusramos/06ff732d6d92093ec74a7b0f40c661e5 to your computer and use it in GitHub Desktop.
Save matheusramos/06ff732d6d92093ec74a7b0f40c661e5 to your computer and use it in GitHub Desktop.
My personal vimrc config file
syntax on "enable syntax highlight
set nu "line number
"line highlight
set cursorline
" For regular expressions turn magic on
set magic
" Show matching brackets when text indicator is over them
set showmatch
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Text, tab and indent related
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Use spaces instead of tabs
set expandtab
" Be smart when using tabs ;)
set smarttab
" 1 tab == 4 spaces
set shiftwidth=2
set tabstop=2
" Linebreak on 500 characters
set lbr
set tw=500
set ai "Auto indent
set si "Smart indent
set wrap "Wrap lines
if has("multi_byte")
if &termencoding == ""
let &termencoding = &encoding
endif
set encoding=utf-8
setglobal fileencoding=utf-8
"setglobal bomb
set fileencodings=ucs-bom,utf-8,latin1
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment