Skip to content

Instantly share code, notes, and snippets.

@heywoodlh
Last active May 24, 2022 19:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save heywoodlh/eacbd1ee397b9afb8fdcac52d790cf56 to your computer and use it in GitHub Desktop.
Save heywoodlh/eacbd1ee397b9afb8fdcac52d790cf56 to your computer and use it in GitHub Desktop.
imports:
base16-shell: dotfiles/config/base16-shell
choose-file-manager: home/bin/
choose-launcher: home/bin/
choose-buku: home/bin/
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-nerdtree: dotfiles/vim/bundle/nerdtree
vim-nord: dotfiles/vim/bundle/nord
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-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
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-nerdtree:
url: https://github.com/preservim/nerdtree
git module vim-nord:
url: https://github.com/arcticicestudio/nord-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-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
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
nnoremap zz :wa <bar> :qa!<CR>
map <silent> <C-y> :w !pbcopy<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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment