From c769a8c508c7e2668128a469dc4d5aea98f03706 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 10 Sep 2014 15:36:31 -0400 Subject: vimrc: Add r mapping to reload current file Typing `:e!` is fine and all but I want a quicker way to do it. --- vimrc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'vimrc') 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 r mapping to reload the current file. +" " Pathogen @@ -545,6 +548,9 @@ nnoremap of :execute '!open "' . expand('%:p:h') . '"' " literally (as in "\cr>"), which is of course not what I wanted. nnoremap hs $Fk0f>a +" Reload current file (reopen to see changed made outside of vim) +nnoremap r :edit! + " Commands -- cgit v1.2.3