From 9767cdd72477f95b08491243f6fa41252e5d97aa Mon Sep 17 00:00:00 2001 From: Michael Campagnaro Date: Mon, 21 Aug 2017 14:26:22 -0400 Subject: [PATCH] Update vimrc --- vim/spell/en.utf-8.add | 1 + vim/spell/en.utf-8.add.spl | Bin 1540 -> 1544 bytes vim/templates/c_header_notice | 5 ++--- vimrc | 20 +++++++++++++++----- 4 files changed, 18 insertions(+), 8 deletions(-) diff --git a/vim/spell/en.utf-8.add b/vim/spell/en.utf-8.add index 733ed79..684e4a3 100644 --- a/vim/spell/en.utf-8.add +++ b/vim/spell/en.utf-8.add @@ -127,3 +127,4 @@ bootable virtualized VM multithreading +toolsets diff --git a/vim/spell/en.utf-8.add.spl b/vim/spell/en.utf-8.add.spl index c9558aa395de4b3db6cb83b1a2f2871da3f58e6a..998fe888ee1333f19a5715cf549da6f472aeb869 100644 GIT binary patch delta 37 scmZqS>EPiD^Ykq)NX^MH`p>|?{Cp$dM;6Xv##BZ|2BwIT#Vo9h0NiW}Z2$lO delta 33 ocmeC+Y2o1u^Ykq)NX^MH`p>|?{CFeZM;2B_21c#o#T=}R0I*yMUjP6A diff --git a/vim/templates/c_header_notice b/vim/templates/c_header_notice index 6988711..c8bf46e 100644 --- a/vim/templates/c_header_notice +++ b/vim/templates/c_header_notice @@ -1,7 +1,6 @@ -/*======================================================================================= +/*================================================================================================== File: Creation Date: - Last Modified: Creator: Michael Campagnaro Notice: (C) Copyright $year by Jelly Pixel, Inc. All Rights Reserved. - =======================================================================================*/ + ================================================================================================*/ diff --git a/vimrc b/vimrc index 640df15..9cf55db 100644 --- a/vimrc +++ b/vimrc @@ -62,6 +62,7 @@ Plug 'tpope/vim-obsession' " Continuously updated session files Plug 'tpope/vim-fugitive' " Git wrapper Plug 'tpope/vim-classpath' " TODO: still need this? Plug 'junegunn/goyo.vim' " Distraction-free mode with centered buffer +Plug 'fedorenchik/VimCalc3' " Automatically discover and 'properly' update ctags files on save Plug 'craigemery/vim-autotag' @@ -325,9 +326,9 @@ augroup campoCmds " C/C++ template autocmd bufnewfile *.{c,cc,cpp,h,hpp} 0r ~/.vim/templates/c_header_notice - autocmd bufnewfile *.{c,cc,cpp,h,hpp} exe "2," . 7 . "g/File:.*/s//File: " .expand("%") - autocmd bufnewfile *.{c,cc,cpp,h,hpp} exe "2," . 7 . "g/Creation Date:.*/s//Creation Date: " .strftime("%Y-%m-%d") - autocmd bufnewfile *.{c,cc,cpp,h,hpp} exe "2," . 7 . "g/$year/s//" .strftime("%Y") + autocmd bufnewfile *.{c,cc,cpp,h,hpp} exe "2," . 6 . "g/File:.*/s//File: " .expand("%") + autocmd bufnewfile *.{c,cc,cpp,h,hpp} exe "2," . 6 . "g/Creation Date:.*/s//Creation Date: " .strftime("%Y-%m-%d") + autocmd bufnewfile *.{c,cc,cpp,h,hpp} exe "2," . 6 . "g/$year/s//" .strftime("%Y") function! s:InsertHeaderGates() let gatename = substitute(toupper(expand("%:t")), "\\.", "_", "g") execute "normal! ggO#ifndef " . gatename @@ -744,19 +745,28 @@ function! HideBuildResultsAndClearErrors() call asyncrun#quickfix_toggle(g:build_window_size, 0) endfunction +function! HideAsyncResults() + call asyncrun#quickfix_toggle(g:build_window_size, 0) +endfunction + function! ToggleBuildResults() call asyncrun#quickfix_toggle(g:build_window_size) endfunction function! StopRunTask() AsyncStop - call asyncrun#quickfix_toggle(g:build_window_size, 0) + call HideAsyncResults() endfunction function! ExecuteRunScript() exec "AsyncRun! -post=call\\ StopRunTask() ./run" endfunction +function! SilentBuild() + AsyncStop + exec "AsyncRun! -save=2 -post=call\\ HideAsyncResults() ./build*" +endfunction + " Show results window the moment the async job starts augroup vimrc autocmd User AsyncRunStart call asyncrun#quickfix_toggle(g:build_window_size, 1) @@ -771,7 +781,7 @@ noremap :call HideBuildResultsAndClearErrors() " Execute build script nnoremap b :AsyncRun! -save=2 ./build* -nnoremap :AsyncRun! -save=2 ./build* +nnoremap :call SilentBuild() " Execute run script nnoremap br :call ExecuteRunScript()