1
0
mirror of https://github.com/amix/vimrc synced 2025-07-05 07:25:00 +08:00

Improved the mappings documentation

Especially for plugins.

Fixes https://github.com/amix/vimrc/issues/493
This commit is contained in:
amix
2019-11-30 12:54:13 +01:00
parent c30a27a14d
commit 9234352b8c
5 changed files with 76 additions and 45 deletions

View File

@ -206,7 +206,7 @@ vnoremap <silent> # :<C-u>call VisualSelection('', '')<CR>?<C-R>=@/<CR><CR>
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Map <Space> to / (search) and Ctrl-<Space> to ? (backwards search)
map <space> /
map <c-space> ?
map <C-space> ?
" Disable highlight when <leader><cr> is pressed
map <silent> <leader><cr> :noh<cr>
@ -241,7 +241,7 @@ au TabLeave * let g:lasttab = tabpagenr()
" Opens a new tab with the current buffer's path
" Super useful when editing files in the same directory
map <leader>te :tabedit <c-r>=expand("%:p:h")<cr>/
map <leader>te :tabedit <C-r>=expand("%:p:h")<cr>/
" Switch CWD to the directory of the open buffer
map <leader>cd :cd %:p:h<cr>:pwd<cr>