Skip to content

Instantly share code, notes, and snippets.

@leggsimon
Created September 16, 2019 14:52
Show Gist options
  • Save leggsimon/784f8c9803aeafbb7e13995553912963 to your computer and use it in GitHub Desktop.
Save leggsimon/784f8c9803aeafbb7e13995553912963 to your computer and use it in GitHub Desktop.
# from https://apple.stackexchange.com/a/267261
function show_italics {
echo "xterm-256color|xterm with 256 colors and italic,\n sitm=\E[3m, ritm=\E[23m,\n use=xterm-256color," >> xterm-256color.terminfo.txt
tic -o ~/.terminfo xterm-256color.terminfo.txt
rm xterm-256color.terminfo.txt
}
# set up gitcommit message styling https://shime.sh/git-commit-message-syntax-highlighting-in-vim
function add_gitcommit_message_styling {
mkdir -p ~/.vim/after/syntax/
echo "syn clear gitcommitSummary\nsyn match gitcommitSummary "^.\{0,72\}" contained containedin=gitcommitFirstLine nextgroup=gitcommitOverflow contains=@Spell" >> ~/.vim/after/syntax/gitcommit.vim
}
# https://github.com/gruvbox-community/gruvbox
function install_gruvbox_theme {
git clone https://github.com/gruvbox-community/gruvbox.git ~/.vim/pack/default/start/gruvbox\n
echo "syntax on\n\n" >> ~/.vimrc
echo "let g:gruvbox_italic=1\n" >> ~/.vimrc
echo "colorscheme gruvbox·\n" >> ~/.vimrc
}
# https://github.com/leafgarland/typescript-vim
function install_vim_typescript_package {
git clone https://github.com/leafgarland/typescript-vim.git ~/.vim/pack/typescript/start/typescript-vim
}
show_italics
add_gitcommit_message_styling
install_gruvbox_theme
install_vim_typescript_package
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment