Update git & nvim config
This commit is contained in:
parent
70cc873155
commit
c5316344cd
2 changed files with 41 additions and 22 deletions
|
@ -21,3 +21,8 @@
|
||||||
[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)\"
|
||||||
|
|
|
@ -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>
|
|
||||||
|
|
Loading…
Reference in a new issue