Advertisement
Guest User

vim movement in sublime 3

a guest
Nov 24th, 2014
141
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // VIM STYLE MOVEMENT, CTRL+HJKL
  2.    {
  3.      "keys": ["ctrl+h"], "command": "move", "args": { "by": "characters", "forward": false }
  4.    },
  5.    {
  6.      "keys": ["ctrl+j"], "command": "move", "args": { "by": "lines", "forward": true }
  7.    },
  8.    {
  9.      "keys": ["ctrl+k"], "command": "move", "args": { "by": "lines", "forward": false }
  10.    },
  11.    {
  12.      "keys": ["ctrl+l"], "command": "move", "args": { "by": "characters", "forward": true }
  13.    },
  14.    // VIM STYLE HIGHLIGHTING CTRL+SUPER+MOVEMENT
  15.    {
  16.      "keys": ["ctrl+shift+h"], "command": "move", "args": { "by": "characters", "forward": false, "extend": true }
  17.    },
  18.    {
  19.      "keys": ["ctrl+shift+j"], "command": "move", "args": { "by": "lines", "forward": true, "extend": true }
  20.    },
  21.    {
  22.      "keys": ["ctrl+shift+k"], "command": "move", "args": { "by": "lines", "forward": false, "extend": true }
  23.    },
  24.    {
  25.      "keys": ["ctrl+shift+l"], "command": "move", "args": { "by": "characters", "forward": true, "extend": true }
  26.    },
  27.    //  BEGINNING/END OF LINE
  28.    {"keys": ["ctrl+a"], "command": "move_to", "args": { "to": "bol" }},
  29.    {"keys": ["ctrl+g"], "command": "move_to", "args": { "to": "eol" }},
  30.    // BOL/EOL HIGHLIGHTING CTRL+SUPER+A/D
  31.    {"keys": ["ctrl+shift+a"], "command": "move_to", "args": { "to": "bol", "extend": true }},
  32.    {"keys": ["ctrl+shift+g"], "command": "move_to", "args": { "to": "eol", "extend": true }},
  33.    // PAGE UP AND DOWN CTRL+E/Q
  34.    {
  35.      "keys": ["ctrl+e"], "command": "move", "args": { "by": "pages", "forward": true }
  36.    },
  37.    {
  38.      "keys": ["ctrl+q"], "command": "move", "args": { "by": "pages", "forward": false }
  39.    },
  40.    // TAB LEFT AND RIGHT CTRL+SUPER+E/Q
  41.    {
  42.      "keys": ["ctrl+shift+e"], "command": "next_view"
  43.    },
  44.    {
  45.      "keys": ["ctrl+shift+q"], "command": "prev_view"
  46.    }
  47.  
  48. ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement