As configured in my dotfiles.
start new:
tmux
start new with session name:
data:text/html, <script type="text/javascript" src="https://cdn.rawgit.com/MrMitch/downatello/develop/downatello.js"></script><style type="text/css">#md,#html{position:absolute;top:0;bottom:0;padding:5px;border:none;outline:none;font-family:monaco,consolas,sans-serif;font-size:1em}#md{resize:none;left:0;width:48%;border-right:1px solid black}#html{left:50%;right:0;font-family:sans-serif}</style><textarea id="md" oninput="document.getElementById('html').innerHTML=downatello.toHtml(document.getElementById('md').value);"></textarea><div id="html"></div> |
As configured in my dotfiles.
start new:
tmux
start new with session name:
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
" Console log from insert mode; Puts focus inside parentheses | |
imap cll console.log();<Esc>==f(a | |
" Console log from visual mode on next line, puts visual selection inside parentheses | |
vmap cll yocll<Esc>p | |
" Console log from normal mode, inserted on next line with word your on inside parentheses | |
nmap cll yiwocll<Esc>p |