Set a layout with two panes divided horizontally Go to definition of the symbol under the cursor Start a "reverse" search using the word under the cursor and move to the closes match Start a search using the word under the cursor and move to the closes match Move cursor to the previous match of the search Move cursor to the next match of the current search Move cursor to the most last known position in your edit history Move cursor to the most recent known position in your edit history Move cursor to the end of the previous word Move cursor to the beginning of the previous word Move cursor to the beginning of the next word Move cursor to the last non-blank character of the line Move cursor to the first non-blank character of the line Move cursor to the matching pair (think in stuff like brackets and parenthesis). Move cursor to the last of line of the file Move cursor to the first of line of the file Everything else uses sublime's built-in features and commands. The keys marked with an * are bound to a command I implemented in this plugin. Enable/disable the keybinding i in visual mode (to enter insert mode). nv_enable_transition_from_visual_to_insert_mode.When set to true will highlight the line where the cursor is only in command_mode, and will stop when you enter insert mode. nv_toggle_hightlight_line_on_command_mode.This sets the cursor shape to block when command_mode is enabled and changes it to a "beam" when entering insert mode. Since ctrl+w is bound to a common task (closing a tab) you need to set this variable to true in order to change the default behavior and enable the rest of the commands. This one enables "window commands" that begin with ctrl+w. There are a few features which are optional so I offer some configuration settings so you can enable them at will. Move the folder inside your sublime /Packages.Clone or download this repository, (re)name the folder to NvMode if necessary.Open the Command Palette again, then select Package Control: Install Package.Copy the link of this repository on the input.Open the Command Palette via Ctrl/ ⌘+ Shift+ p.The idea is to have some VIM inspired shortcuts bound to built-in commands from sublime text (with a few exceptions). This way we can reuse these keys to execute commands that make it easier to navigate throught the code.īut of course command_mode will be useless if we don't have any commands, so I took inspiration from VIM and setup some bindings based on their approach. command_mode is a built-in feature of sublime, while is active it disables the default key bindings of every key that inserts text in the file. Take advantage of the command_mode setting to enable a basic modal editing experience. I also will not be implementing more custom commands for this plugin. You will not get composable commands, fancy text objects, macros, a vimrc. It is not meant to be a complete VIM emulation layer. An aggresive keymap configuration inspired by VIM.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |