Created
October 20, 2018 15:20
-
-
Save TimUntersberger/162e412c271c5fc119f5c8c90d78c43c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set-option -g prefix C-a | |
unbind-key C-a | |
bind-key C-a send-prefix | |
set -g base-index 1 | |
# Easy config reload | |
bind-key R source-file ~/.tmux.conf \; display-message "tmux.conf reloaded." | |
# vi is good | |
setw -g mode-keys vi | |
# mouse behavior | |
set -g mouse on | |
set-option -g default-terminal screen-256color | |
bind-key : command-prompt | |
bind-key r refresh-client | |
bind-key L clear-history | |
bind-key space next-window | |
bind-key bspace previous-window | |
bind-key enter next-layout | |
# use vim-like keys for splits and windows | |
bind-key v split-window -h | |
bind-key s split-window -v | |
bind-key l send-keys 'C-l' | |
# smart pane switching with awareness of vim splits | |
bind-key -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iq nvim && tmux send-keys C-h) || tmux select-pane -L" | |
bind-key -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iq nvim && tmux send-keys C-j) || tmux select-pane -D" | |
bind-key -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iq nvim && tmux send-keys C-k) || tmux select-pane -U" | |
bind-key -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iq nvim && tmux send-keys C-l) || tmux select-pane -R" | |
bind-key C-o rotate-window | |
bind-key + select-layout main-horizontal | |
bind-key = select-layout main-vertical | |
set-window-option -g other-pane-height 25 | |
set-window-option -g other-pane-width 80 | |
bind-key q display-panes | |
bind-key c new-window | |
bind-key t next-window | |
bind-key T previous-window | |
bind-key [ copy-mode | |
bind-key ] paste-buffer | |
set-window-option -g display-panes-time 1500 | |
# Status Bar | |
set-option -g status-interval 1 | |
set-option -g status-left '' | |
set-option -g status-right '%l:%M%p' | |
set-window-option -g window-status-current-fg magenta | |
set-option -g status-fg default | |
# Status Bar solarized-dark (default) | |
set-option -g status-bg black | |
set-option -g pane-active-border-fg yellow | |
set-option -g pane-border-fg cyan | |
# Status Bar solarized-light | |
if-shell "[ \"$COLORFGBG\" = \"11;15\" ]" "set-option -g status-bg white" | |
if-shell "[ \"$COLORFGBG\" = \"11;15\" ]" "set-option -g pane-active-border-fg white" | |
if-shell "[ \"$COLORFGBG\" = \"11;15\" ]" "set-option -g pane-border-fg white" | |
# Set window notifications | |
setw -g monitor-activity on | |
set -g visual-activity on | |
# Enable native Mac OS X copy/paste | |
set-option -g default-command "/bin/bash -c 'which reattach-to-user-namespace >/dev/null && exec reattach-to-user-namespace $SHELL -l || exec $SHELL -l'" | |
# Allow the arrow key to be used immediately after changing windows | |
set-option -g repeat-time 0 | |
set -sg escape-time 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call plug#begin('~/.vim/plugged') | |
Plug 'autozimu/LanguageClient-neovim', { | |
\ 'branch': 'next', | |
\ 'do': 'bash install.sh', | |
\ } | |
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } | |
Plug 'HerringtonDarkholme/yats.vim' | |
Plug 'sheerun/vim-polyglot' | |
Plug 'christoomey/vim-tmux-navigator' | |
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } | |
Plug 'mhartington/nvim-typescript', {'for': ['typescript', 'tsx'], 'do': './install.sh' } | |
Plug 'junegunn/fzf.vim' | |
Plug 'mattn/emmet-vim' | |
Plug 'vim-airline/vim-airline' | |
Plug 'joshdick/onedark.vim' | |
Plug 'scrooloose/nerdtree' | |
call plug#end() | |
let g:deoplete#enable_at_startup = 1 | |
let g:LanguageClient_diagnosticsSignsMax = 0 | |
let g:LanguageClient_serverCommands = { | |
\ 'javascript': ['javascript-typescript-stdio'], | |
\ 'javascript.jsx': ['javascript-typescript-stdio'], | |
\ } | |
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>" | |
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>" | |
nnoremap <F5> :call LanguageClient_contextMenu()<CR> | |
nnoremap <silent> K :call LanguageClient#textDocument_hover()<CR> | |
nnoremap <silent> gd :call LanguageClient#textDocument_definition()<CR> | |
nnoremap <silent> <F2> :call LanguageClient#textDocument_rename()<CR> | |
nnoremap <silent> <C-p> :Files<CR> | |
tnoremap <Esc> <C-\><C-n> | |
" tmux navigator keybindings | |
nnoremap <silent> <c-h> :TmuxNavigateLeft<cr> | |
nnoremap <silent> <c-j> :TmuxNavigateDown<cr> | |
nnoremap <silent> <c-k> :TmuxNavigateUp<cr> | |
nnoremap <silent> <c-l> :TmuxNavigateRight<cr> | |
map <C-n> :NERDTreeToggle<CR> | |
autocmd StdinReadPre * let s:std_in=1 | |
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif | |
let NERDTreeMinimalUI = 1 | |
let NERDTreeDirArrows = 1 | |
let g:NERDTreeDirArrowExpandable = '▸' | |
let g:NERDTreeDirArrowCollapsible = '▾' | |
let &t_SI.="\e[5 q" | |
let &t_SR.="\e[4 q" | |
let &t_EI.="\e[1 q" | |
set hidden | |
set autoindent | |
set noshowmode | |
set tabstop=4 | |
set softtabstop=4 | |
set shiftwidth=4 | |
set number | |
set ttimeout | |
set ttimeoutlen=100 | |
set timeoutlen=3000 | |
set mouse=a | |
let g:airline_theme='onedark' | |
syntax on | |
colorscheme onedark |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setopt autocd | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
export LS_COLORS='ow=01;36;40' | |
export win='/mnt/c' | |
export tim="$win/Users/timun" | |
export PGHOST="localhost" | |
export PROMPT='%n %F{039}%c %F{112}%# %f' | |
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change. | |
export PATH="$PATH:$HOME/.rvm/bin" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment