Wrapped up a basic dotfiles repo, with a smidgen of vim plugin-ness and a little OS X config. Still want to get a dotsecrets repo or a subbfoler using git-secret, but the very most basic pieces are in place. #
A couple of useful little OS X bits that I learned while doing this; Fn+Left-Arrow and Fn+Right-Arrow are Home and End (of line) shortcuts when using the default keyboard. Very useful when using vim in iTerm2, where Cmd+[LR]-Arrow change tabs. Also was pointed to this which prompted me to map Caps Lock to Escape (also useful in vim) #
I think I need to look into a terraform vim plugin. #
Trying to get a CKEditor Markdown plugin working in Manuscript. Using this one which looks pretty good in the demo. I can reload the event editor’s CKEditor but can’t get the plugin to load via
var ed = CKEDITOR.instances.sEvent.config
CKEDITOR.instances.sEvent.destroy()
CKEDITOR.plugins.addExternal('markdown', 'https://rawgit.com/hectorguo/CKEditor-Markdown-Plugin/master/markdown/plugin.js')
ed.extraPlugins = "FBContextMenu,FBLink,FBFormSubmit,FBSnippets,FBInsertImage,FBCodeSnippets,markdown"
CKEDITOR.replace('sEvent', ed)
I can destroy and reload the Manuscript default CKEditor plugin to reload with that code, but the Markdown plugin isn’t available. Also tried CKEDITOR.plugins.add('markdown', 'https://rawgit.com/hectorguo/CKEditor-Markdown-Plugin/master/markdown/plugin.js') instead of addExternal() although I think the external version is the right API to use. #
I’m referencing this Stack Overflow question and answers and also pieces of this article. #