# HG changeset patch # User zegervdv # Date 1415469674 -3600 # Node ID 51d25ca2f262f72454765a0b402ee20d8be4281c # Parent e3639166a8ab6ddd758d62c0074526c44c726f67 Updates to tmuxline config diff -r e3639166a8ab -r 51d25ca2f262 tmux/statusline.conf --- a/tmux/statusline.conf Thu Nov 06 21:40:28 2014 +0100 +++ b/tmux/statusline.conf Sat Nov 08 19:01:14 2014 +0100 @@ -1,9 +1,9 @@ # This tmux statusbar config was created by tmuxline.vim -# on zo, 26 okt 2014 +# on za, 08 nov 2014 set -g status-bg "colour236" set -g message-command-fg "colour250" -set -g status-justify "left" +set -g status-justify "centre" set -g status-left-length "100" set -g status "on" set -g pane-active-border-fg "colour109" @@ -23,7 +23,7 @@ setw -g window-status-activity-fg "colour109" setw -g window-status-separator "" setw -g window-status-bg "colour236" -set -g status-left "#[fg=colour235,bg=colour109,bold] #S #[fg=colour109,bg=colour236,nobold,nounderscore,noitalics]" -set -g status-right "#[fg=colour239,bg=colour236,nobold,nounderscore,noitalics]#[fg=colour250,bg=colour239] %Y-%m-%d | %H:%M #[fg=colour109,bg=colour239,nobold,nounderscore,noitalics]#[fg=colour235,bg=colour109] #h " -setw -g window-status-format "#[fg=colour250,bg=colour236] #I |#[fg=colour250,bg=colour236] #W " -setw -g window-status-current-format "#[fg=colour236,bg=colour239,nobold,nounderscore,noitalics]#[fg=colour250,bg=colour239] #I |#[fg=colour250,bg=colour239] #W #[fg=colour239,bg=colour236,nobold,nounderscore,noitalics]" +set -g status-left "#[fg=colour235,bg=colour109,bold] #S #[fg=colour109,bg=colour239,nobold,nounderscore,noitalics]#[fg=colour250,bg=colour239] #F #[fg=colour239,bg=colour236,nobold,nounderscore,noitalics]#[fg=colour250,bg=colour236] #W #[fg=colour236,bg=colour236,nobold,nounderscore,noitalics]" +set -g status-right "#[fg=colour239,bg=colour236,nobold,nounderscore,noitalics]#[fg=colour250,bg=colour239] %a %b %d | %R #[fg=colour109,bg=colour239,nobold,nounderscore,noitalics]#[fg=colour235,bg=colour109] #h " +setw -g window-status-format "#[fg=colour236,bg=colour236,nobold,nounderscore,noitalics]#[default] #I | #W #[fg=colour236,bg=colour236,nobold,nounderscore,noitalics]" +setw -g window-status-current-format "#[fg=colour236,bg=colour239,nobold,nounderscore,noitalics]#[fg=colour250,bg=colour239] #I | #W #[fg=colour239,bg=colour236,nobold,nounderscore,noitalics]" diff -r e3639166a8ab -r 51d25ca2f262 vimrc --- a/vimrc Thu Nov 06 21:40:28 2014 +0100 +++ b/vimrc Sat Nov 08 19:01:14 2014 +0100 @@ -26,7 +26,7 @@ " Tmux Plug 'benmills/vimux', { 'on': 'VimuxRunCommand' } -Plug 'edkolev/tmuxline.vim', { 'on': 'TmuxLineSnapshot' } +Plug 'edkolev/tmuxline.vim', { 'on': 'TmuxlinSnapshot' } " Search and Complete Plug 'Shougo/neocomplete' @@ -55,7 +55,7 @@ Plug 'osyo-manga/vim-marching', { 'for': 'c' } " Python -Plug 'davidhalter/jedi-vim', { 'for': 'python' } +" Plug 'davidhalter/jedi-vim', { 'for': 'python' } " Coffeescript Plug 'kchmck/vim-coffee-script', { 'for': 'coffeescript' } @@ -159,7 +159,11 @@ set undofile set viminfo='10,\"100,:20,%,n~/.viminfo - +set backupdir=/tmp//,. +set directory=/tmp//,. +if v:version >= 703 + set undodir=/tmp//,. +endif set wildignore+=*/tmp/*,*.so,*.swp,*.zip,*.o,*.bin,*.elf,*.hex " Sentences are ended with double spaces @@ -318,7 +322,7 @@ " if you do you'll probably want to use another mark. inoremap mzgUiw`za -nnoremap ev :vsplit $MYVIMRC +nnoremap ev :split $MYVIMRC " Move lines from visual selection vnoremap :m '>+1gv=gv @@ -545,12 +549,20 @@ " Vimux {{{ let g:VimuxUseNearest = 1 nnoremap s :w -autocmd FileType python nnoremap s :w:call VimuxRunCommand('%run -i ' . expand('%')) -autocmd FileType ruby nnoremap s :w:call VimuxRunCommand('rake spec') -autocmd FileType c nnoremap s :w:call VimuxRunCommand('make') +autocmd FileType python nnoremap s :w:VimuxRunCommand('%run -i ' . expand('%')) +autocmd FileType ruby nnoremap s :w:VimuxRunCommand('rake spec') +autocmd FileType c nnoremap s :w:VimuxRunCommand('make') " }}} " Tmuxline {{{ let g:tmuxline_powerline_separators=0 +let g:tmuxline_preset = { + \ 'a': '#S', + \ 'b': '#F', + \ 'c': '#W', + \ 'win': ['#I', '#W'], + \ 'cwin': ['#I', '#W'], + \ 'y': ['%a %b %d', '%R'], + \ 'z': '#h'} " }}} " After-objects {{{ autocmd VimEnter * call after_object#enable('=', ':', '-', '#', ' ')