Skip to content

Instantly share code, notes, and snippets.

View scantisani's full-sized avatar
😺

Scott Cantisani scantisani

😺
View GitHub Profile
@scantisani
scantisani / .tmux.conf
Last active July 7, 2022 23:03
.tmux.conf
# set zsh as default shell
set-option -g default-shell /bin/zsh
# use vi-style movement
set -g mode-keys vi
set -g status-keys vi
# split panes using v and s, and open them in the current directory
bind v split-window -h -c "#{pane_current_path}"
bind s split-window -v -c "#{pane_current_path}"
# Path to your antigen installation.
source ~/antigen/antigen.zsh
# Use oh-my-zsh libraries
antigen use oh-my-zsh
# Add wisely, as too many plugins slow down shell startup.
antigen bundle git
antigen bundle rails
antigen bundle ssh-agent
" ~/.config/nvim/init.vim
filetype off
call plug#begin('~/.local/share/nvim/plugged')
Plug 'Raimondi/delimitMate'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'bling/vim-airline'
Plug 'christoomey/vim-tmux-navigator'
@scantisani
scantisani / ripper-tags-vim.md
Created September 25, 2018 20:40
Ruby standard library, gem, and project tags for Vim using ripper-tags and Bundler

Tim Pope's vim-bundler plugin does most of the heavy lifting: it alters the tags setting to include the tags for all gems from the current bundle, as well as the gem.tags and tags files. The tags themselves need to be generated first, however, before navigating by tags in Vim will work. I prefer ripper-tags to Exuberant Ctags, but getting it to work with Vim is a multi-step process.

Gem tags

Install the gem-ripper-tags gem using gem install gem-ripper-tags, then run gem ripper_tags. This will generate tags for the gems you have installed, and automatically generate tags for any new gems you install.

Standard library tags

[core]
editor = nvim
excludesfile = ~/.gitignore
; uncomment if working on Windows-only repositories with CRLF exclusively
; autocrlf = false
; eol = crlf
[diff]
algorithm = histogram
[help]
autocorrect = 30
" Vundle settings "
set nocompatible " be iMproved, required
filetype off " required
" 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')