Skip to content

Commit

Permalink
Another commit
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkirkbater committed May 3, 2019
1 parent 51a65be commit 5ad1acd
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 25 deletions.
2 changes: 2 additions & 0 deletions .gitignore_global
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
*.exe
*.o
*.so
__pycache__
.mypy_cache

# Packages #
############
Expand Down
41 changes: 16 additions & 25 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ set mouse=a
let g:jedi#documentation_command = ""

" Make ctrl+hjkl switch focus in that direction
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
nnoremap <down> <C-W><C-J>
nnoremap <up> <C-W><C-K>
nnoremap <right> <C-W><C-L>
nnoremap <left> <C-W><C-H>
" File
set undofile
Expand All @@ -79,7 +79,7 @@ syntax on
"NERDTree Stuff
map <C-o> :NERDTreeToggle<CR>
set wildignore+=*.pyc,*.o,*.obj,*.svn,*.swp,*.class,*.hg,*.DS_Store,*.min.*,__pycache__,.*_cache
set wildignore+=*.pyc,*.o,*.obj,*.svn,*.swp,*.class,*.hg,*.DS_Store,*.min.*,__pycache__,.*_cache,__init__.py,.terraform,.git
let NERDTreeRespectWildIgnore=1

let NERDTreeShowHidden=1
Expand Down Expand Up @@ -112,33 +112,19 @@ if has("autocmd")
\| exe "normal! g'\"" | endif
endif

""" Custom FileType Options
" Set a column at 81 chars for line width
" Python
au FileType python set omnifunc=pythoncomplete#Complete
au FileType python setlocal expandtab shiftwidth=4 tabstop=4 smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class,with colorcolumn=81 textwidth=79
au BufRead *.py set efm=%C\ %.%#,%A\ \ File\ \"%f\"\\,\ line\ %l%.%#,%Z%[%^\]%\\@=%m
let python_highlight_all = 1

" Add the virtualenv's site-packages to vim path
if has('python')
py << EOF
import os.path
import sys
import vim
if 'VIRTUAL_ENV' in os.environ:
project_base_dir = os.environ['VIRTUAL_ENV']
sys.path.insert(0, project_base_dir)
activate_this = os.path.join(project_base_dir, 'bin/activate_this.py')
execfile(activate_this, dict(__file__=activate_this))
EOF
endif

au BufNewFile,BufRead Jenkinsfile* setf groovy

au BufNewFile postmortem-*.md 0r ~/.vim/templates/postmortem-template.md

let g:terraform_fmt_on_save=1
autocmd FileType terraform setlocal shiftwidth=2 tabstop=2

autocmd Filetype gitcommit setlocal spell textwidth=72

autocmd Filetype sh setlocal shiftwidth=2 tabstop=2

" Triger `autoread` when files changes on disk
" https://unix.stackexchange.com/questions/149209/refresh-changed-content-of-file-opened-in-vim/383044#383044
" https://vi.stackexchange.com/questions/13692/prevent-focusgained-autocmd-running-in-command-line-editing-mode
Expand All @@ -152,3 +138,8 @@ autocmd FileChangedShellPost *
set rtp+=/Users/kirkbator/.local/lib/python3.6/site-packages/powerline/bindings/vim
set laststatus=2
set t_Co=256

" Remap delete to go to the null register
nnoremap d "_d
vnoremap d "_d
4 changes: 4 additions & 0 deletions .zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -96,3 +96,7 @@ test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell
bindkey "^U" backward-kill-line

export PATH="/Users/kirkbator/.local/share/virtualenvs/bot-VIPb9fAU/bin:/usr/local/opt/asdf/shims:/usr/local/opt/asdf/bin:/Users/kirkbator/local/bin:/Users/kirkbator/bin:/usr/local/bin:/Users/kirkbator/local/bin:/Users/kirkbator/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public/:/Users/kirkbator/.local/bin:/Users/kirkbator/local/bin:/Users/kirkbator/bin://Users/kirkbator/Projects/go/bin://Users/kirkbator/Projects/go/bin://Users/kirkbator/Projects/go/bin:/Users/kirkbator/.vimpkg/bin"

eval "$(hub alias -s)"

[ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh
2 changes: 2 additions & 0 deletions aliases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ alias stackmaster=stack_master
alias stack-master=stack_master
alias sm=stack_master
alias tf=terraform
alias tfqa='terraform workspace select qa'
alias tfprod='terraform workspace select production'

source /usr/local/bin/aws_zsh_completer.sh

Expand Down

0 comments on commit 5ad1acd

Please sign in to comment.