virb 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -0
- data/lib/virb.vim +8 -1
- data/lib/virb/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -48,6 +48,8 @@ To evaluate several lines of code, you can either
|
|
48
48
|
1. select the lines in Vim's visual mode, and press ENTER to evaluate them;
|
49
49
|
2. use an ed-style range command: `:[range]Virb`
|
50
50
|
|
51
|
+
To clear the evaluation output butter, press <c-l>.
|
52
|
+
|
51
53
|
If IRB takes too long (more than about half a second) to evaluate your code,
|
52
54
|
you may need to manually force the session buffer to update itself. You can
|
53
55
|
force an update by pressing SPACE in normal mode.
|
data/lib/virb.vim
CHANGED
@@ -66,20 +66,27 @@ func VirbInterrupt()
|
|
66
66
|
call VirbRefresh()
|
67
67
|
endfunc
|
68
68
|
|
69
|
+
func! s:clearInteractiveBuffer()
|
70
|
+
:call s:focus_virb_output_window()
|
71
|
+
%d
|
72
|
+
:wincmd p
|
73
|
+
endfunc
|
74
|
+
|
69
75
|
function! VirbInteractive()
|
70
76
|
setlocal nu
|
71
77
|
command! -bar -range Virb :<line1>,<line2>call Virb()
|
72
78
|
set ft=ruby
|
79
|
+
set bt=nowrite
|
73
80
|
nnoremap <buffer> <cr> :call Virb()<cr>
|
74
81
|
vnoremap <buffer> <cr> :call Virb()<cr>
|
75
82
|
nnoremap <buffer> <space> :checkt<CR>
|
76
83
|
nnoremap <buffer> <c-c> :call VirbInterrupt()<CR>
|
84
|
+
nnoremap <buffer> <c-l> :call <SID>clearInteractiveBuffer()<CR>
|
77
85
|
endfunc
|
78
86
|
|
79
87
|
split! .virb/session
|
80
88
|
setlocal autoread
|
81
89
|
let s:virb_output_bufnr = bufnr('%')
|
82
|
-
setlocal nomodifiable
|
83
90
|
setlocal nu
|
84
91
|
|
85
92
|
" set up interactive buffer
|
data/lib/virb/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: virb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-11-14 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: A Vim shell for irb and rails console
|
15
15
|
email:
|