diff options
| author | Teddy Wing | 2014-09-10 15:36:31 -0400 | 
|---|---|---|
| committer | Teddy Wing | 2014-09-10 15:36:31 -0400 | 
| commit | c769a8c508c7e2668128a469dc4d5aea98f03706 (patch) | |
| tree | fa36a003e85e42ceb3509b6cc863e2ed4d3665f0 /vimrc | |
| parent | 05b39f8abb8182bf9968ce0729f0019f78f9d61e (diff) | |
| download | dotvim-c769a8c508c7e2668128a469dc4d5aea98f03706.tar.bz2 | |
vimrc: Add <leader>r mapping to reload current file
Typing `:e!` is fine and all but I want a quicker way to do it.
Diffstat (limited to 'vimrc')
| -rw-r--r-- | vimrc | 6 | 
1 files changed, 6 insertions, 0 deletions
| @@ -247,6 +247,9 @@  "   2014.07.06:  "       * Ignore `node_modules/` directory from Command-T.  " +"   2014.09.10: +"       * Add <leader>r mapping to reload the current file. +"  " Pathogen @@ -545,6 +548,9 @@ nnoremap <leader>of :execute '!open "' . expand('%:p:h') . '"'<cr>  " literally (as in "\<lt>cr>"), which is of course not what I wanted.  nnoremap <leader>hs $F<i<cr><esc>k0f>a<cr><tab><esc> +" Reload current file (reopen to see changed made outside of vim) +nnoremap <leader>r :edit!<cr> +  " Commands | 
