dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit d6a9f430f9b43c8515f1b03a5aef907d8af8cd90
parent f43047cdfa829e0f6df123d1301adcd731068be9
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Tue, 12 May 2020 15:24:49 +0200

vim: various

Former-commit-id: a905ac88dd2c5b7986208e9bb95a22452e6bd956
Diffstat:
Mvim/vimrc | 19++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)

diff --git a/vim/vimrc b/vim/vimrc @@ -48,8 +48,8 @@ Plug 'romainl/vim-qf' Plug 'tpope/vim-repeat' " Distraction-free editing -Plug 'junegunn/goyo.vim', { 'for': 'markdown' } -Plug 'junegunn/limelight.vim', { 'for': 'markdown' } +Plug 'junegunn/goyo.vim', { 'for': 'markdown', 'on': 'Goyo' } +Plug 'junegunn/limelight.vim', { 'for': 'markdown', 'on': 'Limelight' } " Better CSV editing Plug 'chrisbra/csv.vim', { 'for': 'csv' } @@ -121,9 +121,6 @@ Plug 'tpope/vim-dispatch', { 'on': ['Dispatch', 'Make', 'Maketab', 'Start', 'Spa " &path for filetypes Plug 'tpope/vim-apathy' -" easier markdown-style tables -Plug 'dhruvasagar/vim-table-mode' - " Ada syntax, indent, completion Plug 'thindil/Ada-Bundle', { 'for': 'ada' } @@ -334,7 +331,8 @@ xmap ga <Plug>(LiveEasyAlign) " Start interactive EasyAlign for a motion/text object (e.g. gaip) nmap ga <Plug>(LiveEasyAlign) -nnoremap <leader>ga :normal! ga<CR> +nmap <leader>ga <Plug>(EasyAlign) +xmap <leader>ga <Plug>(EasyAlign) " Peekaboo {{{3 let g:peekaboo_compact=1 " Mundo {{{3 @@ -353,8 +351,6 @@ let g:dispatch_no_maps = 1 " Only enable those I'll actually use nnoremap `<CR> :Dispatch<CR> nnoremap '<CR> :Start<CR> -" Table-mode {{{3 -let g:table_mode_map_prefix = "<leader><bar>" " Sandwich {{{3 " Use mappings from surround.vim runtime macros/sandwich/keymap/surround.vim @@ -479,8 +475,10 @@ set noswapfile set magic " directories to search on find, gf, etc. -set path=.,**,$DOTFILES/vim/**,/usr/include,/usr/local/include,, +set path=.,$DOTFILES/vim/**,/usr/include,/usr/local/include,, +set suffixesadd+=.vim set wildignore=**/__pycache__/**,**/venv/**,**/node_modules/**,**/dist/**,**/build/**,*.o,*.pyc,*.swp + " set wildignore=**/.git/**,**/__pycache__/**,**/venv/**,**/node_modules/**,**/dist/**,**/build/**,*.o,*.pyc,*.swp set wildignorecase @@ -850,6 +848,9 @@ nnoremap <leader>mc :Make clean<CR> " :silent make<CR>\|:redraw!<CR>\|:cwindow<CR> " :silent make clean<CR>\|:redraw!<CR> +" Vmap for searching in selection +vnoremap <leader>/ <esc>/\%V + " Allow scrolling popup menus with the mouse if has('mouse') inoremap <expr> <ScrollWheelUp> pumvisible() ? "<C-p>" : "<Esc><ScrollWheelUp>"