diff options
author | UEDA Naoaki <nao.uedder@gmail.com> | 2024-03-23 12:45:02 +0900 |
---|---|---|
committer | UEDA Naoaki <nao.uedder@gmail.com> | 2024-03-23 12:46:52 +0900 |
commit | 59f1a00807e2e3191bbf953901989531ddd085fc (patch) | |
tree | 92768b11048f2807169fc57efcd56ea74e70544b /_config | |
parent | cf6218485f719d5555c58d0c263d65b7b802fd0e (diff) | |
download | vimrc-59f1a00807e2e3191bbf953901989531ddd085fc.tar.gz vimrc-59f1a00807e2e3191bbf953901989531ddd085fc.tar.bz2 vimrc-59f1a00807e2e3191bbf953901989531ddd085fc.zip |
Add MacVim like keybinding
Diffstat (limited to '_config')
-rw-r--r-- | _config/000-mappings.vim | 8 |
1 files changed, 8 insertions, 0 deletions
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 <silent> <Leader>T :vert term ++close zsh -i<CR> nmap <silent> <C-t> <C-o> nmap <silent> <C-l> :noh<CR>:redraw<CR> +if has('gui_running') && !has('macunix') + noremap <C-S-a> :call <SID>SelectAll()<CR> + function! s:SelectAll() + normal! ggVG + endfunction + noremap <C-S-c> "+y + inoremap <C-S-v> <C-r>+ +endif |