Created
September 12, 2012 19:58
-
-
Save erochest/3709469 to your computer and use it in GitHub Desktop.
Some vim maps from https://github.com/garybernhardt/dotfiles
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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