From c5316344cd8b46efdfa65923bbf08f84b93570ec Mon Sep 17 00:00:00 2001 From: George Rawlinson Date: Tue, 22 Nov 2016 09:51:48 +1300 Subject: [PATCH] Update git & nvim config --- git/.config/git/config | 33 +++++++++++++++++++-------------- nvim/.config/nvim/init.vim | 30 ++++++++++++++++++++++-------- 2 files changed, 41 insertions(+), 22 deletions(-) diff --git a/git/.config/git/config b/git/.config/git/config index 387040f..dba7bbd 100644 --- a/git/.config/git/config +++ b/git/.config/git/config @@ -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)\" diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index ce7184c..0967b18 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -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 +noremap +noremap +noremap + " 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 -noremap -noremap -noremap