Update 2024-01-19 22:17 OpenBSD/amd64-x13

This commit is contained in:
c0dev0id
2024-01-19 22:17:16 +01:00
parent b255eb5c10
commit da8daa77e0
69 changed files with 74 additions and 19342 deletions

View File

@@ -1,7 +1,3 @@
" load plugins
execute pathogen#infect()
Helptags
set nocompatible
" mouse support
@@ -42,9 +38,6 @@ let &softtabstop=&shiftwidth
set expandtab
set smarttab
set timeoutlen=100 ttimeoutlen=0
set textwidth=72
" set colorcolumn=72
set formatprg=par\ -w72q
@@ -53,25 +46,10 @@ set list
set listchars=tab:>_,trail:>
set fillchars=vert:\|,eob:\
" autocomplete
set wildmenu
set wildmode=longest:full,full
function! s:build_quickfix_list(lines)
call setqflist(map(copy(a:lines), '{ "filename": v:val, "lnum": 1 }'))
copen
cc
endfunction
" let g:fzf_history_dir = '~/.local/vim/fzf-history'
let g:fzf_layout = { 'down': '40%' }
nnoremap <c-p> :FZF -i -e --layout=reverse<CR>
nnoremap <c-b> :Buffers<CR>
let g:fzf_action = {
\ 'ctrl-t': 'tab split',
\ 'ctrl-x': 'split',
\ 'ctrl-v': 'vsplit' }
function! CleverTab()
if strpart( getline('.'), 0, col('.')-1 ) =~ '^\s*$'
return "\<Tab>"
@@ -81,6 +59,47 @@ function! CleverTab()
endfunction
inoremap <tab> <C-R>=CleverTab()<CR>
function! s:build_quickfix_list(lines)
call setqflist(map(copy(a:lines), '{ "filename": v:val, "lnum": 1 }'))
copen
cc
endfunction
let g:fzf_layout = { 'down': '40%' }
nnoremap <c-o> :Files<CR>
nnoremap <c-b> :Buffers<CR>
let g:fzf_action = {
\ 'ctrl-t': 'tab split',
\ 'ctrl-x': 'vsplit' }
let g:fzf_vim = {}
let g:fzf_vim.tags_command = 'ectags -R'
let g:mapleader = ","
nnoremap <leader>f :Files<CR>
nnoremap <leader>o :Buffers<CR>
nnoremap <leader>l :Lines<CR>
nnoremap <leader>t :Tags<CR>
let g:tagbar_ctags_bin = "ectags"
noremap <leader>tt :TagbarToggle<CR>
" TAGS FILE
set tags=".tags"
"nnoremap gt :cs find 1 <C-R>=expand("<cword>")<CR><CR>
"nnoremap gs :cs find 4 <C-R>=expand("<cword>")<CR><CR>
"nnoremap gb <c-o>
"nnoremap gh :FSHere<CR>
let g:fzf_tags_prompt = "Gd "
noreabbrev <expr> ts getcmdtype() == ":" && getcmdline() == 'ts' ? 'FZFTselect' : 'ts'
nmap gt <Plug>(fzf_tags)
let g:autotagTagsFile = ".tags"
let g:autotagCtagsCmd = "ectags"
" HIGHLIGHT SPECIAL WORDS
match ErrorMsg '\(TODO:\|FIXME\|XXX\|workaround\|WTF\|: error:.*\|\s\+$\| \+\ze\t\)'
@@ -96,6 +115,11 @@ set backupdir=~/.local/vim/backup//
set directory=~/.local/vim/swapfiles//
silent execute '!mkdir -p ~/.local/vim/backup ~/.local/vim/undo ~/.local/vim/swapfiles'
" PLUGIN: EASY ALIGN
xmap ga <Plug>(EasyAlign)
nmap ga <Plug>(EasyAlign)
augroup mystuff
au!
au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | exe "normal! g'\"" | endif