From 1b97735bf2bff38d9b052ca645bd389d82976a57 Mon Sep 17 00:00:00 2001 From: jdhao Date: Mon, 30 Mar 2020 23:32:11 +0800 Subject: chore: remove short url and replace with true url --- mappings.vim | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) (limited to 'mappings.vim') diff --git a/mappings.vim b/mappings.vim index 13c6b70..8e75aef 100644 --- a/mappings.vim +++ b/mappings.vim @@ -40,17 +40,17 @@ nnoremap [Q :cfirstzv nnoremap ]Q :clastzv " Close location list or quickfix list if they are present, -" see https://goo.gl/uXncnS +" see https://superuser.com/q/355325/736190 nnoremap \x :windo lclose cclose " Close a buffer and switching to another buffer, do not close the -" window, see https://goo.gl/Wd8yZJ +" window, see https://stackoverflow.com/q/4465095/6064933 nnoremap \d :bprevious bdelete # -" Toggle search highlight, see https://goo.gl/3H85hh +" Toggle search highlight, see https://stackoverflow.com/a/26504944/6064933 nnoremap hl (&hls && v:hlsearch ? ':nohls' : ':set hls')."\n" -" Disable arrow key in vim, see https://goo.gl/s1yfh4. +" Disable arrow key in vim, see https://superuser.com/q/599150/736190 nnoremap nnoremap nnoremap @@ -87,7 +87,7 @@ nnoremap ^ g^ nnoremap 0 g0 " Do not include white space characters when using $ in visual mode, -" see https://goo.gl/PkuZox +" see https://vi.stackexchange.com/q/12607/15292 xnoremap $ g_ " Jump to matching pairs easily in normal mode @@ -100,8 +100,9 @@ nnoremap L g_ xnoremap L g_ " Resize windows using and h,j,k,l, inspiration from -" https://goo.gl/vVQebo (bottom page). -" If you enable mouse support, shorcuts below may not be necessary. +" https://vim.fandom.com/wiki/Fast_window_resizing_with_plus/minus_keys +" (bottom page). If you enable mouse support, shorcuts below may not be +" necessary. nnoremap < nnoremap > nnoremap - @@ -115,13 +116,14 @@ nnoremap j nnoremap k " Continuous visual shifting (does not exit Visual mode), `gv` means -" to reselect previous visual area, see https://goo.gl/m1UeiT +" to reselect previous visual area, see https://superuser.com/q/310417/736190 xnoremap < >gv -" When completion menu is shown, use to select an item -" and do not add an annoying newline. Otherwise, is what it is. -" For more info , see https://goo.gl/KTHtrr and https://goo.gl/MH7w3b +" When completion menu is shown, use to select an item and do not add an +" annoying newline. Otherwise, is what it is. For more info , see +" https://superuser.com/a/941082/736190 and +" https://unix.stackexchange.com/q/162528/221410 inoremap ((pumvisible())?("\"):("\")) " Use to close auto-completion menu inoremap ((pumvisible())?("\"):("\")) @@ -156,8 +158,8 @@ inoremap :set spell! :AutoSaveToggle " Decrease indent level in insert mode with shift+tab inoremap <