Sublime Forum

Special Movement Commands and Vim Toggle

#1

VI has all sorts of cool keyboard movement commands, moving around by word, end of line, etc.

  1. I looked through the docs and couldn’t find a list of cool movement commands. Can someone point me to a list.

  2. If there aren’t any cool movement commands, are there some custom keybindings that people have added that I can pull in from a plugin or something;

  3. if there aren’t any cool movement commands, and there isn’t a cool package with them, is there any way to toggle the vim plugin on/off? thanks

0 Likes

#2

[ 1 ]

You can use ctrl to move by words and alt to move by sub-words.

Those modifiers work with arrow keys, backspace, & delete.

Combined with shift, they will select text.

To work with lines, use home & end instead of the arrow keys.

 

[ 2 | 3 ]

Sublime text has a native Vintage mode, which emulates some of Vim’s functionality.

There are also various Vintage Extensions & other Vim-related plugins.

 



 

Check out:

Add this key-binding if you end up installing WordHighlight:

	{ "keys": ["ctrl+shift+alt+enter"],
		"command": "select_highlighted_words", "context":
			[	{ "key": "selection_empty",   "operator": "equal", "operand": false },
				{ "key": "setting.is_widget", "operator": "equal", "operand": false } ] },

 

Also check out the Selection menu:

1 Like