aboutsummaryrefslogtreecommitdiff
path: root/plugins.vim
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2020-10-19 22:59:27 +0800
committerjdhao <jdhao@hotmail.com>2020-10-19 22:59:27 +0800
commitd06770efeff8b9e35d74895fa978fa7de1348eb3 (patch)
tree03dfacdf8120b43524c00aa25acc10cb5171b7b7 /plugins.vim
parentbb242b7699bb64e25b7497385882aff56fd9c32a (diff)
add <C-U> in mappings that use command where appropriate
Diffstat (limited to 'plugins.vim')
-rw-r--r--plugins.vim16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins.vim b/plugins.vim
index 20c52a3..eb95718 100644
--- a/plugins.vim
+++ b/plugins.vim
@@ -469,11 +469,11 @@ let g:Lf_ShortcutF = ''
let g:Lf_ShortcutB = ''
" Search files in popup window
-nnoremap <silent> <leader>f :Leaderf file --popup<CR>
+nnoremap <silent> <leader>f :<C-U>Leaderf file --popup<CR>
" Search vim help files
-nnoremap <silent> <leader>h :Leaderf help --popup<CR>
+nnoremap <silent> <leader>h :<C-U>Leaderf help --popup<CR>
" Search tags in current buffer
-nnoremap <silent> <leader>t :Leaderf bufTag --popup<CR>
+nnoremap <silent> <leader>t :<C-U>Leaderf bufTag --popup<CR>
"}}
"{{ URL related
@@ -491,7 +491,7 @@ endif
"{{ Navigation and tags
""""""""""""""""""""""""""" tagbar settings """"""""""""""""""""""""""""""""""
" Shortcut to toggle tagbar window
-" nnoremap <silent> <Space>t :TagbarToggle<CR>
+" nnoremap <silent> <Space>t :<C-U>TagbarToggle<CR>
" Add support for markdown files in tagbar.
if g:is_win
@@ -528,7 +528,7 @@ let g:vista_echo_cursor = 0
" Stay in current window when vista window is opened
let g:vista_stay_on_open = 0
-nnoremap <silent> <Space>t :Vista!!<CR>
+nnoremap <silent> <Space>t :<C-U>Vista!!<CR>
function! s:close_vista_win() abort
if winnr('$') == 1 && getbufvar(bufnr(), '&filetype') ==# 'vista'
@@ -659,8 +659,8 @@ if g:is_win || g:is_mac
let g:mkdp_auto_close = 0
" Shortcuts to start and stop markdown previewing
- nnoremap <silent> <M-m> :MarkdownPreview<CR>
- nnoremap <silent> <M-S-m> :MarkdownPreviewStop<CR>
+ nnoremap <silent> <M-m> :<C-U>MarkdownPreview<CR>
+ nnoremap <silent> <M-S-m> :<C-U>MarkdownPreviewStop<CR>
endif
""""""""""""""""""""""""vim-markdownfootnotes settings""""""""""""""""""""""""
@@ -876,6 +876,6 @@ if exists('g:started_by_firenvim') && g:started_by_firenvim
endif
""""""""""""""""""""""""""""""nvim-gdb settings""""""""""""""""""""""""""""""
-nnoremap <leader>dp :GdbStartPDB python -m pdb %<CR>
+nnoremap <leader>dp :<C-U>GdbStartPDB python -m pdb %<CR>
"}}
"}