Home Vimlike Better Player Geek Browser One Dictionary

Vimlike

Introduction

VIMlike is Safari extension for the Vim-like keyboard experience. You can navigate a page and open a link with the keyboard shortcuts.

Screen Shot

Downloads

The latest version of Vimlike is available in AppStore:

Version History

v1.1.5

v1.1.3

v1.1.1

v1.0

Privacy Policy

Vimlike does NOT collect any of your data. The only data Vimlike stores are your settings. These are only saved locally. No one, other than you, has access to this data.

Because of the way Vimlike works, the Vimlike extension needs to have permission to access to the website. This is needed because Vimlike has to add javascript to manage keyboard shortcuts and links to the web page. However, Vimlike never use these permissions to actually read the websites you visit, or to access your browsing history.

Vimlike does not store any information about the websites you’re visiting. Not even locally on your device.

In Safari Preference, you can Allow or Deny the extensions to specific websites. In case you want to be extra cautious to certain websites, you can enable or disable Vimlike to the specific websites only.

Key Bindings

Cheatsheet (Default)

Screen Shot

Key Command
k Scroll up
j Scroll down
h Scroll left
l Scroll right
u Half page up
d Half page down
g Go to top of page
shift + g Go to bottom of page
f Toggle links
shift + f Toggle links (open a link in a new tab)
tab or n Toggle links / Move to next link or search result
shift + tab or shift + n Toggle links / Move to previous link or search result
esc or ` or
§ (configurable in Settings)
Back to Normal mode
shift + h Go back
shift + l Go forward
q Previous tab
w Next tab
t New tab
x Close tab
r Reload tab
/ Search links
i Go to the first edit box
19 Open tab 1…9
shift + / Toggle shortcut help

Cheatsheet (+Control)

Screen Shot

Key Command
control + f Scroll up a page
control + b Scroll down a page
control + j Previous tab
control + k Next tab
control + i Insert mode (Shortcuts are disabled)
control + d Toggle dark mode
control + u Play video in a fullscreen
control + p Play video in a PIP (picture-in-picture)

Vimlike supports navigating the web pages with the keyboard. When you type tab or n, Vimlike shows link tags. You can type tab / n, or shift + tab / shift + n to move the focus to the next link or the previous link. And you press enter to open the link. Otherwise, type the tag code or number to open the link directly.

Shortcut / opens the console to type the text and find matching links. You can also type tab / n, or shift + tab / shift + n to move the focus to the next matching link or the previous matching link.

Screen Shot

Customization

Vimlike supports customizing the mapping of the keyboard shortcuts in Vimlike app. Please refer Customization Guide for details.

settings.map(key, COMMAND);
settings.map(key, COMMAND, {includes: url}); // mapping the key only for the url
settings.map(key, COMMAND, {excludes: url}); // mapping the key excluding the url

The parameter url can be array of strings and regular expressions. For example,

settings.map('space', VLCommand.HALF_PAGE_DOWN, {excludes: ['https://www.youtube.com/watch', 'https://www.netflix.com/watch/']});
settings.map('space', VLCommand.HALF_PAGE_DOWN, {includes: [/www\.google\.co.*\/search\?/g]});

Default Key Mapping

Following script is the default key mapping.

// Scroll
settings.map('j', VLCommand.SCROLL_DOWN);
settings.map('k', VLCommand.SCROLL_UP);
settings.map('h', VLCommand.SCROLL_LEFT);
settings.map('l', VLCommand.SCROLL_RIGHT);
settings.map('d', VLCommand.HALF_PAGE_DOWN);
settings.map('u', VLCommand.HALF_PAGE_UP);
settings.map('space', VLCommand.HALF_PAGE_DOWN, {excludes: ['https://www.youtube.com/watch', 'https://www.netflix.com/watch/']});
settings.map('shift+space', VLCommand.HALF_PAGE_UP);
settings.map('ctrl+f', VLCommand.PAGE_DOWN);
settings.map('ctrl+b', VLCommand.PAGE_UP);
settings.map('g', VLCommand.SCROLL_TO_TOP);
settings.map('shift+g', VLCommand.SCROLL_TO_BOTTOM);

// Normal mode
settings.map('f', VLCommand.ACTIVATE_LINK);
settings.map('shift+f', VLCommand.ACTIVATE_LINK_WITH_NEW_TAB);
settings.map('n', VLCommand.NEXT_LINK);
settings.map('shift+n', VLCommand.PREV_LINK);
settings.map('tab', VLCommand.NEXT_LINK);
settings.map('shift+tab', VLCommand.PREV_LINK);
settings.map('shift+h', VLCommand.GO_BACK);
settings.map('shift+l', VLCommand.GO_FORWARD);
settings.map('q', VLCommand.PREV_TAB);
settings.map('w', VLCommand.NEXT_TAB);
settings.map('ctrl+j', VLCommand.PREV_TAB);
settings.map('ctrl+k', VLCommand.NEXT_TAB);
settings.map('t', VLCommand.NEW_TAB);
settings.map('i', VLCommand.FOCUS_INPUT);
settings.map('slash', VLCommand.SHOW_CONSOLE);
settings.map('ctrl+i', VLCommand.INSERT_MODE);
//settings.map('1', VLCommand.OPEN_TAB1);
//settings.map('2', VLCommand.OPEN_TAB2);
//settings.map('3', VLCommand.OPEN_TAB3);
//settings.map('4', VLCommand.OPEN_TAB4);
//settings.map('5', VLCommand.OPEN_TAB5);
//settings.map('6', VLCommand.OPEN_TAB6);
//settings.map('7', VLCommand.OPEN_TAB7);
//settings.map('8', VLCommand.OPEN_TAB8);
//settings.map('9', VLCommand.OPEN_TAB9);
settings.map('x', VLCommand.CLOSE_TAB);
settings.map('ctrl+u', VLCommand.VIDEO_FULLSCREEN);
settings.map('ctrl+p', VLCommand.VIDEO_PIP);
settings.map('shift+slash', VLCommand.TOGGLE_HELP);
settings.map('ctrl+d', VLCommand.DARK_MODE);

settings.map('shift+enter', VLCommand.OPEN_SELECTED_LINK);

settings.map('r', VLCommand.RELOAD);

Commands

ID Command
VLCommand.SCROLL_UP Scroll up
VLCommand.SCROLL_DOWN Scroll down
VLCommand.SCROLL_LEFT Scroll left
VLCommand.SCROLL_RIGHT Scroll right
VLCommand.HALF_PAGE_DOWN Half page up
VLCommand.HALF_PAGE_UP Half page down
VLCommand.SCROLL_TO_TOP Go to top of page
VLCommand.SCROLL_TO_BOTTOM Go to bottom of page
VLCommand.PAGE_UP Scroll up a page
VLCommand.PAGE_DOWN Scroll down a page
VLCommand.FOCUS_INPUT Go to the first edit box
VLCommand.NORMAL_MODE Normal mode
VLCommand.INSERT_MODE Insert mode (shortcuts are disabled)
VLCommand.TOGGLE_HELP Toggle shortcut help
VLCommand.DARK_MODE Toggle dark mode
VLCommand.GO_BACK Go back
VLCommand.GO_FORWARD Go forward
VLCommand.ACTIVATE_LINK Toggle links
VLCommand.ACTIVATE_LINK_WITH_NEW_TAB Activate link hints (open in a new tab)
VLCommand.NEXT_LINK Move to next link
VLCommand.PREV_LINK Move to previous link
VLCommand.SHOW_CONSOLE Search links
VLCommand.OPEN_SELECTED_LINK Open link
VLCommand.OPEN_SELECTED_LINK_IN_NEW_TAB Open link in a new tab
VLCommand.NEW_TAB New tab
VLCommand.PREV_TAB Previous tab
VLCommand.NEXT_TAB Next tab
VLCommand.CLOSE_TAB Close tab
VLCommand.OPEN_TAB1 Open tab 1
VLCommand.OPEN_TAB2 Open tab 2
VLCommand.OPEN_TAB3 Open tab 3
VLCommand.OPEN_TAB4 Open tab 4
VLCommand.OPEN_TAB5 Open tab 5
VLCommand.OPEN_TAB6 Open tab 6
VLCommand.OPEN_TAB7 Open tab 7
VLCommand.OPEN_TAB8 Open tab 8
VLCommand.OPEN_TAB9 Open tab 9
VLCommand.VIDEO_FULLSCREEN Play video in a fullscreen
VLCommand.VIDEO_PIP Play video in a PIP (picture-in-picture)
VLCommand.RELOAD Reload

Keys

Vimlike uses Javascript KeyboardEvent.code for the keyboard command. Following table shows codes for the special keys.

Key Code
tab Tab
space Space
page up PageUp
page down PageDown
end End
home Home
ArrowLeft
ArrowUp
ArrowRight
ArrowDown
print screen PrintScreen
insert Insert
delete Delete
; Semicolon
= Equal
, Comma
- Minus
. Period
/ Slash
` Backquote
[ BracketLeft
\ Backslash
] BracketRight
' Quote

KeyboardEvent.code uses the key based on the QWERTY layout. Therefore, key bindings of some of the latin keyboards are different. For example, the code “z” represents for the Z key on a QWERTY layout keyboard, but the same code value also represents the Y key on German keyboards.