diff --git a/bash/.bashrc b/bash/.bashrc index e620385..4e8f7f8 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -32,5 +32,11 @@ export PATH=$GOPATH:$GOPATH/bin:$PATH export EDITOR=/usr/bin/vim [ -f ~/.fzf.bash ] && source ~/.fzf.bash -xrdb -merge /home/jon/.colors/codeschool.dark +#vi readline +set -o vi +#ctrl-x, ctrl-e to launch $EDITOR (vim) +bind -m vi-insert '"\C-x\C-e": edit-and-execute-command' + +#fix clear screen in vi mode +bind -m vi-insert "\C-l":clear-screen diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index ec1c43d..940568d 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -1,3 +1,8 @@ +#remove escape delay +set -s escape-time 0 + +set -g default-terminal "rxvt-unicode-256color" + #change C-b to Ca unbind C-b set-option -g prefix C-a @@ -31,7 +36,9 @@ set -g mode-keys vi if-shell '[ $(echo "$(tmux -V | cut -d" " -f2) >= 2.1" | bc) -eq 1 ]' \ 'set -g mouse on' \ 'set -g mode-mouse on; set -g mouse-resize-pane on; set -g mouse-select-pane on; set -g mouse-select-window on' -# 'set -g mouse on; set -g mouse-utf8 on' \ + +set -g mouse on +#'set -g mouse on; set -g mouse-utf8 on' \ bind-key Tab last-window bind-key BTab previous-window diff --git a/vim/.vim/.netrwhist b/vim/.vim/.netrwhist index 66efdea..5d389e8 100644 --- a/vim/.vim/.netrwhist +++ b/vim/.vim/.netrwhist @@ -1,5 +1,7 @@ let g:netrw_dirhistmax =10 -let g:netrw_dirhist_cnt =3 +let g:netrw_dirhist_cnt =5 let g:netrw_dirhist_1='/home/jon' let g:netrw_dirhist_2='/home/jon/.gnome' let g:netrw_dirhist_3='/home/jon' +let g:netrw_dirhist_4='/home/jon/dwm-6.1/.git' +let g:netrw_dirhist_5='/etc/X11/xorg.conf.d' diff --git a/vim/.vim/bundle/jedi-vim b/vim/.vim/bundle/jedi-vim index f07ff6a..48af2af 160000 --- a/vim/.vim/bundle/jedi-vim +++ b/vim/.vim/bundle/jedi-vim @@ -1 +1 @@ -Subproject commit f07ff6a5357c94418cec95e6f40b6ad2c580db65 +Subproject commit 48af2afd3ef06a61242d5c08a6357879ea639c36 diff --git a/vim/.vim/bundle/lightline.vim b/vim/.vim/bundle/lightline.vim index 41fb97e..78c43c1 160000 --- a/vim/.vim/bundle/lightline.vim +++ b/vim/.vim/bundle/lightline.vim @@ -1 +1 @@ -Subproject commit 41fb97e85b0386b976b39051de4f7eaa42ba6b2b +Subproject commit 78c43c144643e49c529a93b9eaa4eda12614f923 diff --git a/vim/.vim/bundle/nerdtree b/vim/.vim/bundle/nerdtree index 6188c5e..a0e49c9 160000 --- a/vim/.vim/bundle/nerdtree +++ b/vim/.vim/bundle/nerdtree @@ -1 +1 @@ -Subproject commit 6188c5ea5f6fd44e24768ccb889aaa739808d9f3 +Subproject commit a0e49c9b117d68dbc3e308b79529f8a3ab18e0f8 diff --git a/vim/.vim/bundle/syntastic b/vim/.vim/bundle/syntastic index d17b98c..2c02edd 160000 --- a/vim/.vim/bundle/syntastic +++ b/vim/.vim/bundle/syntastic @@ -1 +1 @@ -Subproject commit d17b98cff364730af34fd853fbbe4fbbae226a3d +Subproject commit 2c02edd174c60abc6e176dda8e03ccc3276dcb2c diff --git a/vim/.vim/bundle/targets.vim b/vim/.vim/bundle/targets.vim new file mode 160000 index 0000000..c173218 --- /dev/null +++ b/vim/.vim/bundle/targets.vim @@ -0,0 +1 @@ +Subproject commit c1732189c9ec29cc3320094304019ffcafadafc4 diff --git a/vim/.vim/bundle/vim-buftabline b/vim/.vim/bundle/vim-buftabline new file mode 160000 index 0000000..14d208b --- /dev/null +++ b/vim/.vim/bundle/vim-buftabline @@ -0,0 +1 @@ +Subproject commit 14d208b1fa5f4308383e3ce429d57c84423029f9 diff --git a/vim/.vim/bundle/vim-fugitive b/vim/.vim/bundle/vim-fugitive index b14434b..409b098 160000 --- a/vim/.vim/bundle/vim-fugitive +++ b/vim/.vim/bundle/vim-fugitive @@ -1 +1 @@ -Subproject commit b14434bae0357dd47b33f940c3a02510c44fbbe2 +Subproject commit 409b098c93bc7d8345b1de300f9e2b8c3dce2add diff --git a/vim/.vimrc b/vim/.vimrc index 4745d72..a148695 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -51,6 +51,13 @@ nnoremap nnoremap nnoremap nnoremap + +" use jj to escape insert mode +inoremap jj +inoremap jk +inoremap kj +nnoremap o + " use jk to escape insert mode - using easyescape plugin let g:easyescape_chars = { "j": 1, "k": 1 } let g:easyescape_timeout = 100 @@ -72,7 +79,7 @@ nnoremap za map :NERDTreeToggle "lightline colorscheme -let g:lightline = {'colorscheme': 'powerline',} +let g:lightline = {'colorscheme': 'jellybeans',} " set the runtime path to include Vundle and initialize set rtp+=~/.vim/bundle/Vundle.vim @@ -82,7 +89,6 @@ Plugin 'VundleVim/Vundle.vim' Plugin 'tpope/vim-fugitive' Plugin 'kien/ctrlp.vim' Plugin 'scrooloose/nerdtree' -"Plugin 'fholgado/minibufexpl.vim' Plugin 'tmhedberg/SimpylFold' Plugin 'vim-scripts/indentpython.vim' Plugin 'scrooloose/syntastic' @@ -94,6 +100,8 @@ Plugin 'taohex/lightline-buffer' Plugin 'itchyny/calendar.vim' Plugin 'davidhalter/jedi-vim' Plugin 'tpope/vim-surround' +Plugin 'ap/vim-buftabline' +Plugin 'wellle/targets.vim' Plugin 'junegunn/goyo.vim' Plugin 'zhou13/vim-easyescape'