Skip to content

Instantly share code, notes, and snippets.

@erochest
Created September 12, 2012 19:58
Show Gist options
  • Save erochest/3709469 to your computer and use it in GitHub Desktop.
Save erochest/3709469 to your computer and use it in GitHub Desktop.
nnoremap <leader><leader> <c-^>
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" OPEN FILES IN DIRECTORY OF CURRENT FILE
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
cnoremap %% <C-R>=expand('%:h').'/'<cr>
map <leader>e :edit %%
map <leader>v :view %%
" Apparently, he no longer uses the trick where the window heights jump around,
" looking in his commit history and adding a few things, this appears to work.
set winheight=5
set winminheight=5
set winheight=999
nmap <c-w>j <c-w>j<c-w>_
nmap <c-w>k <c-w>k<c-w>_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment