Created
July 31, 2017 03:20
Star
You must be signed in to star a gist
config include mouse grab actions for vim and tmux together with powerline features for zshrc and airline for vim
This file contains 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
source /usr/lib/python3.6/site-packages/powerline/bindings/tmux/powerline_tmux_2.1_plus.conf | |
set -g prefix C-b | |
set -g default-terminal "tmux-256color" | |
set -g history-limit 1000 | |
set -g mouse on | |
set -g set-titles on | |
set -g set-titles-string "#T" | |
setw -g monitor-activity on | |
set -g visual-activity on | |
set -g status-justify centre | |
#### P L U G I N S ########### | |
set -g @plugin 'tmux-plugins/tpm' | |
set -g @plugin 'tmux-plugins/tmux-sensible' | |
set -g @resurrect-strategy-vim 'session' | |
set -g @resurrect-capture-pane-contents 'on' |
This file contains 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
runtime! archlinux.vim | |
"set rtp+=/usr/lib/python3.6/site-packages/powerline/bindings/vim/ | |
set t_Co=256 | |
syntax spell toplevel | |
syntax enable | |
set spellfile=~.vim/spell/fr.utf-8.add | |
set spell spelllang=fr | |
set nospell | |
set mouse+=a | |
if &term =~ '^screen' | |
" tmux knows the extended mouse mode | |
set ttymouse=xterm2 | |
endif | |
if has("mouse_sgr") | |
set ttymouse=sgr | |
else | |
set ttymouse=xterm2 | |
endif | |
set tabstop=2 | |
set shiftwidth=2 | |
set expandtab | |
"source ~/.vim/bundle/minibufexpl.vim | |
execute pathogen#infect() | |
:colorscheme slate | |
nmap <F8> :TagbarToggle<CR> | |
" obsession helper for show status of obsession recording session | |
let ObsessionStatus = "statusline" "REC" "Pause" | |
" neoComplete Plugin for completion | |
let g:neocomplete#enable_at_startup = 1 | |
let g:neocomplete#enable_smart_case = 1 | |
let g:neocomplete#sources#syntax#min_keyword_length = 3 | |
" Syntastic Plugin configuration | |
set statusline+=%#warningmsg# | |
set statusline+=%{SyntasticStatuslineFlag()} | |
set statusline+=%* | |
let g:syntastic_always_populate_loc_list = 1 | |
let g:syntastic_auto_loc_list = 1 | |
let g:syntastic_check_on_open = 1 | |
let g:syntastic_check_on_wq = 0 | |
" NerdTree Plugin configuration | |
map <C-n> :NERDTreeToggle<CR> | |
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif | |
let g:NERDTreeDirArrowExpandable = '▸' | |
let g:NERDTreeDirArrowCollapsible = '▾' | |
" TagBar plugin for show tags name list from code on vsplited window | |
let g:tagbar_autofocus = 1 | |
" minibufferexpl Plugin configuration | |
hi MBENormal guifg=#FFFFFF guibg=#B2B2B2 | |
hi MBEChanged guifg=#D70000 guibg=#B2B2B2 | |
hi MBEVisibleNormal guifg=#005F5F guibg=#B2B2B2 | |
hi MBEVisibleChanged guifg=#FF5F00 guibg=#B2B2B2 | |
hi MBEVisibleNormalActive guifg=#0087FF guibg=#B2B2B2 | |
hi MBEVisibleChangedActive guifg=#DF6F05 guibg=#B2B2B2 | |
" airline Plugin configuration | |
let g:airline#extensions#tabline#enabled = 1 | |
let g:airline_theme='wombat' | |
let g:airline#extensions#tabline#left_sep = "\uE0B0" | |
let g:airline#extensions#tabline#left_alt_sep = "|" | |
let g:airline_left_sep = "\uE0B0" | |
let g:airline#extensions#branch#enabled = 1 | |
let g:airline#extensions#obsession#enabled = 1 | |
let g:airline#extensions#obsession#indicator_text = 'REC' | |
let g:airline#extensions#hunks#enabled = 1 | |
set nocp | |
filetype plugin indent on | |
" default arrow keys from insert mode due to plugins added with tmux and vim | |
" together... remap keys fo rinsert mode fix that | |
imap <ESC>oA <ESC>ki | |
imap <ESC>oB <ESC>ji | |
imap <ESC>oC <ESC>li | |
imap <ESC>oD <ESC>hi | |
" bare minimum for TagBar | |
" See :help tagbar-extend for more details. | |
let g:tagbar_type_perl6 = { | |
\ 'ctagstype' : 'perl6', | |
\ 'kinds' : [ | |
\ 'c:classes', | |
\ 'g:grammar', | |
\ 'm:methods', | |
\ 'o:modules', | |
\ 'p:packages', | |
\ 'r:roles', | |
\ 'u:rules', | |
\ 'b:submethods', | |
\ 's:subroutines', | |
\ 't:tokens' | |
\ ] | |
\ } |
This file contains 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
export ZSH=/home/jerome/.oh-my-zsh | |
export PERL6_NCURSES_LIB=/usr/lib/libncursesw.so.6.0 | |
export DISABLE_AUTO_TITLE='true' | |
#ZSH_THEME="bira" | |
POWERLEVEL9K_MODE='nerdfont-complete' # awesome-fontconfig | |
ZSH_THEME="powerlevel9k/powerlevel9k" | |
POWERLEVEL9K_STATUS_VERBOSE=false | |
POWERLEVEL9K_STATUS_OK_IN_NON_VERBOSE=true | |
POWERLEVEL9K_PROMPT_ON_NEWLINE=true | |
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(root_indicator context dir_writable dir) | |
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status vcs rvm vi_mode) | |
POWERLEVEL9K_PROMPT_ADD_NEWLINE=true | |
POWERLEVEL9K_TIME_FORMAT="%D{ \U1F4C5 %d/%m/%y}" | |
POWERLEVEL9K_DIR_BACKGROUND="400" | |
POWERLEVEL9K_SHORTEN_STRATEGY="trucate_with_package_name" | |
POWERLEVEL9K_SHORTEN_DIR_LENGTH=5 | |
POWERLEVEL9K_ALWAYS_SHOW_USER=true | |
POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX='' | |
POWERLEVEL9K_MULTILINE_SECOND_PROMPT_PREFIX="> " | |
#"%K{white}%F{blue} `TZ=\"Asia/Bangkok\" date +%T` \U23F2 %f%k%F{white}\UE0B0%f " #"$(prompt_history left 1 && prompt_status left 2 && left_prompt_end)" | |
POWERLEVEL9K_DIR_HOME_BACKGROUND='051' | |
POWERLEVEL9K_DIR_DEFAULT_BACKGROUND='051' | |
POWERLEVEL9K_DIR_HOME_SUBFOLDER_BACKGROUND='051' | |
POWERLEVEL9K_SHOW_CHANGESET=true | |
POWERLEVEL9K_CONTEXT_BACKGROUND="red" | |
POWERLEVEL9K_VCS_GIT_ICON='\UE702' | |
POWERLINE9K_LINE_BACKGROUND='white' | |
POWERLEVEL9K_LEFT_SEGMENT_SEPARATOR='\uE0b4' | |
POWERLEVEL9K_RIGHT_SEGMENT_SEPARATOR='\ue0b6' | |
export UPDATE_ZSH_DAYS=30 | |
COMPLETION_WAITING_DOTS="true" | |
HIST_STAMPS="mm/dd/yyyy" | |
plugins=(git archlinux colorize common-aliases systemd zsh-syntax-highlighting) | |
if [[ -n $SSH_CONNECTION ]]; then | |
export EDITOR='vim' | |
else | |
export EDITOR='vim' | |
fi | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment