set titleold="terminal"
set titlestring=vim:\ %F
+" See http://vim.wikia.com/wiki/Set_working_directory_to_the_current_file
+"set autochdir
+autocmd BufEnter * silent! lcd %:p:h
+
" Thanks to http://stackoverflow.com/questions/1673649/vimrc-action-onclose
function! ResetTitle(title)
" disable vim's ability to set the title
" We're closing the buffer instead of just the window to avoid slowness due to too many opened buffers
nmap <ESC>m :bd<CR>
nmap <ESC>w :w<CR>
+nmap <ESC>u :!up<CR>
imap <ESC>n <ESC>:tabnew<CR>
imap <ESC>t <ESC>:NERDTree
imap <ESC>t <ESC>:T
"nmap \es :OpenSession
"map \em :q!<CR>
"map \ew :w<CR>
+"map \eu :!up<CR>
"imap \en <ESC>:tabnew<CR>
"imap \et <ESC>:OpenNERDTree<CR>
"imap \eq <ESC>:wqa<CR>