From 28999f759d317072a2f48da84e483df5974f76ab Mon Sep 17 00:00:00 2001 From: valeth Date: Fri, 19 Jun 2015 03:32:45 +0200 Subject: [PATCH] plugin config cleanup --- plugins/crypto.vim | 5 ----- plugins/powerline.vim | 12 +----------- plugins/sudo.vim | 1 - plugins/tmux.vim | 40 +++++++++++++++++++------------------- plugins/vim-colortuner.vim | 3 --- 5 files changed, 21 insertions(+), 40 deletions(-) delete mode 100644 plugins/crypto.vim delete mode 100644 plugins/sudo.vim delete mode 100644 plugins/vim-colortuner.vim diff --git a/plugins/crypto.vim b/plugins/crypto.vim deleted file mode 100644 index 4ca5886..0000000 --- a/plugins/crypto.vim +++ /dev/null @@ -1,5 +0,0 @@ -if v:version >= 704 - "set cryptmethod=blowfish - - "au BufReadPost * if &key != "" | set noswapfile nowritebackup viminfo= nobackup noshelltemp history=0 secure | endif -endif diff --git a/plugins/powerline.vim b/plugins/powerline.vim index 0749b63..9060d04 100644 --- a/plugins/powerline.vim +++ b/plugins/powerline.vim @@ -1,16 +1,6 @@ set laststatus=2 set noshowmode -"set showtabline=2 - -"if $TERM != "linux" - "if executable("powerline") - "if executable("python3") - "let $PYTHONPATH="/usr/lib/python3.4/site-packages" - "elseif executable("python2") - "let $PYTHONPATH="/usr/lib/python2.7/site-packages" - "endif - "endif -"endif +set showtabline=2 let g:powerline_pycmd = "py3" let g:powerline_pyeval = g:powerline_pycmd . "eval" diff --git a/plugins/sudo.vim b/plugins/sudo.vim deleted file mode 100644 index 567e145..0000000 --- a/plugins/sudo.vim +++ /dev/null @@ -1 +0,0 @@ -command! Sw w !sudo tee % >/dev/null diff --git a/plugins/tmux.vim b/plugins/tmux.vim index c7651f6..f2f400f 100644 --- a/plugins/tmux.vim +++ b/plugins/tmux.vim @@ -1,25 +1,25 @@ if exists('$TMUX') - function! TmuxOrSplitSwitch(wincmd, tmuxdir) - let previous_winnr = winnr() - silent! execute "wincmd " . a:wincmd - if previous_winnr == winnr() - call system("tmux select-pane -" . a:tmuxdir) - redraw! - endif - endfunction + function! TmuxOrSplitSwitch(wincmd, tmuxdir) + let previous_winnr = winnr() + silent! execute "wincmd " . a:wincmd + if previous_winnr == winnr() + call system("tmux select-pane -" . a:tmuxdir) + redraw! + endif + endfunction - let previous_title = substitute(system("tmux display-message -p '#{pane_title}'"), '\n', '', '') - let &t_ti = "\]2;vim\\\" . &t_ti - let &t_te = "\]2;". previous_title . "\\\" . &t_te + let previous_title = substitute(system("tmux display-message -p '#{pane_title}'"), '\n', '', '') + let &t_ti = "\]2;vim\\\" . &t_ti + let &t_te = "\]2;". previous_title . "\\\" . &t_te - noremap :call TmuxOrSplitSwitch('h', 'L') - noremap :call TmuxOrSplitSwitch('l', 'R') - noremap :call TmuxOrSplitSwitch('k', 'U') - noremap :call TmuxOrSplitSwitch('j', 'D') - noremap :call TmuxOrSplitSwitch('b', 'l') + noremap :call TmuxOrSplitSwitch('h', 'L') + noremap :call TmuxOrSplitSwitch('l', 'R') + noremap :call TmuxOrSplitSwitch('k', 'U') + noremap :call TmuxOrSplitSwitch('j', 'D') + noremap :call TmuxOrSplitSwitch('b', 'l') else - noremap h - noremap j - noremap k - noremap l + noremap h + noremap j + noremap k + noremap l endif diff --git a/plugins/vim-colortuner.vim b/plugins/vim-colortuner.vim deleted file mode 100644 index b9eae48..0000000 --- a/plugins/vim-colortuner.vim +++ /dev/null @@ -1,3 +0,0 @@ -let g:colortuner_preferred_schemes = [ 'seoul256', 'seoul256-light', 'molokai' ] -let g:colortuner_filepath = g:vim_cache_home . "/vim-colortuner" -let g:colortuner_enabled = 1