Permalink
Browse files

Add new command for switching to file in directory above current one

  • Loading branch information...
1 parent c332f4c commit 09af9068eaaa9da821602852d5c3764d4e786924 @timmow committed Aug 30, 2011
Showing with 5 additions and 1 deletion.
  1. +4 −0 _vimrc
  2. +1 −1 vimfiles/bundle/pathogen
View
4 _vimrc
@@ -234,3 +234,7 @@ set hl+=l:IncSearch
nmap <F8> :set hls!<bar>set hls?<CR>
nmap `n :tabn<CR>
nmap `p :tabp<CR>
+
+" Command will cd to the same file in a directory above the current. Useful
+" for comparing release branch to trunk when in separate checkouts
+command -nargs=1 Eother exec 'edit '. '../' . substitute(expand('%:p'), getcwd(), <q-args>, '')

0 comments on commit 09af906

Please sign in to comment.