From c03818cc2158fb6d2c3a6bacc01e65ed5f77b4cb Mon Sep 17 00:00:00 2001 From: Joe Papperello Date: Mon, 19 Aug 2019 13:00:21 -0400 Subject: [PATCH] new stuff --- bashrc | 26 ++++++++++++++++++++++++++ gitconfig | 2 ++ vimrc | 17 +++++++---------- 3 files changed, 35 insertions(+), 10 deletions(-) diff --git a/bashrc b/bashrc index a666557..b45760f 100644 --- a/bashrc +++ b/bashrc @@ -129,3 +129,29 @@ function toggle-agent { ssh-add -l } + +qq() { + clear + + logpath="$TMPDIR/q" + if [[ -z "$TMPDIR" ]]; then + logpath="/tmp/q" + fi + + if [[ ! -f "$logpath" ]]; then + echo 'Q LOG' > "$logpath" + fi + + tail -100f -- "$logpath" +} + +rmqq() { + logpath="$TMPDIR/q" + if [[ -z "$TMPDIR" ]]; then + logpath="/tmp/q" + fi + if [[ -f "$logpath" ]]; then + rm "$logpath" + fi + qq +} diff --git a/gitconfig b/gitconfig index e474a6b..3359738 100644 --- a/gitconfig +++ b/gitconfig @@ -11,3 +11,5 @@ currentbranch = rev-parse --abbrev-ref HEAD [rerere] enabled = true +[url "ssh://git@github.com/"] + insteadOf = https://github.com/ diff --git a/vimrc b/vimrc index 0b2c927..8cf596a 100644 --- a/vimrc +++ b/vimrc @@ -49,8 +49,8 @@ filetype plugin indent on set expandtab set tabstop=4 set shiftwidth=4 -autocmd FileType html setlocal tabstop=2 -autocmd FileType html setlocal shiftwidth=2 +autocmd FileType html,yaml,json setlocal tabstop=2 +autocmd FileType html,yaml,json setlocal shiftwidth=2 " Dont expand tabs in makefiles autocmd FileType make set noexpandtab @@ -162,6 +162,7 @@ nnoremap ; : nnoremap 0 ^ nnoremap f :Gitag nnoremap * :Gitag +nnoremap t :SyntasticToggle autocmd FileType go setlocal omnifunc=go#complete#Complete " w!! will save file with sudo @@ -271,12 +272,11 @@ au FileType go nmap dt (go-def-tab) au FileType go nmap i (go-info) au FileType go nmap gd (go-doc) au FileType go nmap b (go-build) +au FileType go nmap l :%s/\s*q.Q(.*$\n//g map :lne map :lp "let g:go_auto_type_info = 1 "set updatetime=100 -au FileType go iabbrev _brdoes r *http.Request, results *validation.ValidatedResults) error { -au FileType go iabbrev _brhandler w http.ResponseWriter, r *http.Request, results *validation.ValidatedResults) (*api.Return, error) { let g:go_highlight_types = 1 let g:go_highlight_functions = 1 let g:go_highlight_methods = 1 @@ -296,6 +296,9 @@ let g:syntastic_check_on_wq = 0 let g:syntastic_javascript_checkers = ['jshint'] let g:syntastic_html_tidy_exec = 'tidy' let g:syntastic_html_tidy_ignore_errors = [ 'is not recognized', 'proprietary attribute' ] +let g:syntastic_yaml_checkers = ['yamllint'] +let g:syntastic_yaml_yamllint_quiet_messages = {"regex" : 'missing document start\|line too long\|too many spaces inside braces'} + " Reccommendation of when using syntastic with vimgo to prevent lag @@ -310,10 +313,4 @@ let g:GPGDefaultRecipients=['0x059BE1E2A99DA7EB'] augroup GPGFile nmap Q qi augroup END - -" For working with creds file -augroup CredFile - au! BufRead,BufNewFile,BufEnter creds.yml.asc nmap o 0f:w"+y$0yt::vs ../sf-deploy-application/".aes -augroup END - " vim: set fdm=marker: