aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-08-22 22:21:16 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-08-22 22:21:25 +1200
commit411f2ae54847a0008138a5b3c4b5e2279b3b6f93 (patch)
tree9006690492a5647482b0f2165e4142552004d26c
parent8ffac1827b02e27f03399b30c7a90929aaeb7ca9 (diff)
downloaddotfiles-411f2ae54847a0008138a5b3c4b5e2279b3b6f93.tar.gz
dotfiles-411f2ae54847a0008138a5b3c4b5e2279b3b6f93.zip
Adjust mappings for reloading vimrc and filetype
This is to make room for a new \r mapping, shortly.
-rw-r--r--vim/vimrc8
1 files changed, 4 insertions, 4 deletions
diff --git a/vim/vimrc b/vim/vimrc
index c59e118e..faaa438c 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -265,6 +265,8 @@ nnoremap <Bslash>D :read !date -u<CR>
nnoremap <Bslash>e :<C-U>setlocal modifiable noreadonly<CR>
" \f shows the current 'formatoptions' at a glance
nnoremap <Bslash>f :<C-U>setlocal formatoptions?<CR>
+" \F reloads filetype
+nnoremap <Bslash>F :<C-U>doautocmd filetypedetect BufRead<CR>
" \g changes directory to the current file's location
nnoremap <Bslash>g :<C-U>cd %:h<CR>:pwd<CR>
" \h toggles highlighting search results
@@ -295,10 +297,8 @@ nmap <Bslash>O <Plug>(PasteOpenAbove)
nnoremap <Bslash>p :<C-U>set paste! paste?<CR>
" \q formats the current paragraph
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>
+" \R reloads ~/.vimrc
+nnoremap <Bslash>R :<C-U>source $MYVIMRC<CR>
" \s toggles spell checking
nnoremap <Bslash>s :<C-U>setlocal spell! spell?<CR>
" \t shows current filetype