Skip to content

Commit

Permalink
Final changes to vim tmux copy mode bindings. Add qsnake game
Browse files Browse the repository at this point in the history
  • Loading branch information
kumaran-14 committed Feb 8, 2020
1 parent e15bd54 commit 649d87e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 7 deletions.
9 changes: 9 additions & 0 deletions miscellany/miscellany.zsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#################### MISCELLANY #####################

######### Some games to play when the going gets tough

##### QSNAKE game from utility-git-source


PATH="/home/kumaran/utiliy-git-source/quick-snake/:$PATH"
alias snake='qsnake'
1 change: 1 addition & 0 deletions system/aliases.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ alias gut='git'

#### Navigate to dotfiles repo
alias dot='cd $DOTDIR'

14 changes: 7 additions & 7 deletions tmux/bindings.conf
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,13 @@ bind-key -T root WheelDownPane \
# Use vim keybindings in copy mode
setw -g mode-keys vi

#bind-key -T edit-mode-vi Up send-keys -X history-up
#bind-key -T edit-mode-vi Down send-keys -X history-down
#unbind-key -T copy-mode-vi Space ; bind-key -T copy-mode-vi v send-keys -X begin-selection
#unbind-key -T copy-mode-vi Enter ; bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xclip -selection c"
##unbind-key -T copy-mode-vi C-v ; bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
#unbind-key -T copy-mode-vi [ ; bind-key -T copy-mode-vi [ send-keys -X begin-selection
#unbind-key -T copy-mode-vi ] ; bind-key -T copy-mode-vi ] send-keys -X copy-selection
bind-key -T edit-mode-vi Up send-keys -X history-up
bind-key -T edit-mode-vi Down send-keys -X history-down
unbind-key -T copy-mode-vi Space ; bind-key -T copy-mode-vi v send-keys -X begin-selection
unbind-key -T copy-mode-vi Enter ; bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xclip -selection c"
unbind-key -T copy-mode-vi C-v ; bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle
unbind-key -T copy-mode-vi [ ; bind-key -T copy-mode-vi [ send-keys -X begin-selection
unbind-key -T copy-mode-vi ] ; bind-key -T copy-mode-vi ] send-keys -X copy-selection

#############################################
####### bind copymode to prefix + k ##########
Expand Down

0 comments on commit 649d87e

Please sign in to comment.