diff --git a/gitignore b/gitignore
new file mode 100644
index 0000000..d772925
--- /dev/null
+++ b/gitignore
@@ -0,0 +1,3 @@
+*~
+*.swp
+*.swo
diff --git a/install.sh b/install.sh
index 4f51d38..919f03c 100755
--- a/install.sh
+++ b/install.sh
@@ -2,3 +2,6 @@
ln -s ~/.dotfiles/tmux.conf ~/.tmux.conf
ln -s ~/.dotfiles/zshrc ~/.zshrc
ln -s ~/.dotfiles/oh-my-zsh ~/.oh-my-zsh
+ln -s ~/.dotfiles/vimrc ~/.vimrc
+ln -s ~/.dotfiles/vim ~/.vim
+ln -s ~/.dotfiles/gitignore ~/.gitignore
diff --git a/tmux.conf b/tmux.conf
index ecbaff6..5dced2d 100644
--- a/tmux.conf
+++ b/tmux.conf
@@ -5,10 +5,10 @@ unbind C-b
set -g prefix C-a
#alt-arrow for switching panes
-bind -n M-h select-pane -L
-bind -n M-l select-pane -R
-bind -n M-k select-pane -U
-bind -n M-j select-pane -D
+bind -n M-k run-shell 'tmux-vim-select-pane -U'
+bind -n M-j run-shell 'tmux-vim-select-pane -D'
+bind -n M-h run-shell 'tmux-vim-select-pane -L'
+bind -n M-l run-shell 'tmux-vim-select-pane -R'
#notify when something happens in another windows
setw -g monitor-activity on
@@ -18,6 +18,9 @@ set -g visual-activity on
bind D source-file ~/.dotfiles/tmux/dev
bind G source-file ~/.dotfiles/tmux/git
+#add keybind to kill current tmux window
+bind X kill-window
+
#setup kill comnmand
bind k confirm kill-window
bind K confirm kill-server
diff --git a/tmux/dev b/tmux/dev
index 2f11a47..5ee8eea 100644
--- a/tmux/dev
+++ b/tmux/dev
@@ -7,12 +7,11 @@ split-window -h -c "$pane_current_path"
select-pane -t 0
-send-keys -t 0 'cd src' C-m
send-keys -t 0 'vim' C-m
send-keys -t 1 'cd src' C-m
send-keys -t 1 'clear' C-m
-send-keys -t 3 'tmux rename-window "Dev: $(basename $PWD)"' C-m
+send-keys -t 3 'tmux rename-window "$(basename $PWD)"' C-m
send-keys -t 3 'clear' C-m
send-keys -t 3 'git status' C-m
diff --git a/tmux/git b/tmux/git
index ae5b287..db48085 100644
--- a/tmux/git
+++ b/tmux/git
@@ -4,7 +4,7 @@ select-pane -t 0
send-keys -t 0 'vim' C-m
-send-keys -t 1 'tmux rename-window "Dev: $(basename)"' C-m
+send-keys -t 1 'tmux rename-window "$(basename $PWD)"' C-m
send-keys -t 1 'clear' C-m
send-keys -t 1 'git status' C-m
diff --git a/vim/.netrwhist b/vim/.netrwhist
new file mode 100644
index 0000000..e26aabb
--- /dev/null
+++ b/vim/.netrwhist
@@ -0,0 +1,5 @@
+let g:netrw_dirhistmax =10
+let g:netrw_dirhist_cnt =3
+let g:netrw_dirhist_1='/home/tim/.dotfiles'
+let g:netrw_dirhist_2='/home/tim/.dotfiles/tmux'
+let g:netrw_dirhist_3='/home/tim/Projects/Java/HelloWorld/src'
diff --git a/vim/autoload/pathogen.vim b/vim/autoload/pathogen.vim
new file mode 100644
index 0000000..a13ae08
--- /dev/null
+++ b/vim/autoload/pathogen.vim
@@ -0,0 +1,347 @@
+" pathogen.vim - path option manipulation
+" Maintainer: Tim Pope
+" Version: 2.3
+
+" Install in ~/.vim/autoload (or ~\vimfiles\autoload).
+"
+" For management of individually installed plugins in ~/.vim/bundle (or
+" ~\vimfiles\bundle), adding `execute pathogen#infect()` to the top of your
+" .vimrc is the only other setup necessary.
+"
+" The API is documented inline below.
+
+if exists("g:loaded_pathogen") || &cp
+ finish
+endif
+let g:loaded_pathogen = 1
+
+" Point of entry for basic default usage. Give a relative path to invoke
+" pathogen#interpose() (defaults to "bundle/{}"), or an absolute path to invoke
+" pathogen#surround(). Curly braces are expanded with pathogen#expand():
+" "bundle/{}" finds all subdirectories inside "bundle" inside all directories
+" in the runtime path.
+function! pathogen#infect(...) abort
+ for path in a:0 ? filter(reverse(copy(a:000)), 'type(v:val) == type("")') : ['bundle/{}']
+ if path =~# '^\%({\=[$~\\/]\|{\=\w:[\\/]\).*[{}*]'
+ call pathogen#surround(path)
+ elseif path =~# '^\%([$~\\/]\|\w:[\\/]\)'
+ call s:warn('Change pathogen#infect('.string(path).') to pathogen#infect('.string(path.'/{}').')')
+ call pathogen#surround(path . '/{}')
+ elseif path =~# '[{}*]'
+ call pathogen#interpose(path)
+ else
+ call s:warn('Change pathogen#infect('.string(path).') to pathogen#infect('.string(path.'/{}').')')
+ call pathogen#interpose(path . '/{}')
+ endif
+ endfor
+ call pathogen#cycle_filetype()
+ if pathogen#is_disabled($MYVIMRC)
+ return 'finish'
+ endif
+ return ''
+endfunction
+
+" Split a path into a list.
+function! pathogen#split(path) abort
+ if type(a:path) == type([]) | return a:path | endif
+ if empty(a:path) | return [] | endif
+ let split = split(a:path,'\\\@]','\\&','')
+ endif
+endfunction
+
+" Like findfile(), but hardcoded to use the runtimepath.
+function! pathogen#runtime_findfile(file,count) abort "{{{1
+ let rtp = pathogen#join(1,pathogen#split(&rtp))
+ let file = findfile(a:file,rtp,a:count)
+ if file ==# ''
+ return ''
+ else
+ return fnamemodify(file,':p')
+ endif
+endfunction
+
+" Section: Deprecated
+
+function! s:warn(msg) abort
+ echohl WarningMsg
+ echomsg a:msg
+ echohl NONE
+endfunction
+
+" Prepend all subdirectories of path to the rtp, and append all 'after'
+" directories in those subdirectories. Deprecated.
+function! pathogen#runtime_prepend_subdirectories(path) abort
+ call s:warn('Change pathogen#runtime_prepend_subdirectories('.string(a:path).') to pathogen#infect('.string(a:path.'/{}').')')
+ return pathogen#surround(a:path . pathogen#slash() . '{}')
+endfunction
+
+function! pathogen#incubate(...) abort
+ let name = a:0 ? a:1 : 'bundle/{}'
+ call s:warn('Change pathogen#incubate('.(a:0 ? string(a:1) : '').') to pathogen#infect('.string(name).')')
+ return pathogen#interpose(name)
+endfunction
+
+" Deprecated alias for pathogen#interpose().
+function! pathogen#runtime_append_all_bundles(...) abort
+ if a:0
+ call s:warn('Change pathogen#runtime_append_all_bundles('.string(a:1).') to pathogen#infect('.string(a:1.'/{}').')')
+ else
+ call s:warn('Change pathogen#runtime_append_all_bundles() to pathogen#infect()')
+ endif
+ return pathogen#interpose(a:0 ? a:1 . '/{}' : 'bundle/{}')
+endfunction
+
+if exists(':Vedit')
+ finish
+endif
+
+let s:vopen_warning = 0
+
+function! s:find(count,cmd,file,lcd)
+ let rtp = pathogen#join(1,pathogen#split(&runtimepath))
+ let file = pathogen#runtime_findfile(a:file,a:count)
+ if file ==# ''
+ return "echoerr 'E345: Can''t find file \"".a:file."\" in runtimepath'"
+ endif
+ if !s:vopen_warning
+ let s:vopen_warning = 1
+ let warning = '|echohl WarningMsg|echo "Install scriptease.vim to continue using :V'.a:cmd.'"|echohl NONE'
+ else
+ let warning = ''
+ endif
+ if a:lcd
+ let path = file[0:-strlen(a:file)-2]
+ execute 'lcd `=path`'
+ return a:cmd.' '.pathogen#fnameescape(a:file) . warning
+ else
+ return a:cmd.' '.pathogen#fnameescape(file) . warning
+ endif
+endfunction
+
+function! s:Findcomplete(A,L,P)
+ let sep = pathogen#slash()
+ let cheats = {
+ \'a': 'autoload',
+ \'d': 'doc',
+ \'f': 'ftplugin',
+ \'i': 'indent',
+ \'p': 'plugin',
+ \'s': 'syntax'}
+ if a:A =~# '^\w[\\/]' && has_key(cheats,a:A[0])
+ let request = cheats[a:A[0]].a:A[1:-1]
+ else
+ let request = a:A
+ endif
+ let pattern = substitute(request,'/\|\'.sep,'*'.sep,'g').'*'
+ let found = {}
+ for path in pathogen#split(&runtimepath)
+ let path = expand(path, ':p')
+ let matches = split(glob(path.sep.pattern),"\n")
+ call map(matches,'isdirectory(v:val) ? v:val.sep : v:val')
+ call map(matches,'expand(v:val, ":p")[strlen(path)+1:-1]')
+ for match in matches
+ let found[match] = 1
+ endfor
+ endfor
+ return sort(keys(found))
+endfunction
+
+command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Ve :execute s:find(,'edit',,0)
+command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vedit :execute s:find(,'edit',,0)
+command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vopen :execute s:find(,'edit',,1)
+command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vsplit :execute s:find(,'split',,1)
+command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vvsplit :execute s:find(,'vsplit',,1)
+command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vtabedit :execute s:find(,'tabedit',,1)
+command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vpedit :execute s:find(,'pedit',,1)
+command! -bar -bang -range=1 -nargs=1 -complete=customlist,s:Findcomplete Vread :execute s:find(,'read',,1)
+
+" vim:set et sw=2 foldmethod=expr foldexpr=getline(v\:lnum)=~'^\"\ Section\:'?'>1'\:getline(v\:lnum)=~#'^fu'?'a1'\:getline(v\:lnum)=~#'^endf'?'s1'\:'=':
diff --git a/vim/bundle/nerdtree b/vim/bundle/nerdtree
new file mode 160000
index 0000000..4f1e6ec
--- /dev/null
+++ b/vim/bundle/nerdtree
@@ -0,0 +1 @@
+Subproject commit 4f1e6ecb057fc0bac189171c1430d71ef25f6bb1
diff --git a/vim/bundle/vim-tmux-navigator b/vim/bundle/vim-tmux-navigator
new file mode 160000
index 0000000..3de98bf
--- /dev/null
+++ b/vim/bundle/vim-tmux-navigator
@@ -0,0 +1 @@
+Subproject commit 3de98bfcee1289ce8edc6daf9a18f243180c7168
diff --git a/vimrc b/vimrc
new file mode 100644
index 0000000..9041a7c
--- /dev/null
+++ b/vimrc
@@ -0,0 +1,10 @@
+execute pathogen#infect()
+syntax on
+filetype plugin indent on
+
+nnoremap :TmuxNavigateLeft
+nnoremap :TmuxNavigateDown
+nnoremap :TmuxNavigateUp
+nnoremap :TmuxNavigateRight
+
+map :NERDTreeToggle