Old stuff. someday maybe useful.

This commit is contained in:
2025-09-20 14:50:33 -04:00
parent 6091576170
commit 230cb70257
9 changed files with 1295 additions and 0 deletions

158
archive/vim/vimrc Normal file
View File

@@ -0,0 +1,158 @@
set nocompatible " be iMproved, required
set laststatus=2
set autowriteall " save when changing buffer
set t_Co=256
set tabstop=8 softtabstop=0 expandtab shiftwidth=4 smarttab
filetype off " required
" Buffer Remap
nnoremap <Tab> :bnext<CR>
" Tab remap
nnoremap <S-t> :tabnew<CR>
nnoremap <S-d> :tabclose<CR>
nnoremap <S-Tab> :tabnext<CR>
" Command
command Bd bp | sp | bn | bd "Close a buffer without closing the window
" Airline init
autocmd VimEnter * AirlineTheme murmur
let g:airline#extensions#tabline#enabled = 1
let g:airline_powerline_fonts = 1
if !exists('g:airline_symbols')
let g:airline_symbols = {}
endif
let g:airline_symbols.space = "\ua0"
" unicode symbols
"let g:airline_left_sep = '»'
"let g:airline_left_sep = '▶'
"let g:airline_right_sep = '«'
"let g:airline_right_sep = '◀'
"let g:airline_symbols.linenr = '␊'
"let g:airline_symbols.linenr = '␤'
"let g:airline_symbols.linenr = '¶'
"let g:airline_symbols.branch = '⎇'
"let g:airline_symbols.paste = 'ρ'
"let g:airline_symbols.paste = 'Þ'
"let g:airline_symbols.paste = '∥'
"let g:airline_symbols.whitespace = 'Ξ'
" airline symbols
"let g:airline_left_sep = ''
"let g:airline_left_alt_sep = ''
"let g:airline_right_sep = ''
"let g:airline_right_alt_sep = ''
"let g:airline_symbols.branch = ''
"let g:airline_symbols.readonly = ''
"let g:airline_symbols.linenr = ''
" neocomplete init
let g:neocomplcache_enable_at_startup = 1
" NERDTree init
autocmd VimEnter * NERDTree
autocmd VimEnter * NERDTreeMirror
autocmd VimEnter * wincmd p
" Syntax checking init
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_error_symbol = '✘'
let g:syntastic_warning_symbol = "▲"
let g:syntastic_cpp_check_header = 1
let g:syntastic_c_include_dirs = [ '../include', 'include' ]
" Delimiter init
let delimitMate_expand_cr = 1
augroup mydelimitMate
au!
au FileType markdown let b:delimitMate_nesting_quotes = ["`"]
au FileType tex let b:delimitMate_quotes = ""
au FileType tex let b:delimitMate_matchpairs = "(:),[:],{:},`:'"
au FileType python let b:delimitMate_nesting_quotes = ['"', "'"]
augroup END
" Gitgutter init
autocmd VimEnter * GitGutterEnable
autocmd VimEnter * GitGutterSignsEnable
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" plugin on GitHub repo
"Plugin 'tpope/vim-fugitive'
" plugin from http://vim-scripts.org/vim/scripts.html
"Plugin 'L9'
" Git plugin not hosted on GitHub
"Plugin 'git://git.wincent.com/command-t.git'
" git repos on your local machine (i.e. when working on your own plugin)
"Plugin 'file:///home/gmarik/path/to/plugin'
" The sparkup vim script is in a subdirectory of this repo called vim.
" Pass the path to set the runtimepath properly.
"Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
" Install L9 and avoid a Naming conflict if you've already installed a
" different version somewhere else.
"Plugin 'ascenator/L9', {'name': 'newL9'}
" **My plugin seletion**
" Completion stuff
Plugin 'Shougo/neocomplete'
" File system stuff
Plugin 'scrooloose/nerdtree'
Plugin 'jistr/vim-nerdtree-tabs'
Plugin 'kien/ctrlp.vim'
" Buttom bar stuff
Plugin 'vim-airline/vim-airline-themes'
Plugin 'vim-airline/vim-airline'
" Git stuff
Plugin 'airblade/vim-gitgutter'
Plugin 'tpope/vim-fugitive'
" Syntax stuff
Plugin 'scrooloose/syntastic'
" Easy open .h
Plugin 'vim-scripts/a.vim'
" Auto () [] {}
Plugin 'Raimondi/delimitMate'
" ctrl-hjkl to move
Plugin 'christoomey/vim-tmux-navigator'
" Buffer stuff
"Plugin 'jeetsukumaran/vim-buffergator'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line