Created
May 24, 2022 19:37
-
-
Save heywoodlh/abd45a72d34eabcdd5f63afff748d5e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
imports: | |
base16-shell: dotfiles/config/base16-shell | |
choose-file-manager: home/bin/ | |
choose-launcher: home/bin/ | |
choose-buku: home/bin/ | |
vultr-sh: home/bin | |
journal: home/bin | |
log: home/bin | |
ssh-askpass-tyranny: home/bin | |
ssh-unlock: home/bin | |
ssh-wrapper: home/bin | |
tmux-nord-theme: dotfiles/tmux/themes/nord-tmux | |
ubersicht-bottombar: dotfiles/config/ubersicht/widgets/bottombar | |
vim-airline: dotfiles/vim/bundle/airline | |
vim-airline-themes: dotfiles/vim/bundle/airline-themes | |
vim-auto-pairs: dotfiles/vim/bundle/auto-pairs | |
vim-base16: dotfiles/vim/bundle/base16 | |
vim-colorizer: dotfiles/vim/bundle/colorizer | |
vim-fzf: dotfiles/vim/bundle/fzf | |
vim-fzf-vim: dotfiles/vim/bundle/fzf.vim | |
vim-indentline: dotfiles/vim/bundle/indentline | |
vim-json: dotfiles/vim/bundle/json | |
vim-nerdtree: dotfiles/vim/bundle/nerdtree | |
vim-nord: dotfiles/vim/bundle/nord | |
vim-nim: dotfiles/vim/bundle/nim.vim | |
vim-pathogen: dotfiles/vim/ | |
vim-sensible: dotfiles/vim/bundle/sensible | |
vim-sneak: dotfiles/vim/bundle/sneak | |
vim-sudoedit: dotfiles/vim/bundle/sudoedit | |
vim-supertab: dotfiles/vim/bundle/supertab | |
vim-syntastic: dotfiles/vim/bundle/syntastic | |
vim-terraform: dotfiles/vim/bundle/terraform | |
vim-which-key: dotfiles/vim/bundle/which-key | |
zsh-autoupdate: dotfiles/oh-my-zsh/custom/plugins/autoupdate | |
zsh-autosuggestions: dotfiles/oh-my-zsh/custom/plugins/zsh-autosuggestions | |
zsh-completions: dotfiles/oh-my-zsh/custom/plugins/zsh-completions | |
zsh-powerlevel10k: dotfiles/oh-my-zsh/custom/themes/powerlevel10k | |
git module base16-shell: | |
url: https://github.com/chriskempson/base16-shell | |
curl module choose-file-manager: | |
url: https://gist.githubusercontent.com/heywoodlh/2f3f3bd83bb32719cb89ec3ee137fb5b/raw/9c71f70a3094072e4527fa2e7ebd0ccfaad133c2/choose-file-manager.sh | |
executable: choose-file-manager.sh | |
curl module choose-launcher: | |
url: https://gist.githubusercontent.com/heywoodlh/2f3f3bd83bb32719cb89ec3ee137fb5b/raw/e95fb35c7ff6c3e02a5719d5baec722b8722a947/choose-launcher.sh | |
executable: choose-launcher.sh | |
curl module choose-buku: | |
url: https://gist.githubusercontent.com/heywoodlh/2f3f3bd83bb32719cb89ec3ee137fb5b/raw/4d181fe7b7da227399d1932494725a06b41f28ae/choose-buku.sh | |
executable: choose-buku.sh | |
curl module vultr-sh: | |
url: https://paste.sr.ht/blob/1a164d405d7302be211ef0bb5f2a73bd104d1e2f | |
filename: vultr | |
executable: vultr | |
curl module journal: | |
url: https://paste.sr.ht/blob/a50224e0e958c067969eae4e89f24bdb2d05f425 | |
filename: journal.sh | |
executable: journal.sh | |
curl module log: | |
url: https://paste.sr.ht/blob/30749e30dfbd52d697dd95c352bc9395d5932bdf | |
filename: log.sh | |
executable: log.sh | |
git module tmux-nord-theme: | |
url: https://github.com/arcticicestudio/nord-tmux | |
curl module ssh-askpass-tyranny: | |
url: https://paste.sr.ht/blob/3ec1ecd590c07cab36366c12f79aad3c4f30739e | |
filename: ssh-askpass-tyranny | |
executable: ssh-askpass-tyranny | |
curl module ssh-unlock: | |
url: https://paste.sr.ht/blob/c0afe9f6af990a4b6adc8e8301676ae3f87d3aae | |
filename: ssh-unlock | |
executable: ssh-unlock | |
curl module ssh-wrapper: | |
url: https://paste.sr.ht/blob/0bd64a4224d0343d8e5ae981e2dfd31cf66a8180 | |
filename: ssh-wrapper | |
executable: ssh-wrapper | |
git module ubersicht-bottombar: | |
url: https://github.com/heywoodlh/black-bottom-bar-ubersicht-widgets | |
git module vim-airline: | |
url: https://github.com/vim-airline/vim-airline | |
git module vim-airline-themes: | |
url: https://github.com/vim-airline/vim-airline-themes | |
git module vim-auto-pairs: | |
url: https://github.com/jiangmiao/auto-pairs | |
git module vim-base16: | |
url: https://github.com/chriskempson/base16-vim | |
git module vim-colorizer: | |
url: https://github.com/lilydjwg/colorizer | |
git module vim-fugitive: | |
url: https://github.com/tpope/vim-fugitive | |
git module vim-fzf: | |
url: https://github.com/junegunn/fzf | |
git module vim-fzf-vim: | |
url: https://github.com/junegunn/fzf.vim | |
git module vim-indentline: | |
url: https://github.com/Yggdroot/indentLine | |
git module vim-json: | |
url: https://github.com/elzr/vim-json | |
git module vim-nerdtree: | |
url: https://github.com/preservim/nerdtree | |
git module vim-nord: | |
url: https://github.com/arcticicestudio/nord-vim | |
git module vim-nim: | |
url: https://github.com/zah/nim.vim | |
git module vim-pathogen: | |
url: https://github.com/tpope/vim-pathogen | |
git module vim-sensible: | |
url: https://github.com/tpope/vim-sensible | |
git module vim-sudoedit: | |
url: https://github.com/chrisbra/SudoEdit.vim | |
git module vim-sneak: | |
url: https://github.com/justinmk/vim-sneak | |
git module vim-supertab: | |
url: https://github.com/ervandew/supertab | |
git module vim-syntastic: | |
url: https://github.com/vim-syntastic/syntastic | |
git module vim-terraform: | |
url: https://github.com/hashivim/vim-terraform | |
git module vim-which-key: | |
url: https://github.com/liuchengxu/vim-which-key | |
git module zsh-autoupdate: | |
url: https://github.com/TamCore/autoupdate-oh-my-zsh-plugins | |
#git module zsh-fast-syntax-highlighting: | |
#url: https://github.com/zdharma/fast-syntax-highlighting | |
git module zsh-autosuggestions: | |
url: https://github.com/zsh-users/zsh-autosuggestions | |
git module zsh-completions: | |
url: https://github.com/zsh-users/zsh-completions | |
git module zsh-powerlevel10k: | |
url: https://github.com/romkatv/powerlevel10k |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
execute pathogen#infect() | |
syntax on | |
filetype plugin indent on | |
let g:mapleader = "\<Space>" | |
let g:maplocalleader = ',' | |
nnoremap <silent> <leader> :<c-u>WhichKey '<Space>'<CR> | |
nnoremap <silent> <localleader> :<c-u>WhichKey ','<CR> | |
map <C-n> :NERDTreeToggle<CR> | |
set number | |
" Start Nerdtree only if width is greater than or equal to 80 columns | |
"if winwidth(0) >= 100 | |
" let g:NERDTreeWinSize=winwidth(0)/6 | |
" autocmd VimEnter * NERDTree | wincmd p | |
"endif | |
" Start term only if height is greater than or equal to 35 rows | |
"if winheight(0) >= 35 | |
" set termwinsize=10x0 | |
" set confirm | |
" set splitbelow | |
" term ++kill=term | |
"end | |
" Vim-indentline config | |
let g:indentLine_char = '⦙' | |
set shiftwidth=4 | |
let g:vim_json_syntax_conceal = 0 | |
" Syntastic config | |
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 | |
function! SyntasticCheckHook(errors) | |
if !empty(a:errors) | |
let g:syntastic_loc_list_height = min([len(a:errors), 10]) | |
endif | |
endfunction | |
" Custom keybinds | |
nnoremap zz :wa <bar> :qa!<CR> | |
nnoremap zq <bar> :qa!<CR> | |
map <silent> <C-y> :w !pbcopy<CR> | |
map <silent> <C-t> :r! echo "[$(date +\%H:\%M:\%S)]"<CR> | |
map <silent> <C-o> :FZF $HOME<CR> | |
"" Vim-markdown-preview toggle | |
nnoremap mdp :MarkdownPreviewToggle<CR> | |
command NoComments %s/#.*\n//g | |
command GitAdd :w! <bar> !git add % | |
command GitCommit !echo "Commit message: " && read gitmessage && git commit -m ${gitmessage} | |
command GitPush !git push | |
nnoremap ga :GitAdd<CR> | |
nnoremap gc :GitCommit<CR> | |
nnoremap gp :GitPush<CR> | |
nnoremap nc :NoComments<CR> | |
" GPG encrypted file handling | |
" Don't save backups of *.gpg files | |
set backupskip+=*.gpg | |
" To avoid that parts of the file is saved to .viminfo when yanking or | |
" deleting, empty the 'viminfo' option. | |
set viminfo= | |
augroup encrypted | |
au! | |
" Disable swap files, and set binary file format before reading the file | |
autocmd BufReadPre,FileReadPre *.gpg | |
\ setlocal noswapfile bin | |
" Decrypt the contents after reading the file, reset binary file format | |
" and run any BufReadPost autocmds matching the file name without the .gpg | |
" extension | |
autocmd BufReadPost,FileReadPost *.gpg | |
\ execute "'[,']!gpg --quiet --decrypt --default-recipient-self" | | |
\ setlocal nobin | | |
\ execute "doautocmd BufReadPost " . expand("%:r") | |
" Set binary file format and encrypt the contents before writing the file | |
autocmd BufWritePre,FileWritePre *.gpg | |
\ setlocal bin | | |
\ '[,']!gpg --encrypt --default-recipient-self | |
" After writing the file, do an :undo to revert the encryption in the | |
" buffer, and reset binary file format | |
autocmd BufWritePost,FileWritePost *.gpg | |
\ silent u | | |
\ setlocal nobin | |
augroup END | |
" Folding | |
set foldmethod=syntax | |
set foldlevel=99 | |
" Show matching characters like paranthesis, brackets, etc. | |
set showmatch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment