]> git.rmz.io Git - dotfiles.git/commitdiff
vim: introduce characterize and replace easy align mapping
authorSamir Benmendil <me@rmz.io>
Fri, 13 Jan 2023 23:56:51 +0000 (23:56 +0000)
committerSamir Benmendil <me@rmz.io>
Sat, 14 Jan 2023 02:35:28 +0000 (02:35 +0000)
The EasyAlign operator mapping was overriding the built in `ga` which
shows the char under the cursor.

Changed it to <leader>a instead.

vim/vimrc

index 8c75c582b35f351fef6381b5faa39f911369ef9f..19208e52643c3680d70a9d0d3d9c12d46aa2afa8 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -49,6 +49,7 @@ Plug 'sjl/gundo.vim'
 Plug 'thinca/vim-qfreplace'
 Plug 'tomtom/tcomment_vim'
 Plug 'tpope/vim-abolish'
 Plug 'thinca/vim-qfreplace'
 Plug 'tomtom/tcomment_vim'
 Plug 'tpope/vim-abolish'
+Plug 'tpope/vim-characterize'
 Plug 'tpope/vim-endwise'
 Plug 'tpope/vim-eunuch'
 Plug 'tpope/vim-fugitive'
 Plug 'tpope/vim-endwise'
 Plug 'tpope/vim-eunuch'
 Plug 'tpope/vim-fugitive'
@@ -836,8 +837,9 @@ let g:ycm_language_server =
 
 " vim-easy-align {{{2
 " start interactive EasyAlign in visual mode
 
 " vim-easy-align {{{2
 " start interactive EasyAlign in visual mode
-vmap <Enter> <Plug>(EasyAlign)
-nmap ga <Plug>(EasyAlign)
+vmap <Enter>   <Esc>:echohl WarningMsg \| echo "EasyAlign mapped to \16<leader>a now" \| echohl None<CR>
+vmap <leader>a <Plug>(EasyAlign)
+nmap <leader>a <Plug>(EasyAlign)
 
 " vim-gtest {{{2
 let g:gtest#highlight_failing_tests = 0
 
 " vim-gtest {{{2
 let g:gtest#highlight_failing_tests = 0