aboutsummaryrefslogtreecommitdiff
path: root/my_snippets
AgeCommit message (Collapse)Author
2021-12-04update cpp snippetjdhao
2021-11-21update snippetsjdhao
2021-11-10update snippetsjdhao
2021-11-08add cpp snippetsjdhao
2021-11-04more snippetsjdhao
2021-11-02fix typo in snippetsjdhao
2021-10-30remove redundant snippetsjdhao
2021-10-30update snippetsjdhao
2021-10-30update cpp snippetsjdhao
2021-10-30Merge branch 'master' of https://github.com/jdhao/nvim-configjdhao
2021-10-30more cpp snippetsjdhao
2021-10-30more cpp snippetsjdhao
2021-10-27update cpp snippetjdhao
2021-10-23update markdown snippetsjdhao
2021-09-07update cpp snippetjdhao
2021-09-02update cpp snippetsjdhao
2021-08-22update cpp snippetsjdhao
2021-07-26update python snippetsjdhao
2021-07-12More cpp snippetsjdhao
2021-07-12update the snippets to print 1D and 2D sequencesjdhao
Use template to make the function general enough for normal cases. Ref: http://users.cis.fiu.edu/~weiss/Deltoid/vcstl/templates
2021-06-29Add more cpp snippetsjdhao
2021-06-27update cpp snippetsjdhao
2021-06-26update cpp snippetjdhao
2021-06-20Add cpp snippetjdhao
2021-06-18Add cpp snippetsjdhao
2021-02-21Add「直角引号」for Markdownjdhao
「」is useful when writing post in Chinese.
2021-02-20Add augroup snippet for vim scriptjdhao
2021-01-13Update markdown snippetsjdhao
2020-11-15update markdown snippetsjdhao
2020-10-18add fun snippet for vim scriptjdhao
2020-08-30add HTML font tag for Markdownjdhao
2020-05-25add more kbd tag snippetsjdhao
2020-05-25Update markdown.snippetsjdhao
2020-04-17fix: time zone info is now shownjdhao
datetime.now() produces a naive datetime object which does not know tzinfo. So the '%z' has no effect. We need to convert it to time zone aware object using `datetime.astimezone()`.
2020-04-16refactor: remove update info from file headerjdhao
The file update info can be accessed from the file directly on the command line. We often forget to update the update field in the Python source file header, making this field rather useless. I have also set up the Neovim to show file update time on the title of terminal window. So there is no need to retain the update field in header comment.
2020-03-30update: improve snippetsjdhao
2020-03-09Add detail snippetjdhao
2020-03-08Update snippetsjdhao
2019-12-24Update all.snippetsjdhao
2019-12-22Update Markdown snippetsjdhao
2019-12-21Update meta markdown snippetsjdhao
The original snippet use vim interpolation and the date keeps changing while we are inside the snippet region, which is not desired. According to https://www.youtube.com/watch?v=JJQYwt6Diro, we can use Python interpolation and check if snip.c is empty to see if the interpolation has been finished. If the interpolation has finished (snip.c is empty in this condition), the date will be fixed and does not change when we are inside the snippet region.
2019-12-20Update all.snippetsjdhao
2019-12-19Update markdown.snippetsjdhao
2019-12-19Update Markdown front matter snip triggerjdhao
2019-12-18Add markdown header snippetsjdhao
Now we can type h1, h2, ..., h6 and press <Tab> to generate header of corresponding level. It is more intuitive than vim-snippets's default snippets for headers, i.e., sec, ssec, and so on.
2019-12-05Add snippet for Pythonjdhao
2019-12-03Update Markdown snippetsjdhao
2019-09-21Add LaTeX snippetjdhao
2019-09-16Various small updatejdhao
2019-08-06update snippetsjdhao