I made a few changes while merging this pull request: 1. I changed the logic inside syntax/notes.vim to use the function xolox#misc#option#get() with a default option value of true (1). In my mind this makes a lot more sense than checking for the existence of variables without checking their actual values. 2. I renamed notes_conceal_italics to notes_conceal_italic to be consistent with the other options (IMHO). 3. I rewrote the documentation additions because A) doc/notes.txt is generated from README.md so the changes by @naddeoa would have gone lost and B) because there were typos in the additions (s/coneal/conceal/g). 4. The documentation for notes_conceal_code was incorrect because the code changes by @naddeoa only apply to the markers for inline code fragments, not the markers for multi line code blocks. I kept the implementation as is and updated the documentation to match the implementation. See also pull request 104 on GitHub: #104
Users can now add options to configure whether or not the conceal feature isused to shorten urls and hide quotes/underscores for formatting. To disable all concealing: let g:notes_coneal_code = 0 let g:notes_coneal_italics = 0 let g:notes_coneal_bold = 0 let g:notes_coneal_url = 0 This was added because some plugins don't play nicely with concealing. In particular, the indentLines plugin is conflicting with coneal on OSX (at least).
This was added to enable simple integration with tools like sup (https://github.com/ceocoder/sup)
In this merge commit I'm making a couple of minor changes: - The `---` sequence is now used as a horizontal divider in the Mediawiki syntax converter. - The changes to xolox#notes#html#view() created a temporary file even when the HTML was shown in a Vim split window, now the temporary file is only created when it needs to be passed to a web browser. - I changed some wrong indentation, removed some unused code (the counter variable) and renamed some private variables (s/hilight/highlight/g) and added word boundaries to the TODO/DONE/XXX matching in the file mediawiki.vim. - No trailing empty lines are added when a note is converted to Mediawiki syntax (there were in the pull request, but without context or explanation so I'd rather keep the Markdown, HTML and Mediawiki converters consistent).
* GFM -> GitHub Flavored Markdown
It's hard to estimate the consequences of this change, but there's really only one way to find out, hence I'm committing the change. The previous behavior was a bug anyway, it's just that it could have been hiding a lot of other bugs and incompatibilities until now... I'm keeping my fingers crossed ;-) See also issue #88 on GitHub: #88
This is my first serious attempt to resolve issue #79 and issue #83. I was originally worried that this might have serious impact on typing speed because the <expr> mappings now have to search back through the current buffer to determine their context. In practice the slowness isn't that bad and it *is* really nice to type regular quotes inside code blocks. No doubt this will become a performance problem for someone editing 10.000 line notes, but we'll cross that bridge when the get there ;-)
* This might be a little rough around the edges, but it seems to work pretty well, so I currently don't see any reason not to make this the default. Some details I will have to think through a bit more, but they will no doubt become apparent once the feature is released. This change requires the latest version of vim-misc.