Skip to content

Instantly share code, notes, and snippets.

@AhmedAKhan
AhmedAKhan / tmux.conf
Created July 9, 2017 00:34
this is my tmux configuration file
# Smart pane switching with awareness of vim splits
# See: https://github.com/christoomey/vim-tmux-navigator
is_vim='echo "#{pane_current_command}" | grep -iqE "(^|\/)g?(view|n?vim?x?)(diff)?$"'
bind -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L"
bind -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D"
bind -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U"
bind -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R"
bind -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l"
# bind C-l send-keys 'C-l' ## forgot what this is
@AhmedAKhan
AhmedAKhan / .vimrc
Last active July 5, 2017 15:31
this is my vimrc file
set nocompatible " be iMproved, required
filetype off " required
"" Vundle Plugin {
" 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')