serhii.net

In the middle of the desert you can say anything you want

23 May 2020

Day 509

Python backslashes and raw strings

Why can’t Python’s raw string literals end with a single backslash? - Stack Overflow - raw strings are not that raw and can’t end in a single backslash.

New vim highlight rules for markdown files

fun! SetBackslash()
    syn region mys matchgroup=ignore start=/^\s*\\/ end=/$/ oneline
    hi link mys EndOfBuffer
endfu

fun! SetQuestions()
    syn region dash matchgroup=ignore start=/^\s*\\+/ end=/$/ oneline
    hi link dash Statement
endfu

" fun! SetQuestions()
"     syn match mys /^\s*+.*$/
"     hi link mys Keyword
" endfu
autocmd filetype markdown :call SetBackslash()
autocmd filetype markdown :call SetQuestions()

Vim increase/decrease number under cursor

Ctrl+a increases the number under the cursor,
Ctrl+x decreases the number under the cursor.

Interesting / Random

Nel mezzo del deserto posso dire tutto quello che voglio.
comments powered by Disqus