Skip to content

Instantly share code, notes, and snippets.

@jasonm
Created July 23, 2013 17:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jasonm/6064237 to your computer and use it in GitHub Desktop.
Save jasonm/6064237 to your computer and use it in GitHub Desktop.
" Opens an edit command with the path of the currently edited file filled in
" Normal mode: <Leader>e
map <Leader>e :e <C-R>=escape(expand("%:p:h"), ' ') . "/" <CR>
" Opens a tab edit command with the path of the currently edited file filled in
" Normal mode: <Leader>te
map <Leader>te :tabe <C-R>=escape(expand("%:p:h"), ' ') . "/" <CR>
" Opens a vsplit command with the path of the currently edited file filled in
" Normal mode: <Leader>ve
map <Leader>vs :vsplit <C-R>=expand("%:p:h") . "/" <CR>
" Maps autocomplete to tab
imap <Tab> <C-P>
" No Help, please
nmap <F1> <Esc>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment