diff --git a/README.md b/README.md index 7cf3a19..5802770 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ variety of languages and technologies. These are things that don't really warrant a full blog post. These are mostly things I learn by pairing with smart people at [Hashrocket](http://hashrocket.com/). -_456 TILs and counting..._ +_457 TILs and counting..._ --- @@ -512,6 +512,7 @@ _456 TILs and counting..._ - [Replace A Character](vim/replace-a-character.md) - [Reset Target tslime Pane](vim/reset-target-tslime-pane.md) - [Reverse A Group Of Lines](vim/reverse-a-group-of-lines.md) +- [Rotate Everything By 13 Letters](vim/rotate-everything-by-13-letters.md) - [Running Bundle With vim-bundler](vim/running-bundle-with-vim-bundler.md) - [Scrolling Relative to the Cursor](vim/scrolling-relative-to-the-cursor.md) - [Searching For Hex Digits](vim/searching-for-hex-digits.md) diff --git a/vim/rotate-everything-by-13-letters.md b/vim/rotate-everything-by-13-letters.md new file mode 100644 index 0000000..33f96ce --- /dev/null +++ b/vim/rotate-everything-by-13-letters.md @@ -0,0 +1,25 @@ +# Rotate Everything By 13 Letters + +For some inane reason, Vim comes with a +[ROT-13](https://en.wikipedia.org/wiki/ROT13) feature. So, if you are ever +in need of rotating the letters of some portion of the file by 13, you can +do that with the simple `g?` binding. + +For example, if you hit `g??` on the following line: + +``` +Six dollar eggs +``` + +you will get + +``` +Fvk qbyyne rttf +``` + +As you can see, casing is preserved. + +The only practical uses of this are Vimgolf and convincing people at coffee +shops that you are a hacker. + +See `:h g?` for more details.