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
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
nmap <F12> :TagbarToggle<CR>
let g:tagbar_ctags_bin = "ectags"
@ -242,28 +254,14 @@ augroup project
autocmd BufRead,BufNewFile *.h,*.c set filetype=c.doxygen
augroup END
" CUSTOM: # highlights, n searches.
nmap # :let @/ = expand('<cword>')\|set hlsearch<C-M>
" CUSTOM: AUTORELOAD ON VIMRC CHANGE
augroup myvimrc
au!
au BufWritePost vimrc so $MYVIMRC
augroup END
" CUSTOM: Global Copy
function! Copy()
:w! /tmp/vimcopy.txt
endfunction
nmap  :call Copy()<cr>
" CUSTOM: Global Copy
function! Paste()
:r /tmp/vimcopy.txt
endfunction
nmap  :call Paste()<cr>
" CUSTOM: UPLOAD FILE
function! DoPaste()
:! cat % | ksh -ic "dopaste"
endfunction
augroup myquickfix
autocmd!
autocmd QuickFixCmdPost [^l]* cwindow
autocmd QuickFixCmdPost l* lwindow
augroup END