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] [user]
email = george@rawlinson.net.nz email = george@rawlinson.net.nz
name = George Rawlinson name = George Rawlinson
[core] [core]
# if $EDITOR not set, use this as editor # if $EDITOR not set, use this as editor
editor = nvim editor = nvim
# fix whitespace issues # fix whitespace issues
whitespace = fix, blank-at-eol, blank-at-eof, space-before-tab, trailing-space whitespace = fix, blank-at-eol, blank-at-eof, space-before-tab, trailing-space
[color] [color]
# automatically color output, except when piping # automatically color output, except when piping
ui = auto ui = auto
[color "status"] [color "status"]
# colours when using status command # colours when using status command
untracked = magenta untracked = magenta
changed = red changed = red
added = green added = green
[push] [push]
# push current branch instead of all # push current branch instead of all
default = simple 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 'chrisbra/sudoedit.vim'
Plug 'scrooloose/nerdtree' Plug 'scrooloose/nerdtree'
Plug 'scrooloose/nerdcommenter' Plug 'scrooloose/nerdcommenter'
Plug 'vim-syntastic/syntastic'
call plug#end() call plug#end()
@ -24,13 +25,24 @@ set shiftwidth=4
set expandtab set expandtab
"set softtabstop=4 "set softtabstop=4
" show tabs & trailing space " show tabs, trailing space & EOL
set listchars=tab:▸\ ,trail,eol set listchars=tab:▸\ ,trail,eol
set list 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 " vim-airline - monokai + powerline
let g:airline_theme='base16_monokai' let g:airline_theme='base16_monokai'
let g:airline_powerline_fonts = 1 let g:airline_powerline_fonts = 1
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tabline#fnamemod = ':t'
set laststatus=2 set laststatus=2
" configure vim-monokai with syntax highlighting " configure vim-monokai with syntax highlighting
@ -41,11 +53,13 @@ let g:load_doxygen_syntax=1
" enable filetype plugins " enable filetype plugins
filetype plugin on filetype plugin on
"use system clipboard " syntastic
set clipboard+=unnamedplus 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>