Skip to content

Instantly share code, notes, and snippets.

@rk76feWF
Created March 20, 2023 07:13
Show Gist options
  • Save rk76feWF/8d50ba01ed610b60265fec63b6b86ec4 to your computer and use it in GitHub Desktop.
Save rk76feWF/8d50ba01ed610b60265fec63b6b86ec4 to your computer and use it in GitHub Desktop.
DevServer
set -g default-terminal "xterm-256color"
unbind C-b
set -g prefix C-g
bind C-g send-prefix
bind \\ split-window -h
bind - split-window -v
setw -g mode-keys vi
bind-key -T copy-mode-vi 'v' send -X begin-selection
bind-key -T copy-mode-vi 'C-v' send -X rectangle-toggle
bind-key -T copy-mode-vi 'y' send -X copy-selection
set -s escape-time 0
# vim-like pane switching
bind -r k select-pane -U
bind -r j select-pane -D
bind -r h select-pane -L
bind -r l select-pane -R
# カレントディレクトリで開く
bind c new-window -c '#{pane_current_path}'
bind '"' split-window -c '#{pane_current_path}'
bind % split-window -h -c '#{pane_current_path}'
set number
set confirm
set title
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
set autoindent
set smartindent
set cindent
inoremap <silent>jj <ESC>
nnoremap <silent><ESC><ESC> :noh<CR>
nnoremap <Return><Return> <C-w><C-w>
if has('vim_starting')
let &t_SI .= "\e[6 q"
let &t_EI .= "\e[2 q"
let &t_SR .= "\e[4 q"
endif
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../'
alias g='git'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment