1
0

plugin config cleanup

This commit is contained in:
valeth 2015-06-19 03:32:45 +02:00
parent 0945cef703
commit 28999f759d
5 changed files with 21 additions and 40 deletions

View File

@ -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

View File

@ -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"

View File

@ -1 +0,0 @@
command! Sw w !sudo tee % >/dev/null

View File

@ -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 = "\<Esc>]2;vim\<Esc>\\" . &t_ti
let &t_te = "\<Esc>]2;". previous_title . "\<Esc>\\" . &t_te
let previous_title = substitute(system("tmux display-message -p '#{pane_title}'"), '\n', '', '')
let &t_ti = "\<Esc>]2;vim\<Esc>\\" . &t_ti
let &t_te = "\<Esc>]2;". previous_title . "\<Esc>\\" . &t_te
noremap <silent><C-h> :call TmuxOrSplitSwitch('h', 'L')<cr>
noremap <silent><C-l> :call TmuxOrSplitSwitch('l', 'R')<cr>
noremap <silent><C-k> :call TmuxOrSplitSwitch('k', 'U')<cr>
noremap <silent><C-j> :call TmuxOrSplitSwitch('j', 'D')<cr>
noremap <silent><C-b> :call TmuxOrSplitSwitch('b', 'l')<cr>
noremap <silent><C-h> :call TmuxOrSplitSwitch('h', 'L')<cr>
noremap <silent><C-l> :call TmuxOrSplitSwitch('l', 'R')<cr>
noremap <silent><C-k> :call TmuxOrSplitSwitch('k', 'U')<cr>
noremap <silent><C-j> :call TmuxOrSplitSwitch('j', 'D')<cr>
noremap <silent><C-b> :call TmuxOrSplitSwitch('b', 'l')<cr>
else
noremap <C-h> <C-w>h
noremap <C-j> <C-w>j
noremap <C-k> <C-w>k
noremap <C-l> <C-w>l
noremap <C-h> <C-w>h
noremap <C-j> <C-w>j
noremap <C-k> <C-w>k
noremap <C-l> <C-w>l
endif

View File

@ -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