From 2d9cf9b91aa63b269dd131e0e663e58a6debdf0d Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sat, 19 Jan 2019 10:04:41 -0200 Subject: Autocd and commit shortcut --- vimrc.dot.link | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vimrc.dot.link b/vimrc.dot.link index fae27eb..f09bcb7 100644 --- a/vimrc.dot.link +++ b/vimrc.dot.link @@ -25,6 +25,10 @@ set title 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 @@ -171,6 +175,7 @@ nmap s :OpenSession " We're closing the buffer instead of just the window to avoid slowness due to too many opened buffers nmap m :bd nmap w :w +nmap u :!up imap n :tabnew imap t :NERDTree imap t :T @@ -197,6 +202,7 @@ imap w :w "nmap s :OpenSession "map m :q! "map w :w +"map u :!up "imap n :tabnew "imap t :OpenNERDTree "imap q :wqa -- cgit v1.2.3