Skip to content

Instantly share code, notes, and snippets.

@eight04
eight04 / vim-quiz.md
Created December 4, 2021 07:22
VIM quiz: map, normal, and execute

VIM quiz: map, normal, and execute

I just completed the tutorial - Learn Vimscript the Hard Way by Steve Losh - and found that I'm still unfamiliar with map, normal, and execute. After searching and testing, I made this quiz.

By answering these questions, you will fully understand how to use map, normal, and execute all together.

Q1.

Put following code in your vimrc:

We can't make this file beautiful and searchable because it's too large.
ツモ,対応地形数,使用ミノ,未使用ミノ,テト譜
TZJLIT,5,TILJZ;TTIJZ;TTLJZ,T;L;I,v115@pgD8wwzhE8xwh0F8wwAtg0G8Btg0G8AtywH8wwC8Je?AgWFA03/wCpAAAA;v115@pgD8h0ywE8g0hlwwF8g0AtglG8BtglG8AtywH8wwC8?JeAgWFA0XUPC0AAAA;v115@pgD8h0ywE8g0hlwwF8g0AtglG8BtwwG8AtywH8glC8?JeAgWFA0XUPC0AAAA;v115@pgD8whg0ilE8whi0F8whBtG8ywG8whwwBtH8glC8Je?AgWFA0nNPCsAAAA;v115@pgD8h0ilE8g0ywF8g0AtwwG8BtglG8AtywH8wwC8Je?AgWFA03/wCsAAAA
TIZOJT,3,TTIJZ;TTIZO,O;J,v115@pgD8BtywE8whBtwwF8whRpG8whRpG8whywH8wwC8Je?AgWFAUXNFD0AAAA;v115@pgD8ywh0E8whwwAtg0F8whBtG8whAtwwG8whxwg0H8?wwC8JeAgWFAUezPC0AAAA;v115@pgD8ywh0E8Btwhg0F8wwBtG8xwwhG8xwwhg0H8whC8?JeAgWFA0nNPC0AAAA
TZJLIT,5,TILJZ;TTIJZ;TTLJZ,T;L;I,v115@pgD8wwzhE8xwh0F8wwAtg0G8Btg0G8AtywH8wwC8Je?AgWFA03/wCpAAAA;v115@pgD8h0ywE8g0hlwwF8g0AtglG8BtglG8AtywH8wwC8?JeAgWFA0XUPC0AAAA;v115@pgD8h0ywE8g0hlwwF8g0AtglG8BtwwG8AtywH8glC8?JeAgWFA0XUPC0AAAA;v115@pgD8whg0ilE8whi0F8whBtG8ywG8whwwBtH8glC8Je?AgWFA0nNPCsAAAA;v115@pgD8h0ilE8g0ywF8g0AtwwG8BtglG8AtywH8wwC8Je?AgWFA03/wCsAAAA
TIOZJT,2,TTIJZ;TTIZO,O;J,v115@pgD8BtywE8whBtwwF8whRpG8whRpG8w
(async () => {
let file;
{
const db = await open();
const trans = db.transaction("foo", "readwrite");
const store = trans.objectStore("foo");
store.put(new Blob(["bar"]), "foo");
await complete(trans);
db.close();
}
/* ==UserStyle==
@name PTT Chrome Color
@version 0.1.0
@namespace mstar@ptt.cc
@author mstar
@description 自訂 PTTChrome 和 term.ptt.cc 的顏色
@homepageURL https://www.ptt.cc/bbs/Browsers/M.1537347760.A.CD8.html
@var color C00 "黑" #000000
@var color C01 "暗紅" #6e0000
@var color C02 "暗綠" #006e00
// ==UserScript==
// @name Bilibili Cover
// @namespace http://t.qq.com/HeartBlade
// @description 显示视频封面
// @include http://www.bilibili.com/video/av*
// @include https://www.bilibili.com/video/av*
// @version 1.3
// @grant GM_addStyle
// ==/UserScript==
var cover_box=document.createElement("div");
/* ==UserStyle==
@name Jira Solarized
@description Modify new JIRA theme with Solarized Dark or Light
@namespace atlassian.net
@version 0.0.1
@author snowe <tyler.b.thrailkill@gmail.com> (https://github.com/snowe2010)
@homepageURL http://github.com/snowe2010/jira-solarized
@supportURL http://github.com/snowe2010/jira-solarized/issues
@license MIT
@var select solarized 'Solarized Scheme' {
/* ==UserStyle==
@name GitHub Dark
@namespace stylish
@version 0.1.0
@homepageURL http://userstyles.org/styles/37035
@updateURL https://userstyles.org/styles/37035.css
@md5URL https://update.userstyles.org/37035.md5
@originalMD5 66643ceab5d8c458da6e0ead8f4133f3
@author StylishThemes
@advanced color base-color "Base color scheme" #4183C4
/* ==UserStyle==
@name GitHub Dark
@homepageURL http://userstyles.org/styles/37035
@updateURL https://userstyles.org/styles/37035.css
@md5URL https://update.userstyles.org/37035.md5
@originalMD5 66643ceab5d8c458da6e0ead8f4133f3
@author StylishThemes
@advanced color base-color "Base color scheme" #4183C4
@advanced dropdown syntax-theme "Github syntax theme" {
Ambiance "Ambiance" <<<EOT
@eight04
eight04 / foo.user.css
Last active February 5, 2019 19:21
Usercss test
/* ==UserStyle==
@name Stack Overflow Navbar Enhancer
@description An usercss to move navbar position, change font color, and more.
@namespace eight04.blogspot
@version 0.1.8
@author eight04 <eight04@gmail.com> (https://github.com/eight04)
@homepageURL http://example.com/
@supportURL http://example.com/issues
@license unlicense
@advanced color font-color 'Font color' #123456
rst2html5.py (Docutils 0.13.1 [release], Python 3.6.0, on win32)
Usage
=====
rst2html5.py [options] [<source> [<destination>]]
Generates HTML?5 documents from standalone reStructuredText sources Reads from
<source> (default is stdin) and writes to <destination> (default is stdout).
See <http://docutils.sf.net/docs/user/config.html> for the full reference.