Update git & nvim config

This commit is contained in:
George Rawlinson 2016-11-22 09:51:48 +13:00
parent 70cc873155
commit c5316344cd
2 changed files with 41 additions and 22 deletions

View file

@ -1,23 +1,28 @@
[user]
email = george@rawlinson.net.nz
name = George Rawlinson
email = george@rawlinson.net.nz
name = George Rawlinson
[core]
# if $EDITOR not set, use this as editor
editor = nvim
# fix whitespace issues
whitespace = fix, blank-at-eol, blank-at-eof, space-before-tab, trailing-space
# if $EDITOR not set, use this as editor
editor = nvim
# fix whitespace issues
whitespace = fix, blank-at-eol, blank-at-eof, space-before-tab, trailing-space
[color]
# automatically color output, except when piping
ui = auto
# automatically color output, except when piping
ui = auto
[color "status"]
# colours when using status command
untracked = magenta
changed = red
added = green
# colours when using status command
untracked = magenta
changed = red
added = green
[push]
# push current branch instead of all
default = simple
# push current branch instead of all
default = simple
[alias]
# you really think i use this? no. it's an example.
# source - https://github.com/ngerakines/commitment
yolo = !git commit -m \"$(curl -s whatthecommit.com/index.txt)\"

View file

@ -9,6 +9,7 @@ Plug 'tpope/vim-sensible'
Plug 'chrisbra/sudoedit.vim'
Plug 'scrooloose/nerdtree'
Plug 'scrooloose/nerdcommenter'
Plug 'vim-syntastic/syntastic'
call plug#end()
@ -24,13 +25,24 @@ set shiftwidth=4
set expandtab
"set softtabstop=4
" show tabs & trailing space
" show tabs, trailing space & EOL
set listchars=tab:▸\ ,trail,eol
set list
"use system clipboard
set clipboard+=unnamedplus
" disable UDLR keys (prefer HJKL)
noremap <Up> <NOP>
noremap <Down> <NOP>
noremap <Left> <NOP>
noremap <Right> <NOP>
" vim-airline - monokai + powerline
let g:airline_theme='base16_monokai'
let g:airline_powerline_fonts = 1
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tabline#fnamemod = ':t'
set laststatus=2
" configure vim-monokai with syntax highlighting
@ -41,11 +53,13 @@ let g:load_doxygen_syntax=1
" enable filetype plugins
filetype plugin on
"use system clipboard
set clipboard+=unnamedplus
" syntastic
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
" checkers
let g:syntastic_c_checkers = ['gcc', 'cppcheck']
let g:syntastic_cpp_checkers = ['gcc', 'cppcheck']
let g:syntastic_javascript_checkers = ['eslint']
" disable UDLR keys (prefer HJKL)
noremap <Up> <NOP>
noremap <Down> <NOP>
noremap <Left> <NOP>
noremap <Right> <NOP>