aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-05-08 23:19:50 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-05-08 23:19:50 +1200
commit6df8bea1857f54880dda016f30b170e42d15734b (patch)
tree406446cad8df7aba27ccdc863167e831cd5d834a
parent53d3da4d40967e857342e1f081414afda88b6e6f (diff)
downloaddotfiles-6df8bea1857f54880dda016f30b170e42d15734b.tar.gz
dotfiles-6df8bea1857f54880dda016f30b170e42d15734b.zip
Bind \S in Vim to run :scriptnames
Just because I seem to be running it a lot lately.
-rw-r--r--vim/vimrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index d3a814f2..5d3bfc7a 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -348,6 +348,9 @@ nnoremap <Leader>R :<C-U>source $MYVIMRC<CR>
" \s toggles spell checking
nnoremap <Leader>s :<C-U>setlocal spell! spell?<CR>
+" \S shows loaded scripts
+nnoremap <Leader>S :<C-U>scriptnames<CR>
+
" \t shows current filetype
nnoremap <Leader>t :<C-U>setlocal filetype?<CR>
" \T clears filetype