Author Topic: Cursor motion && multiple cursors  (Read 1046 times)


  • Senior Community Member
  • Posts: 2185
  • Hero Points: 192
  • Text
Cursor motion && multiple cursors
« on: July 29, 2018, 09:45:15 pm »
When I'm using multiple cursors to edit several lines I depend on things like home, end and word motion to keep the cursors semantically synchronized across those lines.
For example:
Code: [Select]
void f1(); // Comment
void my_function(); // Comment
void your_function(); // Comment

Set 3 cursors, type <home><Ctrl+RightArrow><Ctrl+RightArrow><Ctrl+RightArrow>
And all 3 cursors are now at the start of the comment.

In VIM mode I could have typed "<home>f/"
to skip to the first / character.

1: In non-VIM mode, is there a way to do this?

2: Is it generally safe to bind mode specific functions to keys when not in that mode?
For example, binding vi_char_search_forward to some key while in "VisualC++" mode?

3: What other (less obvious) cursor motion commands are useful in multiple cursor mode?


  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 5768
  • Hero Points: 460
Re: Cursor motion && multiple cursors
« Reply #1 on: August 01, 2018, 04:16:02 pm »
1. No search commands I know of will search for each cursor. At least not yet.
2. I wouldn't recommend pulling in vim emulation specific commands into a non-vim emulation. Vim emulation is too different in most cases. For other emulations, there typically isn't a problem.
3. Don't know.

I'm going to look into adding multiple cursor support to the '/' (l or find) command when arguments are specified (i.e.  "l `/" would find '/' for each cursor). Seems like the mini find and big find tool window could have limited support for multiple cursors.