Created
March 5, 2016 12:39
-
-
Save lasagnaphil/5aa9fab94e73992e2002 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
execute pathogen#infect() | |
" Colors | |
syntax enable | |
set background=dark | |
" colorscheme base16-default | |
" Spaces & Tabs | |
set shiftwidth=4 | |
set tabstop=4 | |
set softtabstop=4 | |
set expandtab | |
set smarttab | |
set ai | |
set si | |
" UI Config | |
set number | |
filetype indent on | |
set wildmenu | |
set showmatch | |
" Display status line always | |
set statusline=2 | |
set laststatus=2 | |
set ttimeoutlen=50 | |
" Searching | |
set incsearch | |
set hlsearch | |
nnoremap <leader><space> :nohlsearch<CR> | |
" Folding | |
set foldenable | |
set foldlevelstart=10 | |
set foldnestmax=10 | |
nnoremap <space> za | |
" Movement | |
nnoremap j gj | |
nnoremap k gk | |
nnoremap gV `[v`] | |
" Leader Shortcuts | |
let mapleader = "," | |
" Duh. | |
inoremap jk <Esc> | |
" Better split navigation | |
nnoremap <C-J> <C-W><C-J> | |
nnoremap <C-K> <C-W><C-K> | |
nnoremap <C-L> <C-W><C-L> | |
nnoremap <C-H> <C-W><C-H> | |
" Disable arrow keys | |
nnoremap <Left> :echoe "Use h"<CR> | |
nnoremap <Right> :echoe "Use l"<CR> | |
nnoremap <Up> :echoe "Use k"<CR> | |
nnoremap <Down> :echoe "Use j"<CR> | |
" More natural split opening | |
set splitbelow | |
set splitright | |
" NERDTree | |
map <C-n> :NERDTreeToggle<CR> | |
let NERDTreeIgnore=['\.meta$','\~$'] | |
" CtrlP | |
let g:ctrlp_map = '<c-p>' | |
let g:ctrlp_cmd = 'CtrlP' | |
let g:ctrlp_working_path_mode = 'ra' | |
let g:ctrlp_user_command = ['.git/', 'git --git-dir=%s/.git ls-files -oc --exclude-standard'] | |
let g:ctrlp_buffer_func = { 'enter': 'BrightHighlightOn', 'exit': 'BrightHighlightOff', } | |
function BrightHighlightOn() | |
hi CursorLine guibg=darkred | |
endfunction | |
function BrightHighlightOff() | |
hi CursorLine guibg=#191919 | |
endfunction | |
" Completion menu color settings | |
highlight Pmenu ctermfg=15 ctermbg=0 guifg=#ffffff guibg=#000000 | |
" Syntastic | |
set statusline+=%#warningmsg# | |
set statusline+=%{SyntasticStatuslineFlag()} | |
set statusline+=%* | |
let g:syntastic_always_populate_loc_list = 1 | |
let g:syntastic_auto_loc_list = 1 | |
let g:syntastic_check_on_open = 1 | |
let g:syntastic_check_on_wq = 0 | |
" Airline | |
let g:airline_enable_syntastic = 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment