X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/66d422f3c90637b880fb14d9d287ac63c053bc7a..3c22fe5c28e8f2e06bc608be2d78b580ffd2fefb:/vim/vimrc diff --git a/vim/vimrc b/vim/vimrc index 6bd7ead..5b6fa65 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -53,6 +53,7 @@ Plug 'valloric/youcompleteme', { 'do': './install.py --clang-completer' } Plug 'vim-scripts/mediawiki.vim' Plug 'vim-scripts/replacewithregister' Plug 'vim-scripts/yankring.vim' +Plug 'wincent/loupe' " colorschemes Plug 'morhetz/gruvbox' @@ -68,13 +69,7 @@ Plug 'sgur/vim-textobj-parameter' Plug 'kana/vim-operator-user' " staging -" find an alternative (latex-box? Automatic Latex Plugin?) -Plug 'vim-latex/vim-latex' -Plug 'alx741/vinfo' -" needs editing colorscheme -" Plug 'jeaye/color_coded' " Check LucHermites plugins: https://github.com/LucHermitte/lh-cpp -Plug 'wincent/loupe' call plug#end() @@ -342,8 +337,21 @@ augroup END map " make -nnoremap r :make! -nnoremap :make! +function! Make() + let l:make_dir = "" + if exists("b:make_dir") + let l:make_dir = "-C ".b:make_dir + elseif exists("g:make_dir") + let l:make_dir = "-C ".g:make_dir + endif + + let l:make_targets = "" + if exists("g:make_targets") + let l:make_targets = g:make_targets + endif + execute "make! ".l:make_dir." ".l:make_targets +endf +nnoremap r :call Make() " unhighlight search nnoremap / :silent nohl @@ -421,8 +429,8 @@ cnoremap cnoremap " proper movement when lines are wrapped -noremap j (v:count == 0 ? 'gj' : 'j') -noremap k (v:count == 0 ? 'gk' : 'k') +noremap j (v:count == 0 ? 'gj' : 'j') +noremap k (v:count == 0 ? 'gk' : 'k') " disable arrows noremap @@ -736,11 +744,6 @@ nnoremap tu :GTestRunUnderCursor " vim-json {{{2 let g:vim_json_syntax_conceal = 0 -" vim-latex {{{2 -let g:tex_flavor='latex' -let g:Tex_DefaultTargetFormat='pdf' -let g:Tex_MultipleCompileFormats='pdf' - " vim-sneak {{{2 let g:sneak#streak = 1 let g:sneak#target_labels = "aoeuisnthdpylrcgfqjkxzmwvz" " dvorak