Comments (11)
Looks like this is the Vim scripting limitation mentioned in installation guide
Original comment by [email protected]
on 21 Jan 2011 at 10:36
from conque.
Yeah. This is not possible to fix without adding new functionality to Vim
itself.
It is a very important feature, however. I'm planning on submitting a Vim patch
to fix this in the future. So leaving this ticket open.
Original comment by [email protected]
on 22 Jan 2011 at 2:25
- Changed state: Accepted
from conque.
I was wondering, if we told Vim to visit Insert mode in the Conque window,
would that be enough to cause a refresh?
I played around with some code like this:
function! MyTest()
let l:startWin = winnr() " Remember which window we started in
wincmd b " Go to my Conque window (last window on screen)
normal "a\<Esc>" " Enter Insert mode and leave again
exec l:startWin."wincmd w" " Return to start window
endfunction
Unfortunately it didn't seem to work. Perhaps the user must sit a while in
Insert mode, before the update occurs.
So then I tried this:
function! MyTest()
let s:startWin = winnr()
wincmd b
normal "a"
" After some relaxation in insert mode in the Conque window,
" call EndTest to put us back where we were.
augroup Test
autocmd CursorHoldI * call EndTest()
augroup END
endfunction
function! EndTest()
augroup Test
autocmd! " Clear the autocmd we created above
augroup END
normal "\<Esc>"
exec s:startWin."wincmd w"
endfunction
This actually worked! Conque updated, and I was left in my original window!
Although it did not return to Normal mode afterwards, but that may be my other
scripts interfering. (Also of note, it did not wait updatetime before firing
CursorHoldI, it fired immediately, which is fine for our purposes.)
Original comment by [email protected]
on 7 Nov 2011 at 12:30
from conque.
Ah, instead of normal "\<Esc>" (which didn't work) we can successfully leave
insert mode with stopinsert. I will see if I can turn this into a patch...
Original comment by [email protected]
on 12 Nov 2011 at 11:21
from conque.
Has this been released into a patch?
I'm trying to use the "Make" utility and it would be nice to see when it's done.
Original comment by [email protected]
on 20 Feb 2012 at 10:05
from conque.
Forget the above madness. In autoload/conque_term.vim, find the function
conque_term#on_blur, and remove or disable the following lines:
" turn off subprocess fast polling
if exists('b:ConqueTerm_Var')
sil exe s:py . ' ' . b:ConqueTerm_Var . '.idle()'
endif
I just added the check: && g:ConqueTerm_ReadUnfocused == 0
Does that work for you? (I have made some other changes.)
I have a new problem now! When full, the unfocused window does not autoscroll
to the bottom as new lines is added, so I can't read them until I visit it!
Original comment by [email protected]
on 10 Jun 2012 at 12:29
from conque.
Fixed that! To force scrolling, I went into term_obj.read(), switched focus to
the conqueterm window with:
call conque_term#get_instance().focus()
then to make the scrolling happen, set:
set_cursor = True
Afterwards, I had to refocus the original window and restore insert/normal
mode. Somehow it even puts the cursor back when it was on the last space!
My script becomes: http://hwi.ath.cx/code/home/.vim/autoload/conque_term.vim
Original comment by [email protected]
on 10 Jun 2012 at 11:02
from conque.
I've tried to download your version a few times but haven't been able to
connect to "hwi.ath.cx". Can you attach it to this issue?
Thanks.
Original comment by [email protected]
on 12 Jun 2012 at 10:26
from conque.
Sorry about that. I fear ISPs are not giving us the full Internet. =(
Here are my files from autoload/ and plugin/, I hope they contain all the
relevant changes.
The changes I made to conque_term#read_all() may be important!
My apologies there are other additions to the code which are irrelevant to this
issue.
(Another feature I have added uses the variable insertModeWhenEntered to
remember and restore the previous mode when leaving a conqueterm that forced
insert mode.)
Original comment by [email protected]
on 20 Jun 2012 at 6:49
Attachments:
from conque.
Hi, Joey.
I'm seeing the same scrolling issue even with your changes in comment #9 as I
do with the standard Conque release.
Can you verify that nothing else is required to make your changes work?
Original comment by [email protected]
on 9 Apr 2014 at 10:17
from conque.
Hmmm I found another file in my plugin folder. Hope this helps!
Original comment by [email protected]
on 20 Apr 2014 at 10:02
Attachments:
from conque.
Related Issues (20)
- Vim exits catching deadly signal HUP HOT 2
- Error mapping message when pausing terminal with F8 HOT 1
- incorrect display when insert/delete characters into a pending command
- Python Interactive Shell doesn't work after 2 HOT 1
- Add support to wrap text written to terminal
- Copy/Paste not working with MacVim
- Bash inside Vim not working properly HOT 1
- F9 Crashes Vim
- Python files missing from official git repo
- Error on exit
- Default g:ConqueTerm_CWInsert = 1 out of the box
- Non-blocking, asynchronous terminal emulation in Vim.
- Vim inside Vim only partially works
- Conque confused about the position of the prompt if I edit previous output interactively
- vim nested in conqueterm
- Can you push version 2.3 to vim-scripts?
- Problem on CentOS 5.5 vim 7.0.237
- Registers do not work properly in ConqueTerm HOT 5
- Fix CloseOnEnd feature HOT 1
- Does not work with MacVim (ImportError)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from conque.