Skip to content

Instantly share code, notes, and snippets.

@gaejabong
Last active June 24, 2017 14:58
Show Gist options
  • Save gaejabong/0791927fb358cebc1ba57ec9cb53c579 to your computer and use it in GitHub Desktop.
Save gaejabong/0791927fb358cebc1ba57ec9cb53c579 to your computer and use it in GitHub Desktop.
syntax enable
"-------------General Settings--------------"
set backspace=indent,eol,start "Make backspace behave like every other editor.
let mapleader = ',' "The default leader is \, but a comma is much better.
set number "Let's activate line numbers.
"-------------Visuals--------------"
colorscheme atom-dark
set t_CO=256 "Use 256 colors. This is useful for terminal vim.
set guifont=Fira_Code:h17
set linespace=15 "Macvim-specific line-height.
set guioptions-=l
set guioptions-=L
set guioptions-=r
set guioptions-=R
"-------------Search--------------"
set hlsearch
set incsearch
"-------------Mappings--------------"
"Make it easy to edit the Vimrc file.
nmap <Leader>ev :tabedit $MYVIMRC<cr>
"Add simple highlight removal.
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