aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-06 00:49:16 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-06 00:49:16 +1200
commit36f86684f4645c171e3d6fbf072aaafe11eaa6c1 (patch)
treeed037d672e645c2f19e4bd8e6baad24730abb53b
parentDisable 'shiftround' in Vim for a while (diff)
downloaddotfiles-36f86684f4645c171e3d6fbf072aaafe11eaa6c1.tar.gz
dotfiles-36f86684f4645c171e3d6fbf072aaafe11eaa6c1.zip
Add \k, \q, and \y .vimrc mappings
Using all of the lowercase alphabet now.
-rw-r--r--vim/vimrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 361c049e..fe7e3a6c 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -238,6 +238,8 @@ nnoremap <Bslash>h :<C-U>set hlsearch! hlsearch?<CR>
nnoremap <Bslash>i :<C-U>set incsearch! incsearch?<CR>
" \j jumps to buffers (jetpack)
nnoremap <Bslash>j :<C-U>buffers<CR>:buffer<Space>
+" \k shows my marks
+nnoremap <Bslash>k :<C-U>marks<CR>
" \l toggles showing tab, end-of-line, and trailing whitespace
nnoremap <Bslash>l :<C-U>set list! list?<CR>
" \m shows all maps
@@ -252,6 +254,8 @@ nmap <Bslash>o <Plug>PasteOpenBelow
nmap <Bslash>O <Plug>PasteOpenAbove
" \p toggles paste mode
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>
" \s toggles spell checking
@@ -268,6 +272,8 @@ nnoremap <Bslash>V :<C-U>let b: t: w:<CR>
nnoremap <Bslash>w :<C-U>set wrap! wrap?<CR>
" \x strips trailing whitespace via a custom plugin
nmap <Bslash>x <Plug>StripTrailingWhitespace
+" \y shows all registers
+nnoremap <Bslash>y :<C-U>registers<CR>
" \z sets NZ English spelling (compare \u)
nnoremap <Bslash>z :<C-U>setlocal spelllang=en_nz<CR>