Last active
September 25, 2018 12:21
-
-
Save fd0/19a4af20acba0a28ae4dd9b5e09b77f7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// an example to create a new mapping `ctrl-y` | |
//mapkey('<Ctrl-y>', 'Show me the money', function() { | |
// Front.showPopup('a well-known phrase uttered by characters in the 1996 film Jerry Maguire (Escape to close).'); | |
//}); | |
// an example to replace `u` with `?`, click `Default mappings` to see how `u` works. | |
//map('?', 'u'); | |
// an example to remove mapkey `Ctrl-i` | |
//unmap('<Ctrl-i>'); | |
// click `Save` button to make above settings to take effect. | |
// set theme | |
settings.theme = ` | |
.sk_theme { | |
background: #000; | |
color: #fff; | |
} | |
.sk_theme tbody { | |
color: #000; | |
} | |
.sk_theme input { | |
color: #317ef3; | |
} | |
.sk_theme .url { | |
color: #38f; | |
} | |
.sk_theme .annotation { | |
color: #38f; | |
} | |
.sk_theme .focused { | |
background: #aaa; | |
}`; | |
settings.smoothScroll = false; | |
settings.scrollStepSize = 140; | |
settings.hintAlign = 'left'; | |
// scrolling | |
// unmap('<Ctrl-d>'); | |
// mapkey('<Ctrl-d>', '#2Scroll down a page', 'Normal.scroll("pageDown")'); | |
// unmap('<Ctrl-u>'); | |
// mapkey('<Ctrl-u>', '#2Scroll up a page', 'Normal.scroll("pageUp")'); | |
// tab navigation | |
unmap('gt'); | |
map('gt', 'R'); | |
map('gT', 'E'); | |
map('t', 'go'); | |
// history in current tab | |
unmap('H'); | |
map('H', 'S'); | |
unmap('L'); | |
map('L', 'D'); | |
// close and restore tabs | |
//unmap('x'); | |
unmap('d'); | |
map('d', 'x'); | |
unmap('u'); | |
map('u', 'X'); | |
// follow link in new tab | |
map('F', 'af'); | |
// scrolling | |
mapkey('<Ctrl-u>', '#2Scroll a page up', function() { Normal.scroll("pageUp"); }); | |
mapkey('<Ctrl-d>', '#2Scroll a page down', function() { Normal.scroll("pageDown"); }); | |
// use numeric hints | |
Hints.numericHints = true; | |
// remove binding for internal editor, use Textern instead | |
iunmap('<Ctrl-i>'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment