From 5bdc34c20aa4a1e4e079d07f0b3a97a16b65d20d Mon Sep 17 00:00:00 2001 From: "Rico Sta. Cruz" Date: Mon, 28 Aug 2017 14:45:03 +0800 Subject: [PATCH] Support ads: false --- Readme.md | 2 +- _layouts/2017/sheet.html | 4 ++-- vim.md | 8 ++++++++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Readme.md b/Readme.md index 470019ed9..9001c5dca 100644 --- a/Readme.md +++ b/Readme.md @@ -33,6 +33,6 @@ Each sheet supports these metadata: title: React.js category: React layout: 2017/sheet # 'default' | '2017/sheet' -ads: true # Add this for ads +ads: false # Add this to disable ads --- ``` diff --git a/_layouts/2017/sheet.html b/_layouts/2017/sheet.html index 3ded09b34..25b9e16fe 100644 --- a/_layouts/2017/sheet.html +++ b/_layouts/2017/sheet.html @@ -6,9 +6,9 @@ type: article {% include 2017/top-nav.html page=page %}
-
+

{{ page.title }} cheatsheet

- {% if page.ads %} + {% if page.ads != false %}
diff --git a/vim.md b/vim.md index 1d45709b2..719362b3d 100644 --- a/vim.md +++ b/vim.md @@ -218,9 +218,15 @@ Do these in visual mode. ### Marks +| Shortcut | Description | +| --- | --- | | `^ | Last position of cursor in insert mode | | `. | Last change | | `` | Last jump | +| --- | --- | +| `ma` | Mark this cursor position as `a` | +| `'a` | Jump to cursor position `a` | +{: .-shortcuts} ### Misc @@ -230,6 +236,7 @@ Do these in visual mode. | `]p` | paste under the current indentation level | | --- | --- | | `zz` | Center this line | +{: .-shortcuts} ### Command line @@ -237,6 +244,7 @@ Do these in visual mode. | --- | --- | | `` | insert current word into the command line | | `"` | paste from " register | +{: .-shortcuts} ### Text alignment