diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-08-22 22:21:16 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-08-22 22:21:25 +1200 |
commit | 411f2ae54847a0008138a5b3c4b5e2279b3b6f93 (patch) | |
tree | 9006690492a5647482b0f2165e4142552004d26c /vim | |
parent | Fix a munted sentence (diff) | |
download | dotfiles-411f2ae54847a0008138a5b3c4b5e2279b3b6f93.tar.gz dotfiles-411f2ae54847a0008138a5b3c4b5e2279b3b6f93.zip |
Adjust mappings for reloading vimrc and filetype
This is to make room for a new \r mapping, shortly.
Diffstat (limited to 'vim')
-rw-r--r-- | vim/vimrc | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |