aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-14 20:02:43 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-14 20:02:43 +1200
commite2d29e216d51588a6ad5def72bd46aecd8bf137b (patch)
treec3808a706c236b4f71f2057a50d69b16aa41400c
parentAdd -bar attribute to :AddLocalSpellFile command (diff)
downloaddotfiles-e2d29e216d51588a6ad5def72bd46aecd8bf137b.tar.gz
dotfiles-e2d29e216d51588a6ad5def72bd46aecd8bf137b.zip
Add Vim leader maps for :command and :function
-rw-r--r--vim/vimrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 7a67920a..4bbbef20 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -1361,6 +1361,9 @@ nnoremap <Leader>H
"" Leader,k shows my marks
nnoremap <Leader>k
\ :<C-U>marks<CR>
+"" Leader,K shows functions
+nnoremap <Leader>K
+ \ :<C-U>function<CR>
"" Leader,m shows normal maps
nnoremap <Leader>m
\ :<C-U>nmap<CR>
@@ -1370,6 +1373,9 @@ nnoremap <Leader>M
"" Leader,S shows loaded scripts
nnoremap <Leader>S
\ :<C-U>scriptnames<CR>
+"" Leader,U shows user commands
+nnoremap <Leader>U
+ \ :<C-U>command<CR>
"" Leader,v shows all global and internal variables
nnoremap <Leader>v
\ :<C-U>let g: v:<CR>