Skip to content

Instantly share code, notes, and snippets.

@philipecampos
Created June 28, 2021 11:40
Show Gist options
  • Save philipecampos/43034216d9a847c79c6930724c3c8ddd to your computer and use it in GitHub Desktop.
Save philipecampos/43034216d9a847c79c6930724c3c8ddd to your computer and use it in GitHub Desktop.
syntax enable
set backspace=indent,eol,start "Make backspace behave like every other editor
let mapleader = ',' "The default leader is \, but comma is much better
"---------Visuals-----------"
colorscheme atom-dark-256
set guioptions-=l
set guioptions-=L
set guioptions-=r
set guioptions-=R
"---------Search------------"
set hlsearch "Ativa o highlight para a busca
set incsearch "Ativa a busca instantânea enquanto digita
"---------Mappings----------"
"Facilita a edição do arquivo .vimrc
nmap <Leader>ev :tabedit $MYVIMRC<cr>
"Torna fácil remover highlight
nmap <Leader><space> :nohlsearch<cr>
"---------Auto-Commands-----"
"Automatically source the .vimrc file on save
augroup autosourcing
autocmd!
autocmd BufWritePost .vimrc source %
augroup END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment