Added stuff from old job

This commit is contained in:
2026-01-28 23:11:19 -08:00
parent 54baed66d2
commit 2702cfdd64
7 changed files with 98 additions and 32 deletions

24
vimrc
View File

@@ -15,13 +15,15 @@ set hlsearch
set ignorecase
set smartcase
set smartindent
:nnoremap <silent> <Space> :nohlsearch<Bar>:echo<CR>
nnoremap <silent> <Space> :nohlsearch<Bar>:echo<CR>
syntax on
filetype plugin indent on
colorscheme apprentice
set switchbuf+=uselast " Use last window when making selection from quickfix window
set background=dark
colorscheme solarized
"set switchbuf+=uselast " Use last window when making selection from quickfix window
set redrawtime=5000 " Increase maximum redraw time to use syntax highlighting for large files
:set colorcolumn=80 " Add a vertical line at column 80
set backspace=indent,eol,start " Make backspace key work in insert mode
@@ -70,6 +72,8 @@ let g:rainbow_ctermfgs = ['lightblue', 'lightgreen', 'yellow', 'red', 'magenta']
"""" Gitgutter
" CTRL-g to toggle GitGutter display
nnoremap <C-g> :GitGutterToggle<CR>
" Default to off
:au VimEnter * :GitGutterDisable
" Fugitive conflict resolution
nnoremap <leader>gd :Gvdiff<CR>
@@ -82,6 +86,11 @@ autocmd FileType yml setlocal ts=2 sts=2 sw=2 expandtab
autocmd FileType puml setlocal ts=4 sts=4 sw=4 expandtab
let g:indentLine_char = '┆'
let g:indentLine_color_term = 237
autocmd Filetype json let g:indentLine_setConceal = 0
"""" syntax highlighting editor settigs
autocmd BufRead,BufNewFile *.cppcheck set filetype=xml
autocmd BufRead,BufNewFile Jenkinsfile* set filetype=groovy
" vim-airline
let g:airline#extensions#whitespace#enabled = 0
@@ -98,6 +107,14 @@ function! InitAirline()
endfunction
autocmd VimEnter * call InitAirline()
" codeium-vim
" let g:codeium_server_config = {
" \ "api_url": "https://codeium-hdd.wdc.com/_route/api_server",
" \ "portal_url": "https://codeium-hdd.wdc.com",
" \ "config_url": "https://codeium-hdd.wdc.com"}
" let g:codeium_no_map_tab = 1
" imap <script><silent><nowait><expr> <C-Space> codeium#Accept()
""" Use one of these options depending on software
"" OPTION A: Vim 8.x without YCM (easy setup)
" OmniCpp
@@ -141,6 +158,7 @@ nnoremap <C-y> :SyntasticToggleMode<CR>
"let g:ycm_enable_diagnostic_highlighting = 1 " Highlight regions of diagnostic text
"let g:ycm_echo_current_diagnostic = 1 " Echo line's diagnostic that cursor is on
"let g:ycm_min_num_of_chars_for_completion = 4 " Wait for 4 characters before completion
"let g:ycm_clangd_args = ['--clang-tidy'] " Enable clang-tidy syntax suggestions
"
"let g:ycm_confirm_extra_conf = 0
"" \y to apply FixIt command