From 59f1a00807e2e3191bbf953901989531ddd085fc Mon Sep 17 00:00:00 2001 From: UEDA Naoaki Date: Sat, 23 Mar 2024 12:45:02 +0900 Subject: Add MacVim like keybinding --- _config/000-mappings.vim | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/_config/000-mappings.vim b/_config/000-mappings.vim index 8d4ce6a..a9e127e 100644 --- a/_config/000-mappings.vim +++ b/_config/000-mappings.vim @@ -3,4 +3,12 @@ nmap T :vert term ++close zsh -i nmap nmap :noh:redraw +if has('gui_running') && !has('macunix') + noremap :call SelectAll() + function! s:SelectAll() + normal! ggVG + endfunction + noremap "+y + inoremap + +endif -- cgit v1.2.3-54-g00ecf