Last active
February 2, 2016 13:18
-
-
Save gaejabong/547c116eb0fa6cda87f1 to your computer and use it in GitHub Desktop.
vim configure file
This file contains hidden or 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
set nocompatible "We want the latest vim settings/options. | |
so ~/.vim/plugins.vim | |
syntax enable | |
set backspace=indent,eol,start "Make backspace behave like every other editor. | |
let mapleader = ',' "The default is \ but a comma is much better. | |
set number "Let's activate line numbers. | |
set ts=4 | |
set sw=4 | |
set sts=3 | |
"----------------Visuals----------------" | |
colorscheme atom-dark | |
set t_CO=256 "Use 256 colors. This is useful for Terminal Vim. | |
set guifont=Fira_Code:h15 "Set the default font family and size. | |
set linespace=15 "Macvim-specific line-height. | |
set guioptions-=l "Disable Gui scrollbars. | |
set guioptions-=L | |
set guioptions-=r | |
set guioptions-=R | |
"----------------Search----------------" | |
set hlsearch | |
set incsearch | |
"----------------Split----------------" | |
set splitbelow | |
set splitright | |
nmap <C-J> <C-W><C-J> | |
nmap <C-K> <C-W><C-K> | |
nmap <C-H> <C-W><C-H> | |
nmap <C-L> <C-W><C-L> | |
"----------------Mappings----------------" | |
"Make it easy to edit the Vimrc file | |
nmap <Leader>ev :tabedit $MYVIMRC<cr> | |
"Add simple highlight removal. | |
nmap <Leader><space> :nohlsearch<cr> | |
"Make NERDTree easier to toggle. | |
nmap <D-1> :NERDTreeToggle<cr> | |
nmap <c-R> :CtrlPBufTag<cr> | |
"Most Recently Used File. | |
nmap <D-e> :CtrlPMRUFiles<cr> | |
"----------------Plugins----------------" | |
"/ | |
"/ CtrlP | |
"/ | |
let g:ctrlp_custom_ignore = 'node_modules\DS_Store\|git' | |
let g:ctrlp_match_window = 'top,order:ttb,min:1,max:30,results:30' | |
"----------------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