Update 2024-09-10 14:47 Linux/x86_64-ld5587

This commit is contained in:
c0dev0id 2024-09-10 14:47:23 +02:00
parent 13223e2055
commit 42b964201b

View File

@ -222,6 +222,18 @@ if has("cscope")
endfunction endfunction
endif endif
nmap  :cnext<CR>
nmap  :cprevious<CR>
nmap  :execute "grep " . expand("<cword>")<CR><CR>
if executable('ugrep')
set grepprg=ugrep\ -RInk\ -j\ -u\ --tabs=1\ --ignore-files
set grepformat=%f:%l:%c:%m,%f+%l+%c+%m,%-G%f\\\|%l\\\|%c\\\|%m
endif
" CUSTOM: # highlights, n searches.
nmap # :let @/ = expand('<cword>')\|set hlsearch<C-M>
" PLUGIN: TAGBAR " PLUGIN: TAGBAR
nmap <F12> :TagbarToggle<CR> nmap <F12> :TagbarToggle<CR>
let g:tagbar_ctags_bin = "ectags" let g:tagbar_ctags_bin = "ectags"
@ -242,28 +254,14 @@ augroup project
autocmd BufRead,BufNewFile *.h,*.c set filetype=c.doxygen autocmd BufRead,BufNewFile *.h,*.c set filetype=c.doxygen
augroup END augroup END
" CUSTOM: # highlights, n searches.
nmap # :let @/ = expand('<cword>')\|set hlsearch<C-M>
" CUSTOM: AUTORELOAD ON VIMRC CHANGE " CUSTOM: AUTORELOAD ON VIMRC CHANGE
augroup myvimrc augroup myvimrc
au! au!
au BufWritePost vimrc so $MYVIMRC au BufWritePost vimrc so $MYVIMRC
augroup END augroup END
" CUSTOM: Global Copy augroup myquickfix
function! Copy() autocmd!
:w! /tmp/vimcopy.txt autocmd QuickFixCmdPost [^l]* cwindow
endfunction autocmd QuickFixCmdPost l* lwindow
nmap  :call Copy()<cr> augroup END
" CUSTOM: Global Copy
function! Paste()
:r /tmp/vimcopy.txt
endfunction
nmap  :call Paste()<cr>
" CUSTOM: UPLOAD FILE
function! DoPaste()
:! cat % | ksh -ic "dopaste"
endfunction