Added stuff from old job
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -40,3 +40,6 @@
|
|||||||
[submodule "vim/bundle/yaifa"]
|
[submodule "vim/bundle/yaifa"]
|
||||||
path = vim/bundle/yaifa
|
path = vim/bundle/yaifa
|
||||||
url = https://github.com/vim-scripts/yaifa.vim.git
|
url = https://github.com/vim-scripts/yaifa.vim.git
|
||||||
|
[submodule "vim/bundle/vim-colors-solarized"]
|
||||||
|
path = vim/bundle/vim-colors-solarized
|
||||||
|
url = https://github.com/altercation/vim-colors-solarized.git
|
||||||
|
|||||||
42
dircolors
42
dircolors
@@ -131,11 +131,11 @@ DIR 36
|
|||||||
LINK 35
|
LINK 35
|
||||||
|
|
||||||
# pipe, socket, block device, character device (blue bg)
|
# pipe, socket, block device, character device (blue bg)
|
||||||
FIFO 37;44
|
FIFO 34
|
||||||
SOCK 37;44
|
SOCK 34
|
||||||
DOOR 37;44 # Solaris 2.5 and later
|
DOOR 34 # Solaris 2.5 and later
|
||||||
BLK 37;44
|
BLK 34
|
||||||
CHR 37;44
|
CHR 34
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
# File attributes {{{
|
# File attributes {{{
|
||||||
@@ -146,9 +146,9 @@ ORPHAN 05;37;45
|
|||||||
# ... and the files that orphaned symlinks point to (blinking white on red)
|
# ... and the files that orphaned symlinks point to (blinking white on red)
|
||||||
MISSING 05;37;45
|
MISSING 05;37;45
|
||||||
# dir that is sticky and other-writable (+t,o+w)
|
# dir that is sticky and other-writable (+t,o+w)
|
||||||
STICKY_OTHER_WRITABLE 30;46
|
STICKY_OTHER_WRITABLE 36
|
||||||
# dir that is other-writable (o+w) and not sticky
|
# dir that is other-writable (o+w) and not sticky
|
||||||
OTHER_WRITABLE 30;46
|
OTHER_WRITABLE 36
|
||||||
|
|
||||||
# files with execute permission
|
# files with execute permission
|
||||||
EXEC 01;31 # Unix
|
EXEC 01;31 # Unix
|
||||||
@@ -361,20 +361,20 @@ EXEC 01;31 # Unix
|
|||||||
.log 32
|
.log 32
|
||||||
|
|
||||||
# Unimportant non-text files
|
# Unimportant non-text files
|
||||||
*,v 01;30
|
*,v 01;32
|
||||||
.BAK 01;30
|
.BAK 01;32
|
||||||
.DIST 01;30
|
.DIST 01;32
|
||||||
.OFF 01;30
|
.OFF 01;32
|
||||||
.OLD 01;30
|
.OLD 01;32
|
||||||
.ORIG 01;30
|
.ORIG 01;32
|
||||||
.bak 01;30
|
.bak 01;32
|
||||||
.dist 01;30
|
.dist 01;32
|
||||||
.off 01;30
|
.off 01;32
|
||||||
.old 01;30
|
.old 01;32
|
||||||
.org_archive 01;30
|
.org_archive 01;32
|
||||||
.orig 01;30
|
.orig 01;32
|
||||||
.swo 01;30
|
.swo 01;32
|
||||||
.swp 01;30
|
.swp 01;32
|
||||||
|
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
|
|||||||
34
gentags
34
gentags
@@ -2,16 +2,46 @@
|
|||||||
|
|
||||||
CSCOPE_DIR="$PWD/cscope"
|
CSCOPE_DIR="$PWD/cscope"
|
||||||
|
|
||||||
|
if [ $# -lt 1 ]; then
|
||||||
|
LANG="C"
|
||||||
|
else
|
||||||
|
LANG="${1}"
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ! -d "$CSCOPE_DIR" ]; then
|
if [ ! -d "$CSCOPE_DIR" ]; then
|
||||||
mkdir "$CSCOPE_DIR"
|
mkdir "$CSCOPE_DIR"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Finding files ..."
|
echo "Finding files ..."
|
||||||
find "$PWD" -type d \( -name regs -o -name reg \) -prune \
|
|
||||||
|
case $LANG in
|
||||||
|
"C")
|
||||||
|
find "$PWD" -type d \( -name regs -o -name reg \) -prune \
|
||||||
-o -name '*.[ch]' \
|
-o -name '*.[ch]' \
|
||||||
-o -name '*.cpp' \
|
-o -name '*.cpp' \
|
||||||
-o -name '*.cc' \
|
-o -name '*.cc' \
|
||||||
-o -name '*.hpp' > "$CSCOPE_DIR/cscope.files"
|
-o -name '*.hpp' \
|
||||||
|
> "$CSCOPE_DIR/cscope.files"
|
||||||
|
;;
|
||||||
|
"PYTHON")
|
||||||
|
find "$PWD" -type f \
|
||||||
|
-name "*.py" \
|
||||||
|
> "$CSCOPE_DIR/cscope.files"
|
||||||
|
;;
|
||||||
|
"JAVA")
|
||||||
|
find "$PWD" -type f \
|
||||||
|
-name "*.java" \
|
||||||
|
> "$CSCOPE_DIR/cscope.files"
|
||||||
|
;;
|
||||||
|
"JAVASCRIPT")
|
||||||
|
find "$PWD" -type f \
|
||||||
|
-name "*.js" \
|
||||||
|
> "$CSCOPE_DIR/cscope.files"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Valid choices are C, PYTHON, JAVA, and JAVASCRIPT"
|
||||||
|
exit 1
|
||||||
|
esac
|
||||||
|
|
||||||
echo "Adding files to cscope db: $PWD/cscope.db ..."
|
echo "Adding files to cscope db: $PWD/cscope.db ..."
|
||||||
cscope -b -i "$CSCOPE_DIR/cscope.files"
|
cscope -b -i "$CSCOPE_DIR/cscope.files"
|
||||||
|
|||||||
15
gitconfig
15
gitconfig
@@ -1,8 +1,9 @@
|
|||||||
[user]
|
[user]
|
||||||
email = anaber@pm.me
|
email = ENTERME
|
||||||
name = Autumn Naber
|
name = ENTERME
|
||||||
[diff]
|
[diff]
|
||||||
tool = vimdiff
|
tool = vimdiff
|
||||||
|
wsErrorHighlight = all
|
||||||
[difftool]
|
[difftool]
|
||||||
prompt = false
|
prompt = false
|
||||||
[alias]
|
[alias]
|
||||||
@@ -17,3 +18,13 @@
|
|||||||
default = simple
|
default = simple
|
||||||
[core]
|
[core]
|
||||||
editor = vim
|
editor = vim
|
||||||
|
[pull]
|
||||||
|
ff = only
|
||||||
|
[http]
|
||||||
|
postBuffer = 524288000
|
||||||
|
sslcainfo = /etc/ssl/certs/ca-certificates.crt
|
||||||
|
[filter "lfs"]
|
||||||
|
clean = git-lfs clean -- %f
|
||||||
|
smudge = git-lfs smudge -- %f
|
||||||
|
process = git-lfs filter-process
|
||||||
|
required = true
|
||||||
|
|||||||
@@ -25,6 +25,9 @@ set-option -s escape-time 0
|
|||||||
# Enable mouse control (clickable windows, panes, resizable panes)
|
# Enable mouse control (clickable windows, panes, resizable panes)
|
||||||
set -g mouse on
|
set -g mouse on
|
||||||
|
|
||||||
|
# Enable support for 256-colors
|
||||||
|
set -g default-terminal "screen-256color"
|
||||||
|
|
||||||
######################
|
######################
|
||||||
### DESIGN CHANGES ###
|
### DESIGN CHANGES ###
|
||||||
######################
|
######################
|
||||||
|
|||||||
1
vim/bundle/vim-colors-solarized
Submodule
1
vim/bundle/vim-colors-solarized
Submodule
Submodule vim/bundle/vim-colors-solarized added at 528a59f26d
24
vimrc
24
vimrc
@@ -15,13 +15,15 @@ set hlsearch
|
|||||||
set ignorecase
|
set ignorecase
|
||||||
set smartcase
|
set smartcase
|
||||||
set smartindent
|
set smartindent
|
||||||
:nnoremap <silent> <Space> :nohlsearch<Bar>:echo<CR>
|
nnoremap <silent> <Space> :nohlsearch<Bar>:echo<CR>
|
||||||
|
|
||||||
syntax on
|
syntax on
|
||||||
filetype plugin indent on
|
filetype plugin indent on
|
||||||
colorscheme apprentice
|
set background=dark
|
||||||
set switchbuf+=uselast " Use last window when making selection from quickfix window
|
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 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
|
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
|
"""" Gitgutter
|
||||||
" CTRL-g to toggle GitGutter display
|
" CTRL-g to toggle GitGutter display
|
||||||
nnoremap <C-g> :GitGutterToggle<CR>
|
nnoremap <C-g> :GitGutterToggle<CR>
|
||||||
|
" Default to off
|
||||||
|
:au VimEnter * :GitGutterDisable
|
||||||
|
|
||||||
" Fugitive conflict resolution
|
" Fugitive conflict resolution
|
||||||
nnoremap <leader>gd :Gvdiff<CR>
|
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
|
autocmd FileType puml setlocal ts=4 sts=4 sw=4 expandtab
|
||||||
let g:indentLine_char = '┆'
|
let g:indentLine_char = '┆'
|
||||||
let g:indentLine_color_term = 237
|
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
|
" vim-airline
|
||||||
let g:airline#extensions#whitespace#enabled = 0
|
let g:airline#extensions#whitespace#enabled = 0
|
||||||
@@ -98,6 +107,14 @@ function! InitAirline()
|
|||||||
endfunction
|
endfunction
|
||||||
autocmd VimEnter * call InitAirline()
|
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
|
""" Use one of these options depending on software
|
||||||
"" OPTION A: Vim 8.x without YCM (easy setup)
|
"" OPTION A: Vim 8.x without YCM (easy setup)
|
||||||
" OmniCpp
|
" 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_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_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_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
|
"let g:ycm_confirm_extra_conf = 0
|
||||||
"" \y to apply FixIt command
|
"" \y to apply FixIt command
|
||||||
|
|||||||
Reference in New Issue
Block a user