aboutsummaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
authorTeddy Wing2014-09-10 15:36:31 -0400
committerTeddy Wing2014-09-10 15:36:31 -0400
commitc769a8c508c7e2668128a469dc4d5aea98f03706 (patch)
treefa36a003e85e42ceb3509b6cc863e2ed4d3665f0 /vimrc
parent05b39f8abb8182bf9968ce0729f0019f78f9d61e (diff)
downloaddotvim-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--vimrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index 8a9e0d7..c14c35b 100644
--- a/vimrc
+++ b/vimrc
@@ -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