dotfiles

My dotfiles, nothing really interesting to see ...
git clone https://git.onna.be/dotfiles.git
Log | Files | Refs | README

commit 3d4268c4166a68132ca1a168fc4f197e6734c2a7
parent cd02fc37cb14a932e59c8ac1f27364faf8fde467
Author: Paco Esteban <paco@onna.be>
Date:   Fri, 22 Mar 2019 09:06:08 +0100

vim grepper, ardu stuff and more

Diffstat:
vim/.vim/after/ftplugin/arduino.vim | 14++++++++++++++
vim/.vim/after/ftplugin/mail.vim | 2+-
vim/.vim/after/ftplugin/text.vim | 2+-
vim/.vim/vimrc | 17+++++++++++++++++
4 files changed, 33 insertions(+), 2 deletions(-)

diff --git a/vim/.vim/after/ftplugin/arduino.vim b/vim/.vim/after/ftplugin/arduino.vim @@ -0,0 +1,14 @@ +setlocal cindent +setlocal cinoptions=:0,t0,+4,(4,u4,U4 +setlocal indentkeys=0{,0},0),:,0#,!^F,o,O,e +setlocal noexpandtab +setlocal shiftwidth=2 +setlocal tabstop=2 +setlocal textwidth=80 + +setlocal colorcolumn=80 + +" Include macros in completion +setlocal complete+=d + +" let b:undo_ftplugin .= '|setl et< ts< sw< list< ep< cc< cpt< kp< cin< cino< inde< indk<' diff --git a/vim/.vim/after/ftplugin/mail.vim b/vim/.vim/after/ftplugin/mail.vim @@ -2,6 +2,6 @@ setlocal syntax=mail setlocal tw=72 setlocal wrap setlocal lbr -setlocal formatprg=fmt\ -72 +setlocal formatprg=par\ -w72ej let b:undo_ftplugin .= '|setlocal tw< wrap< lbr< formatprg<' diff --git a/vim/.vim/after/ftplugin/text.vim b/vim/.vim/after/ftplugin/text.vim @@ -1,7 +1,7 @@ setlocal textwidth=72 setlocal wrap setlocal linebreak -setlocal formatprg=fmt\ -72 +setlocal formatprg=par\ -w72ej setlocal colorcolumn=73 let b:undo_ftplugin .= '|setlocal textwidth< wrap< linebreak< formatprg< colorcolumn<' diff --git a/vim/.vim/vimrc b/vim/.vim/vimrc @@ -103,6 +103,8 @@ else nnoremap cp "+p xnoremap cy "+y endif +" F12 to toggle paste mode +set pastetoggle=<F12> " \b calls make nnoremap <silent> <Leader>b :make<CR> " }}} @@ -162,6 +164,21 @@ let g:netrw_liststyle = 3 " tree view let g:netrw_banner = 0 " don't show banner let g:netrw_browse_split = 3 " open files in new tab " }}} netrw +" grepper {{{ +nnoremap <leader>g :Grepper -tool rg<cr> +nnoremap <leader>G :Grepper -tool git<cr> +nmap gs <plug>(GrepperOperator) +xmap gs <plug>(GrepperOperator) +let g:grepper = {} +let g:grepper.tools = ['rg', 'git'] +let g:grepper.next_tool = '<leader>g' +" }}} grepper +" vim-easy-align {{{ +" Start interactive EasyAlign in visual mode (e.g. vipga) +xmap ga <Plug>(EasyAlign) +" Start interactive EasyAlign for a motion/text object (e.g. gaip) +nmap ga <Plug>(EasyAlign) +" }}} vim-easy-align " }}} " Tabline {{{