aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-08-01 20:19:46 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-08-01 20:19:46 +1200
commit65a7e87b08ac97127d19b6faae8833e5ed8ac2de (patch)
tree08d2dccdf76c3371257af1fb8e9abec47453d8b2 /vim/vimrc
parentCheck for existence of +completeopt (diff)
downloaddotfiles-65a7e87b08ac97127d19b6faae8833e5ed8ac2de.tar.gz
dotfiles-65a7e87b08ac97127d19b6faae8833e5ed8ac2de.zip
Add leader mappings for < and >
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index b78160dd..05b15e03 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -298,6 +298,10 @@ nnoremap <Bslash>+ :<C-U>call vimrc#Anchor('1GgqG')<CR>
" \. runs the configured make program into the location list
nnoremap <Bslash>. :<C-U>lmake!<CR>
+" \< and \> adjusts indent of last edit; good for pasting
+nnoremap <Bslash>< :<C-U>'[,']<<CR>
+nnoremap <Bslash>> :<C-U>'[,']><CR>
+
" \DEL deletes the current buffer
nnoremap <Bslash><Delete> :bdelete<CR>
" \INS edits a new buffer