Update 2024-01-19 23:46 OpenBSD/amd64-x13

This commit is contained in:
c0dev0id 2024-01-19 23:46:43 +01:00
parent 39b6b970ad
commit 2900351f47
3 changed files with 33 additions and 3 deletions

View File

@ -13,7 +13,6 @@ alias sxhkdrc="vim ~/.config/bspwm/sxhkdrc"
alias vimbrc="vim ~/.config/vimb/config" alias vimbrc="vim ~/.config/vimb/config"
alias exrc="vim ~/.exrc" alias exrc="vim ~/.exrc"
# translation # translation
alias trans-en="trans -l de -s en -t de --no-ansi" alias trans-en="trans -l de -s en -t de --no-ansi"
alias trans-de="trans -l en -s de -t en --no-ansi" alias trans-de="trans -l en -s de -t en --no-ansi"

View File

@ -21,3 +21,34 @@ scr() {
|| doas wsconsctl display.brightness="$1" || doas wsconsctl display.brightness="$1"
} }
mktags() {
rm -f tags
fd --regex '\.[ch]$|\.$|\.hpp$|\.cpp$|\.cc$|\.hh$' \
| ectags -L - \
--links=no \
--tag-relative \
--exclude=.git \
--exclude=CVS \
-R \
-f tags
}
mktags1() {
rm -f tags
fd --one-file-system \
-E .git \
-E CVS \
-E gnu \
-t f \
-e .c -e .h \
-e .cc -e .hh \
-e .cpp -e .hpp \
-e .vim -e .lua \
-e .sh -e .pl \
-e Makefile \
| ectags -L - \
--links=no \
--tag-relative \
--languages=C,C++,Lua,Make,Perl,Sh,Vim \
-R \
-f tags
}

View File

@ -74,7 +74,7 @@ let g:fzf_action = {
\ 'ctrl-x': 'vsplit' } \ 'ctrl-x': 'vsplit' }
let g:fzf_vim = {} let g:fzf_vim = {}
let g:fzf_vim.tags_command = 'ectags -R' let g:fzf_vim.tags_command = 'ksh -ic mktags'
let g:mapleader = "," let g:mapleader = ","
nnoremap <leader>f :Files<CR> nnoremap <leader>f :Files<CR>
@ -86,7 +86,7 @@ let g:tagbar_ctags_bin = "ectags"
noremap <leader>tt :TagbarToggle<CR> noremap <leader>tt :TagbarToggle<CR>
" TAGS FILE " TAGS FILE
set tags=".tags" set tags=./tags;/
"nnoremap gt :cs find 1 <C-R>=expand("<cword>")<CR><CR> "nnoremap gt :cs find 1 <C-R>=expand("<cword>")<CR><CR>
"nnoremap gs :cs find 4 <C-R>=expand("<cword>")<CR><CR> "nnoremap gs :cs find 4 <C-R>=expand("<cword>")<CR><CR>
"nnoremap gb <c-o> "nnoremap gb <c-o>