Author Topic: [SOLVED] SEPro 25.0.0.9 Win Vim Emulation - Editing Causes Line to Jump  (Read 1879 times)

Allan

  • Community Member
  • Posts: 26
  • Hero Points: 1
Attached is a 6 sec GIF showing a line of text jumping to the end of the line above it after I enter Insert mode and hit the space bar to begin editing.  Is anyone else experiencing this behavior using Vim emulation?  Is there way to keep this from happening?  It's rather annoying.

Allan
« Last Edit: November 12, 2020, 01:08:48 PM by Allan »

patrickkox

  • Senior Community Member
  • Posts: 137
  • Hero Points: 6
  • Debian GNU/Linux user
Re: SEPro 25.0.0.9 Win Vim Emulation - Editing Causes Line to Jump
« Reply #1 on: November 12, 2020, 09:24:35 AM »
Is anyone else experiencing this behavior using Vim emulation?


I just checked on a C++ sourcefile and I don't experience this behaviour. I am however using Linux and it looks like you are running Windows, so maybe that's the reason?


I do experience this with comments (block comments), but with the backspace key. If I'm editing a commend and want to correct a type by hitting backspace, the next line moves to the end of the line I'm editing so that's the opposite behaviour I guess.


You could have a look in the options, there are a lot of possibilities there (Redefine common keys, Cursor movement, Adapting formatting, ...) so maybe there is something set there that causes this? (or backup your current configuration with the export function and start with a default configuration).

Allan

  • Community Member
  • Posts: 26
  • Hero Points: 1
[SOLVED] Re: SEPro 25.0.0.9 Win Vim Emulation - Editing Causes Line to Jump
« Reply #2 on: November 12, 2020, 01:07:40 PM »
The problem appears to be with the config files. 

Solution:  I closed SE and in Windows Explorer, I deleted my 25.0.0 folder.  Since I still have my 24.0.2 config files, SE copied these when I reopened it and the problem has gone away. . .for now  :).

Prior to doing the above, I did as PatrickKox suggested and exported my configuration using SE's Tools -> Options -> Export/Import Options -> Export All Options.  After performing the steps in the Solution above, I imported my exported configuration and the problem reappeared.  I then used Tools -> Options -> Export/Import Options -> Restore Default Options, but the problem remained.

Conclusion:  (1) At some point in time, the configuration files were corrupted.  (2) Once you have SE configured the way you want, make a backup of the My SlickEdit Config directory.

Thanks Patrick for the suggestions.  I didn't know SlickEdit had an Export/Import Option. . .been doing it the old fashion way. . .close SE, compress config directory, delete config directory, reopen SE.  This certainly makes it easier.

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6938
  • Hero Points: 531
Re: [SOLVED] SEPro 25.0.0.9 Win Vim Emulation - Editing Causes Line to Jump
« Reply #3 on: November 12, 2020, 01:41:05 PM »
It looks like you have word wrap turned on. That would do what you're seeing.

Allan

  • Community Member
  • Posts: 26
  • Hero Points: 1
Re: [SOLVED] SEPro 25.0.0.9 Win Vim Emulation - Editing Causes Line to Jump
« Reply #4 on: November 12, 2020, 02:02:11 PM »
Update:  It's the word wrap setting that's causing my problem.  My understanding of word wrap is that when you reach the right margin the words wrap.  However, in my case, the words have not reached my right margin.  When I start to edit a line of code, the line I'm editing jumps up to the previous line.

@Clark:  Is this expected behavior?

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6938
  • Hero Points: 531
Re: [SOLVED] SEPro 25.0.0.9 Win Vim Emulation - Editing Causes Line to Jump
« Reply #5 on: November 12, 2020, 02:04:23 PM »
There definitely wordwrap options which won't wait until you reach the margin.

Allan

  • Community Member
  • Posts: 26
  • Hero Points: 1
Re: [SOLVED] SEPro 25.0.0.9 Win Vim Emulation - Editing Causes Line to Jump
« Reply #6 on: November 12, 2020, 03:37:09 PM »
I see.  I misunderstood the hint at the bottom of the Tools -> Options -> Languages -> All Languages -> Word Wrap.  In reading the help file, I find the margins entry for _command void margins(_str cmdline="") helpful.  It states:

Quote
When partial word wrap is on and typing characters, current line text is not appended with previous line and next line text is not appended to current line. This option provides word wrap similary to previous versions of SlickEdit. The partial word wrap option only effects word wrap when typing characters.

If I have word wrap and partial word wrap checked, then the jumping behavior goes away when editing within the margins.

I guess I'm just not cut out for wrapping. . .all that jumping around and everything  ;)

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6938
  • Hero Points: 531
Re: [SOLVED] SEPro 25.0.0.9 Win Vim Emulation - Editing Causes Line to Jump
« Reply #7 on: November 12, 2020, 03:47:18 PM »
The newer modernized word wrapping is great but definitely not what you are looking for.