From 3c7228deb4585c55e65b107e0b31d45f2345e061 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Tue, 17 Apr 2018 18:18:11 +0100 Subject: Correct bug with i3blocks --- i3/.config/i3blocks/config | 4 ++-- tmux/.tmux.conf | 3 +++ vim/.vimrc | 16 ++++++++++++---- zsh/.zshrc | 1 + 4 files changed, 18 insertions(+), 6 deletions(-) diff --git a/i3/.config/i3blocks/config b/i3/.config/i3blocks/config index 93850ee..bd9357e 100644 --- a/i3/.config/i3blocks/config +++ b/i3/.config/i3blocks/config @@ -31,13 +31,13 @@ signal=1 [primary] label= -command=echo "$(xclip -o | cut -c1-9)" +command=echo "$(xclip -o | cut -c1-9 | sed -e 's/[^a-zA-Z0-9\-]/_/g')" min_width=15 interval=5 [clipboard] label= -command=echo "$(xclip -o -selection "clipboard" | cut -c1-9)" +command=echo "$(xclip -o -selection "clipboard" | cut -c1-9 | sed -e 's/[^a-zA-Z0-9\-]/_/g')" instance=Master interval=5 diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index d99acac..71bc79d 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -18,4 +18,7 @@ bind -n C-Right next-window bind-key P swap-window -t -1 bind-key N swap-window -t +1 +WINTAB_BOUNDARY=create +WINTAB_MODE=wintab +WINTAB_ROOT=$HOME/Dropbox/projects/vim-wintab source-file $WINTAB_ROOT/wintab.tmux.conf diff --git a/vim/.vimrc b/vim/.vimrc index f428cda..72e0847 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -61,7 +61,8 @@ Plug 'tpope/vim-sensible' Plug 'tpope/vim-surround' Plug 'tpope/vim-unimpaired' Plug 'urbainvaes/vim-remembrall' -Plug 'urbainvaes/vim-wintab' +" Plug 'urbainvaes/vim-wintab' +Plug '~/Dropbox/projects/vim-wintab' Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' Plug 'vim-scripts/ReplaceWithRegister' @@ -236,6 +237,9 @@ let g:vimtex_view_method='zathura' let g:vimtex_quickfix_mode=2 let g:vimtex_compiler_progname='nvr' +let g:wintab_boundary='create' +let g:wintab_mode='wintab' + " YouCompleteMe let g:ycm_key_list_select_completion = ['', ''] let g:ycm_key_list_previous_completion = ['', ''] @@ -324,6 +328,7 @@ nmap [w AddWhiteSpaceBefore nnoremap w :update nnoremap q :q nnoremap d :bd! +nnoremap :q nnoremap ,bd :ls:bd @@ -427,15 +432,18 @@ augroup vimrc " Filetype specific autocmd FileType cmake setlocal commentstring=#%s autocmd FileType cpp setlocal commentstring=//%s - autocmd FileType dirvish setlocal errorformat=%f - autocmd FileType dirvish setlocal relativenumber - autocmd FileType dirvish silent! unmap autocmd FileType freefem comp freefem autocmd FileType gmsh setlocal makeprg=gmsh\ % autocmd FileType gnuplot setlocal commentstring=#%s autocmd FileType gnuplot setlocal makeprg=gnuplot\ % autocmd FileType python setlocal makeprg=python\ % autocmd FileType tex setlocal spell + + " Dirvish + autocmd FileType dirvish nnoremap t :!touch % + autocmd FileType dirvish setlocal errorformat=%f + autocmd FileType dirvish setlocal relativenumber + autocmd FileType dirvish silent! unmap augroup END " }}} diff --git a/zsh/.zshrc b/zsh/.zshrc index 1422dfd..8906910 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -142,6 +142,7 @@ alias vs="vim -S Session.vim" alias g='git' alias ga='git add' alias gc='git commit' +alias gco='git checkout' alias gd='git diff' alias gl='git pull' alias gp='git push' -- cgit v1.2.3