summaryrefslogtreecommitdiff
path: root/vimrc
diff options
context:
space:
mode:
authorjohannst <stoelp@eit.uni-kl.de>2016-12-06 18:12:17 +0100
committerjohannst <stoelp@eit.uni-kl.de>2016-12-06 18:12:17 +0100
commit1c2e37e6a15c25170e85d58fb44db01f97d7e1e0 (patch)
tree7dee9aba7d83a2e464bdbd6b872ae6aa09c487c8 /vimrc
parent5f57d7a683211a7d0f2e1c16ef10e46a616f7dfc (diff)
downloaddotfiles-1c2e37e6a15c25170e85d58fb44db01f97d7e1e0.tar.gz
dotfiles-1c2e37e6a15c25170e85d58fb44db01f97d7e1e0.zip
vimrc: added yankring plugin; AsynCmdProcessor, cmd line now reports return value of command
Diffstat (limited to 'vimrc')
-rw-r--r--vimrc18
1 files changed, 16 insertions, 2 deletions
diff --git a/vimrc b/vimrc
index 3f4623f..04c66b1 100644
--- a/vimrc
+++ b/vimrc
@@ -29,6 +29,7 @@ Plugin 'ap/vim-buftabline'
Plugin 'majutsushi/tagbar'
Plugin 'ctrlpvim/ctrlp.vim'
"Plugin 'vim-scripts/OmniCppComplete'
+Plugin 'vim-scripts/YankRing.vim'
call vundle#end()
@@ -88,6 +89,16 @@ if index(s:gEnabledPlugins, 'ctrlpvim/ctrlp.vim')!=-1
nnoremap <leader>b :CtrlPBuffer<CR>
endif
+if index(s:gEnabledPlugins, 'vim-scripts/YankRing.vim')!=-1
+ let g:yankring_max_history= 15
+ let g:yankring_persist = 1
+ let g:yankring_history_dir = $VIMHOME
+ let g:yankring_history_file = 'yankring'
+
+ nnoremap <leader>y :YRShow<CR>
+ "nnoremap <leader>ys :YRSearch<CR>
+endif
+
if index(s:gEnabledPlugins, 'ap/vim-buftabline')!=-1
let g:buftabline_indicators = 1
endif
@@ -377,10 +388,12 @@ if v:version>=800
function! s:StdErrCB(job, message)
endfunction
+ let s:gAsyncJobReturnStatus='*'
function! s:JobExitCB(job, status)
"execute 'cbuffer! ' . g:stderr_buffer
"execute 'caddbuffer ' . s:async_buffer
echom 'AsyncCmdProcessor: Job exited'
+ let s:gAsyncJobReturnStatus = a:status
let s:gAsyncJobRunning=0
endfunction
@@ -395,6 +408,7 @@ if v:version>=800
echom 'AsyncCmdProcessor: currently only one job at a time supported'
return
endif
+ let s:gAsyncJobReturnStatus='*'
let s:gAsyncJobRunning=1
let l:current_buffer = bufnr('%')
@@ -424,9 +438,9 @@ if v:version>=800
" can not be script local because used in statusline
function! GetAsyncJobStatus()
if exists('s:gAsyncJob')
- return job_status(s:gAsyncJob)
+ return job_status(s:gAsyncJob) . ':' . s:gAsyncJobReturnStatus
endif
- return '*'
+ return '*:*'
endfunction
function! s:KillAsyncJob()