|-- Lua Cheat Sheet for Programmers, by Al Sweigart http://coffeeghost.net|
|-- This cheat sheet is an executable Lua program.|
|--[[ This is|
|a multline comment]]|
|---[[ This is a neat trick. The first -- makes -[[ not a multiline comment.|
|print("This line executes.")|
|--]] The rest of this line is also a comment.|
|print("Here is a string" .. ' concatenated with ' .. 2 .. ' other strings.')|
|enable line numbers :set number | :set nu|
|disable line numbers :set nonumber | :set nonu | :set nu!|
|enable relative numbers :set relativenumber|
|convert entire word to uppercace <leader>u|
|convert entire word to lowercase <leader>l|
|convert first char of word to uppercase <leader>U|
|convert first char of word to lowercase <leader>L|
zf#jcreates a fold from the cursor down # lines.
zf/stringcreates a fold from the cursor to string .
zjmoves the cursor to the next fold.
zkmoves the cursor to the previous fold.
zoopens a fold at the cursor.
zOopens all folds at the cursor.
zmincreases the foldlevel by one.
zMcloses all open folds.