summaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2018-03-09 11:50:08 +0000
committerUrbain Vaes <urbain@vaes.uk>2018-03-09 11:50:08 +0000
commit894acaf723f75b7ff70f184e16a7c6d1da2e2917 (patch)
treef986a83062ad08856d5d81fcf77750aa2647f276 /vim
parentbb625123d1f09c6f87eba1266fede3a66d3f1e87 (diff)
parentb0b11a1d6b0280c012c750dcaa9bb5d1b7160c12 (diff)
Merge branch 'master' of urbainvaes.com:public/dotfiles
Diffstat (limited to 'vim')
-rw-r--r--vim/.vimrc15
1 files changed, 15 insertions, 0 deletions
diff --git a/vim/.vimrc b/vim/.vimrc
index 20c0688..fdfbc2a 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -16,6 +16,7 @@ Plug 'PotatoesMaster/i3-vim-syntax'
Plug 'SirVer/ultisnips'
Plug 'airblade/vim-gitgutter'
Plug 'AndrewRadev/splitjoin.vim'
+Plug 'arcticicestudio/nord-vim'
Plug 'beloglazov/vim-online-thesaurus'
Plug 'christoomey/vim-tmux-navigator'
Plug 'critiqjo/lldb.nvim'
@@ -159,6 +160,13 @@ nnoremap gm :Neomake!<cr>
if &runtimepath =~ 'neomake'
call neomake#configure#automake('w')
endif
+
+let g:neomake_gcc_args=[
+ \ '-Wall',
+ \ '-Wextra',
+ \ '-Wpedantic',
+ \ '-I.', '-I..', '-I../..'
+ \ ]
" }}}
"" Plugin configurations {{{
@@ -335,6 +343,10 @@ nnoremap <silent> ]b :BufSurfForward<cr>
nnoremap <silent> [B :BufSurfBack<cr>:bd! #<cr>
nnoremap <silent> ]B :BufSurfForward<cr>:bd! #<cr>
+" Alternate file
+nnoremap <bs> <c-^>
+
+" Source current file
nnoremap ,s :source %<cr>
" }}}
@@ -356,6 +368,8 @@ function! MyColo(colorscheme)
call SaveColo("dark","solarized","solarized")
elseif a:colorscheme == "seoul"
call SaveColo("dark","seoul256","deus")
+ elseif a:colorscheme == "nord"
+ call SaveColo("dark","nord","nord")
endif
endfunction
if filereadable($HOME."/.local/colors.vim")
@@ -365,6 +379,7 @@ nnoremap ,c :call MyColo("")<Left><Left>
nnoremap ,cl :call MyColo("solarized-light")<cr>
nnoremap ,cd :call MyColo("solarized-dark")<cr>
nnoremap ,cs :call MyColo("seoul")<cr>
+nnoremap ,cn :call MyColo("nord")<cr>
" }}}
"" Autocommands {{{
augroup vimrc