This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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() { | |
Normal.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>'); |
This file contains hidden or 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
map . nextMatchPattern | |
map , previousMatchPattern | |
map zx closeTabLeft | |
map cx closeTabRight | |
map gj firstTab | |
map gk lastTab | |
let qmark a = ["https://www.baidu.com"] | |
let searchengine dogpile = "http://www.dogpile.com/search/web?q=%s" | |
let searchengine baidu = "https://www.baidu.com/s?ie=utf-8&f=8&rsv_bp=1&ch=&tn=baiduerr&bar=&wd=%s" | |
"let searchengine baidu = "https://www.baidu.com/baidu?word=encodeURIComponent%s&ie=utf-8" |