diff --git a/tmux/tmux.conf b/tmux/tmux.conf index a58a4ff..cc5f9c7 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -106,14 +106,23 @@ bind r source-file ~/.tmux.conf \; display "Config Reloaded!" # Capture a pane into file for uploading to Gist # bind-key u capture-pane \; save-buffer /tmp/tmux-buffer +# Captur selection, create a gist from it +#bind-key -tvi-copy u copy-pipe "~/Workbench/dotfiles/tmux/copy_selected.sh" +bind-key -tvi-copy u copy-pipe "ruby ~/gist_gem.rb -" + ###### # Plugins ### # TPM - Tmux Plugin Manager +# Install Plugins: + I +# Uninstall Plugins: + +# Update Plugins: + U set -g @plugin 'tmux-plugins/tpm' # Resurrect sessions +# Save: + +# Restore: + set -g @plugin 'tmux-plugins/tmux-resurrect' # Allow for scroll-wheel copy mode diff --git a/vim/vimrc b/vim/vimrc index 3c3e8c9..2d44170 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -32,6 +32,13 @@ set expandtab set smarttab set shiftwidth=5 set softtabstop=5 +" Ruby-specific +augroup rubyfiletypes + " Clear old autocmds in group + autocmd! + " Set auto-indent to two spaces, always expand tabs + autocmd FileType ruby,eruby,yaml set ai sw=2 sts=2 et +augroup END " Spacing " Set width; word wrap; scroll mods diff --git a/vim/vimrc-plugins b/vim/vimrc-plugins index 81a929b..15abe2c 100644 --- a/vim/vimrc-plugins +++ b/vim/vimrc-plugins @@ -34,9 +34,13 @@ Plug 'tpope/vim-tbone' Plug 'tpope/vim-surround' Plug 'vimwiki/vimwiki' Plug 'tpope/vim-unimpaired' +Plug 'tpope/vim-commentary' " Plug 'justinmk/vim-sneak' " Plug 'ap/vim-templates' +" Ruby Related +Plug 'tpope/vim-endwise' +Plug 'vim-ruby/vim-ruby' " Appearance Related Plug 'mhinz/vim-startify'