| 1 | <h2>Comments</h2> |
| 2 | <pre><code>" This is a comment</code></pre> |
| 3 | |
| 4 | <h2>Variables</h2> |
| 5 | <pre><code> |
| 6 | set softab = 2 |
| 7 | map <leader>tn :tabnew |
| 8 | </code></pre> |
| 9 | |
| 10 | <h2>Map</h2> |
| 11 | <pre><code>mystring = :steveT;</code></pre> |
| 12 | |
| 13 | <h2>Functions</h2> |
| 14 | <pre><code> |
| 15 | func! DeleteTrailingWS() |
| 16 | exe "normal mz" |
| 17 | %s/\s\+$//ge |
| 18 | exe "normal `z" |
| 19 | endfunc</code></pre> |
| 20 | |
| 21 | <h2>Logic</h2> |
| 22 | <pre><code> |
| 23 | if has("mac") |
| 24 | nmap <D-j> <M-j> |
| 25 | endif</code></pre> |