Skip to content

Instantly share code, notes, and snippets.

cytopia cytopia

Block or report user

Report or block cytopia

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cytopia
cytopia / .bash_git.sh
Last active Aug 29, 2016
Manage multiple git identities
View .bash_git.sh
#
# Handle git identities
#
# Load this in your bash/zsh config
#
# Show identity
git-ident-show() {
git config --get user.name
git config --get user.email
@cytopia
cytopia / make-vim-project
Created Oct 17, 2015
Vim workflow for project and ctag files
View make-vim-project
#------------------------------------------------------
#-------- CTAGS
make-ctags() {
ctags -RBF -f .tags \
--file-scope=yes \
--sort=yes \
--extra=+fq \
2>/dev/null
}
make-ctags-css() {
@cytopia
cytopia / ranger-as-file-explorer-in-vim.vim
Last active Aug 29, 2015
Ranger as file explorer in vim
View ranger-as-file-explorer-in-vim.vim
function RangerExplorer()
exec "silent !ranger --choosefile=/tmp/vim_ranger_current_file " . expand("%:p:h")
if filereadable('/tmp/vim_ranger_current_file')
exec 'edit ' . system('cat /tmp/vim_ranger_current_file')
call system('rm /tmp/vim_ranger_current_file')
endif
redraw!
endfun
map <Leader>x :call RangerExplorer()<CR>
You can’t perform that action at this time.