Created
May 16, 2016 17:56
-
-
Save dydx/3e7c917c4a682b283fdc6f648f54811e to your computer and use it in GitHub Desktop.
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
" LAUNCH CONFIG | |
execute pathogen#infect() | |
" EDIT VIMRC | |
nmap ,ev :tabedit $MYVIMRC<cr> | |
" Auto Commands | |
augroup autosourcing | |
autocmd! | |
autocmd BufWritePost .vimrc source % | |
augroup END | |
" BELLS | |
set noeb vb t_vb= | |
" COLORS | |
set background=dark " dark background | |
colorscheme materialbox " awesome colorscheme | |
syntax enable " enable syntax highlighting | |
" SPACES AND TABS | |
set tabstop=4 | |
set shiftwidth=4 | |
set shiftround | |
set expandtab " tabs are spaces | |
set backspace=indent,eol,start | |
" UI CONFIG | |
set number " show line numbers | |
set showcmd " show command in bottom bar | |
set cursorline " highlight current line | |
filetype indent on " load filetype-specific indent rules | |
set wildmenu " visual autocomplete for command menu | |
set lazyredraw " redraw only when we need to | |
set showmatch " highlight matching [()] | |
" SEARCHING | |
set incsearch " search as characters are entered | |
set hlsearch " higlight matches | |
" FILES | |
let g:netrw_liststyle=3 | |
" MOVEMENT | |
" move vertically by visual line | |
nnoremap j gj | |
nnoremap k gk | |
" move to beginning/end of line | |
nnoremap B ^ | |
nnoremap E $ | |
" $/^ doesn't do anything | |
nnoremap $ <nop> | |
nnoremap ^ <nop> | |
" highlight last inserted text | |
nnoremap gV `[v`] | |
" Split movement | |
nmap <C-J> <C-W><C-J> | |
nmap <C-H> <C-W><C-H> | |
nmap <C-K> <C-W><C-K> | |
nmap <C-L> <C-W><C-L> | |
set splitbelow | |
set splitright | |
" LEADER SHORTCUTS | |
let mapleader=" " " leader is spapce | |
map <leader>k :Ex<cr> | |
inoremap jk <esc> " jk is escape | |
" CTRL-P | |
let g:ctrlp_match_window = 'bottom,order:ttb' | |
let g:ctrlp_switch_buffer = 0 | |
let g:ctrlp_working_path_mode = 0 | |
let g:ctrlp_user_command = 'ag %s -l --nocolor --hidden -g ""' | |
" FIXES | |
if &term =~ '256color' | |
" Disable backound color ease (bce) | |
set t_ut= | |
endif | |
" Make Ctrl-P faster | |
set wildignore+=node_modules,vendor,bower_components |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment