-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cursor Visual Movement During Replace #8
Comments
I'm having the same issue, and set showcmd worked for me as well |
|
I've run into this as well- it seems to be related to #3. I can reliably reproduce that issue as well, though my test case is just using |
Note: this is for iterm2 only Good news everyone, looks like I found a solution thanks to the guys at casecommons... Add to your
Add to your
https://github.com/Casecommons/casecommons_workstation/blob/master/templates/default/dot_tmux.conf.erb |
Oh and one more thing, w/ the above solution you do not need vitality.vim for the cursor change, that is all you need. |
@slj have you seen this solution? This fixes the problems w/ the cursor change in tmux. I've made some updates since this: https://github.com/aaronjensen/vimfiles/blob/master/vimrc#L438-453 I wonder if you should incorporate this into vitality? |
Can you explain what each part of that does? I don't want to just start throwing in random magical numbers without knowing what they do. |
Sure. The escape codes in
In order to make these work with tmux, you must override
Let me know if you have any other questions, happy to help. |
The
|
@aaronjensen your solution doesn't work for me on Ubuntu 10.04 LTS running tmux 1.6 and vim 7.3. For now, I'm using the following, which works fine so far:
|
@tylerball no, it wouldn't. it's an iterm specific solution. |
Sorry, Ubuntu is the OS I'm ssh-ing into. I'm using iTerm2 on my 10.6.8 On Tue, Aug 28, 2012 at 4:46 PM, Aaron Jensen notifications@git.luolix.topwrote:
-Tyler |
@tylerball I ssh'd to myself, opened tmux then vim and it worked fine. Some things to check:
|
This works for both setting cursor colour and style per window/pane:
for setting cursor color:
for setting cursor style:
rrggbb is 2-digit hex triplet specifying an RGB value, and n is digit 0, 1 or 2 (block, vertical bar, underline) |
it causes too many weird issues: sjl/vitality.vim#8 and with powerline it's not needed as much. Though it was nice while it lasted.
I recently switched to using tmux inside iTerm2, and I installed vitality.vim because it was a recommended plugin for this particular trifecta of software. I recently noticed some oddness though- past a certain column, whenever I would hit
r
to replace a single character, the cursor would visually jump backwards a good bit. It wouldn't affect the replacement but it was still visually jarring. It would jump back even further if I hit ESC instead of doing the replacement. Once again, the cursor didn't actually move, but since I was now in normal mode it was even more off-putting.(Col 13)
r
: Cursor changes and stays in place(Col 14+)
r
: Cursor changes and visually moves back ~13 columns.There are two workarounds that I've found:
set showcmd
- No idea why this works, but my coworker and I worked through his .vimrc to figure out why his didn't exhibit the same behavior. This was the line that fixed it for him.let g:vitality_fix_cursor = 0
- Works as well, though if I want an insert bar it's not a practical solution.set showcmd
works for me in the meantime- just wanted to give you a heads up.vim - 7.3.462 (same issue with 7.3 and 7.3.333)
tmux - 1.6
iTerm2 - 1.0.0.20120203
The text was updated successfully, but these errors were encountered: