From a0aac0556b345387f837b3eefddf2816cf016ce9 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sat, 25 Apr 2015 14:39:30 +0100 Subject: Added airline, tmuxline, bufferline --- tmux.conf | 6 ++++++ vimrc | 25 +++++++++++++++++++------ zshrc | 2 +- 3 files changed, 26 insertions(+), 7 deletions(-) diff --git a/tmux.conf b/tmux.conf index cf28b29..15e5c1a 100644 --- a/tmux.conf +++ b/tmux.conf @@ -7,7 +7,11 @@ unbind C-b set -g prefix C-Space bind Space send-prefix +unbind r +bind r source-file ~/.tmux.conf + set -s escape-time 0 +set-option -g allow-rename off set -g @tpm_plugins ' \ tmux-plugins/tpm \ @@ -24,3 +28,5 @@ 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" + +source-file ~/.tmuxlinerc diff --git a/vimrc b/vimrc index 0b3060d..6f4c527 100644 --- a/vimrc +++ b/vimrc @@ -1,5 +1,3 @@ -"" Required by Vundle - set nocompatible filetype off set rtp+=~/.vim/bundle/vundle/ @@ -27,6 +25,9 @@ Plugin 'tpope/vim-scriptease' Plugin 'tpope/vim-sensible' Plugin 'tpope/vim-surround' Plugin 'tpope/vim-unimpaired' +Plugin 'bling/vim-airline' +Plugin 'bling/vim-bufferline' +Plugin 'edkolev/tmuxline.vim' filetype plugin indent on syntax on @@ -80,7 +81,7 @@ let NERDTreeIgnore=['\.pdf$', '\~$','\.toc$', \ '\.out$', '\.log$','\.aux$','\.sty$', \ '\.fdb_latexmk$', '\.synctex.gz$','\.latexmain$'] -"" Options +"" Options " Tabs and indent set smartindent @@ -141,7 +142,7 @@ set clipboard=unnamedplus try | colorscheme solarized | catch | endtry " General -nnoremap te :tabedit +nnoremap te :tabedit nnoremap tn :tabnew nnoremap to :tabonly nnoremap w :w @@ -149,10 +150,11 @@ nnoremap q :q! nnoremap h :set hlsearch! nnoremap n :set relativenumber! nnoremap sp :set paste! -nnoremap sv :source ~/.vim/vimrc +nnoremap sv :source ~/.vimrc nnoremap sc :source % nnoremap es :UltiSnipsEdit nnoremap i mxgg=G'x +nnoremap sw :%s/\s\+$// nnoremap @@ -167,9 +169,11 @@ nnoremap 3 " Dvorak specific nnoremap : , +vnoremap : , nnoremap , : +vnoremap , : -"" Latex +"" Latex let g:tex_fast="" "" Autocommands @@ -182,3 +186,12 @@ augroup END if has('nvim') tmap jk endif + +let g:airline_section_x = '' +let g:airline_section_y = '' +let g:airline_theme='solarized' +let g:tmuxline_theme='airline' +let g:airline_right_sep='' +let g:airline_left_sep='' +let g:tmuxline_preset = {'a':'#H','b':'#S','win':'#W','cwin':'#W','x':'%R','y':'%a','z':'%Y'} +let g:tmuxline_separators = {'left':'','left_alt':'>','right':'','right_alt':'<','space':' '} diff --git a/zshrc b/zshrc index 2b79683..9f644dc 100644 --- a/zshrc +++ b/zshrc @@ -78,7 +78,7 @@ alias gco='git checkout' # Configuration alias ez='vim ~/.zshrc' alias em='vim ~/.mutt/muttrc' -alias ev='vim ~/.vim/vimrc' +alias ev='vim ~/.vimrc' alias eza='vim ~/.zathurarc' alias et='vim ~/.tmux.conf' alias evi='vim ~/.vifm/vifmrc' -- cgit v1.2.3