Skip to content

Commit

Permalink
new stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
jpapperello-asapp committed Aug 19, 2019
1 parent ec3e4d7 commit c03818c
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 10 deletions.
26 changes: 26 additions & 0 deletions bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
2 changes: 2 additions & 0 deletions gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,5 @@
currentbranch = rev-parse --abbrev-ref HEAD
[rerere]
enabled = true
[url "ssh://[email protected]/"]
insteadOf = https://github.com/
17 changes: 7 additions & 10 deletions vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -162,6 +162,7 @@ nnoremap ; :
nnoremap 0 ^
nnoremap <Leader>f :Gitag
nnoremap <Leader>* :Gitag <cword><CR>
nnoremap <Leader>t :SyntasticToggle<CR>
autocmd FileType go setlocal omnifunc=go#complete#Complete

" w!! will save file with sudo
Expand Down Expand Up @@ -271,12 +272,11 @@ au FileType go nmap <Leader>dt <Plug>(go-def-tab)
au FileType go nmap <Leader>i <Plug>(go-info)
au FileType go nmap <Leader>gd <Plug>(go-doc)
au FileType go nmap <leader>b <Plug>(go-build)
au FileType go nmap <Leader>l :%s/\s*q.Q(.*$\n//g<CR>
map <C-n> :lne<CR>
map <C-m> :lp<CR>
"let g:go_auto_type_info = 1
"set updatetime=100
au FileType go iabbrev _brdoes r *http.Request, results *validation.ValidatedResults) error {<CR>
au FileType go iabbrev _brhandler w http.ResponseWriter, r *http.Request, results *validation.ValidatedResults) (*api.Return, error) {<CR>
let g:go_highlight_types = 1
let g:go_highlight_functions = 1
let g:go_highlight_methods = 1
Expand All @@ -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
Expand All @@ -310,10 +313,4 @@ let g:GPGDefaultRecipients=['0x059BE1E2A99DA7EB']
augroup GPGFile
nmap <silent> <C-W>Q <C-W>qi
augroup END

" For working with creds file
augroup CredFile
au! BufRead,BufNewFile,BufEnter creds.yml.asc nmap <Leader>o 0f:w"+y$0yt::vs ../sf-deploy-application/<C-r>".aes<CR>
augroup END

" vim: set fdm=marker:

0 comments on commit c03818c

Please sign in to comment.