diff --git a/tmux.server.conf b/tmux.server.conf index b259be1..4bbd11d 100644 --- a/tmux.server.conf +++ b/tmux.server.conf @@ -32,7 +32,7 @@ bind -r h swap-window -t -1 bind -r l swap-window -t +1 # fixes redraw bugs -set -g default-terminal screen-256color +# set -g default-terminal screen-256color # splitting unbind % diff --git a/vimrc b/vimrc index b439ca9..cc5d9f9 100644 --- a/vimrc +++ b/vimrc @@ -77,13 +77,14 @@ nnoremap :let notabs=!notabs:if notabs:tabo:else :bn nnoremap :bp +nmap :wincmd k +nmap :wincmd j +nmap :wincmd h +nmap :wincmd l + " save with sudo cmap w!! w !sudo tee % -" never open first grep/ack hit -cmap ack Ack! -cmap grep grep! - " Setting up Vundle - the vim plugin bundler let iCanHazVundle=1 let vundle_readme=expand('~/.vim/bundle/vundle/README.md') @@ -105,41 +106,45 @@ if iCanHazVundle == 0 endif Bundle 'myusuf3/numbers.vim' + Bundle 'tpope/vim-fugitive' -Bundle 'Lokaltog/vim-easymotion' + Bundle 'kien/ctrlp.vim' + Bundle 'scrooloose/nerdtree' -nnoremap f :NERDTreeToggle -let NERDTreeShowBookmarks=1 +nnoremap :NERDTreeToggle let NERDTreeIgnore=['\.pyc', '\~$', '\.swo$', '\.swp$', '\.git', '\.hg', '\.svn', '\.bzr'] -let NERDTreeChDirMode=0 let NERDTreeQuitOnOpen=1 -let NERDTreeMouseMode=2 -let NERDTreeShowHidden=1 -let NERDTreeKeepTreeInNewTab=1 + Bundle 'tomtom/tcomment_vim' + Bundle 'vim-scripts/taglist.vim' noremap t :TlistToggle +noremap :TlistToggle let Tlist_Use_Right_Window=1 let Tlist_GainFocus_On_ToggleOpen = 1 + Bundle 'saltstack/salt-vim' +au BufRead,BufNewFile *.sls set filetype=sls + Bundle 'bling/vim-airline' let g:airline#extensions#tabline#enabled = 1 -let g:airline_left_sep = '' -let g:airline_right_sep = '' -let g:airline#extensions#tabline#fnamecollapse = 0 -let g:airline_exclude_preview=1 -Bundle 'goldfeld/vim-seek' -let g:seek_subst_disable = 1 -let g:seek_enable_jumps = 1 -let g:seek_enable_jumps_in_diff = 1 -Bundle 'davidhalter/jedi-vim' -let g:jedi#goto_assignments_command = "" -let g:jedi#use_tabs_not_buffers = 0 -let g:jedi#popup_on_dot = 1 -Bundle 'airblade/vim-gitgutter' -let g:gitgutter_enabled = 0 -noremap g :GitGutterToggle +set laststatus=2 + +Bundle 'bling/vim-bufferline' + +" Bundle 'davidhalter/jedi-vim' +" let g:jedi#use_tabs_not_buffers = 0 + Bundle 'ivyl/vim-bling' -Bundle 'mileszs/ack.vim' -au BufRead,BufNewFile *.sls set filetype=sls +" Bundle 'jmcantrell/vim-virtualenv' +Bundle 'ervandew/supertab' +Bundle 'rstacruz/sparkup' +" Bundle 'scrooloose/syntastic' +" Bundle 'vim-scripts/indentpython.vim' +Bundle 'klen/python-mode' +let g:pymode_folding = 0 + +Bundle 'altercation/vim-colors-solarized' +set background=dark +colorscheme solarized diff --git a/zshrc.local b/zshrc.local index 5aa4ad5..81fd8db 100644 --- a/zshrc.local +++ b/zshrc.local @@ -23,8 +23,13 @@ if [ -e "/home/asmaps/.rvm/scripts/rvm" ]; then fi # autostart tmux -if which tmux 2>&1 >/dev/null; then - test -z "$TMUX" && (tmux attach || tmux new-session) +if [ "$TMUX" = "" ]; then + export TERM=xterm-256color + if which tmux 2>&1 >/dev/null; then + tmux attach || tmux new-session + fi +else + export TERM=screen-256color fi if which xset 2>&1 >/dev/null; then