Skip to content

Commit

Permalink
Merge pull request rtorr#97 from rtorr/master
Browse files Browse the repository at this point in the history
updating gh-pages
  • Loading branch information
rtorr committed Nov 17, 2015
2 parents c5cf5ea + 8f54cc2 commit 6a18353
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ Read about installing [jekyll](http://jekyllrb.com/)
```
cd vim-cheat-sheet
bundle install
bundle exec jekyll serve --watch
bundle exec jekyll serve
```

Then open your browser to [http://localhost:4000/](http://localhost:4000/)
Then open your browser to [http://localhost:4000/](http://localhost:4000/). Changes to any of the files except `_config.yml` will automatically be reflected by Jekyll; simply reload the page in your browser.

The default languge is english us, and that data can be found in `_config.yml`. Other languages can be found in `lang/*.html`.

Expand Down
5 changes: 5 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ defaults:
dollar: "jump to the end of the line"
G: "go to the last line of the document"
fiveG: "go to line 5"
fx: "jump to next occurrence of character x"
tx: "jump to before next occurrence of character x"
closeCurlyBrace: "Jump to next paragraph (or function/block, when editing code)"
openCurlyBrace: "Jump to previous paragraph (or function/block, when editing code)"
tip: "Prefix a cursor movement command with a number to repeat it. For example, <kbd>4j</kbd> moves down 4 lines."

insertMode:
Expand Down Expand Up @@ -119,6 +123,7 @@ defaults:
commands:
forwardSlashPattern: "search for pattern"
questionMarkPattern: "search backward for pattern"
backslashVpattern: "'very magic' pattern: non-alphanumeric characters are interpreted as special regex symbols (no escaping needed)"
n: "repeat search in same direction"
N: "repeat search in opposite direction"
colonPercentForwardSlashOldForwardSlashNewForwardSlashg: "replace all old with new throughout file"
Expand Down
5 changes: 5 additions & 0 deletions _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ <h2>{{ page.cursorMovement.title }}</h2>
<li><kbd>$</kbd> - {{ page.cursorMovement.commands.dollar }}</li>
<li><kbd>G</kbd> - {{ page.cursorMovement.commands.G }}</li>
<li><kbd>5G</kbd> - {{ page.cursorMovement.commands.fiveG }}</li>
<li><kbd>fx</kbd> - {{ page.cursorMovement.commands.fx }}</li>
<li><kbd>tx</kbd> - {{ page.cursorMovement.commands.tx }}</li>
<li><kbd>}</kbd> - {{ page.cursorMovement.commands.closeCurlyBrace }}</li>
<li><kbd>{</kbd> - {{ page.cursorMovement.commands.openCurlyBrace }}</li>
</ul>
<div class="well">
<strong>Tip</strong> {{ page.cursorMovement.tip }}
Expand Down Expand Up @@ -105,6 +109,7 @@ <h2>{{ page.searchAndReplace.title }}</h2>
<ul>
<li><kbd>/pattern</kbd> - {{ page.searchAndReplace.commands.forwardSlashPattern }}</li>
<li><kbd>?pattern</kbd> - {{ page.searchAndReplace.commands.questionMarkPattern }}</li>
<li><kbd>\vpattern</kbd> - {{ page.searchAndReplace.commands.backslashVpattern }}</li>
<li><kbd>n</kbd> - {{ page.searchAndReplace.commands.n }}</li>
<li><kbd>N</kbd> - {{ page.searchAndReplace.commands.N }}</li>
<li><kbd>:%s/old/new/g</kbd> - {{ page.searchAndReplace.commands.colonPercentForwardSlashOldForwardSlashNewForwardSlashg }}</li>
Expand Down

0 comments on commit 6a18353

Please sign in to comment.