aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-08 16:07:33 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-08 16:07:33 +1200
commitaebe4e709584692a729ad3e3ee8fc07304f28507 (patch)
tree0677102d2477116a5042a38a47cbeb2209779e90 /vim
parentSeparate <Space> and <Backspace> maps (diff)
downloaddotfiles-aebe4e709584692a729ad3e3ee8fc07304f28507.tar.gz
dotfiles-aebe4e709584692a729ad3e3ee8fc07304f28507.zip
Add \R for filetype reloading
Diffstat (limited to 'vim')
-rw-r--r--vim/vimrc2
1 files changed, 2 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 9485921a..b0328af7 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -266,6 +266,8 @@ nnoremap <Bslash>p :<C-U>set paste! paste?<CR>
nnoremap <Bslash>q gqap
" \r reloads .vimrc
nnoremap <Bslash>r :<C-U>source $MYVIMRC<CR>
+" \R reloads filetype
+nnoremap <Bslash>R :<C-U>doautocmd filetypedetect BufRead<CR>
" \s toggles spell checking
nnoremap <Bslash>s :<C-U>setlocal spell! spell?<CR>
" \t shows current filetype