From 9f2db9add8f91918f65e6115899df46a2bb5416d Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 9 Apr 2023 14:09:09 +0300 Subject: Update content for md --- gemfeed/2022-11-24-i-tried-emacs-but-i-switched-back-to-neovim.md | 5 +++-- index.md | 2 +- uptime-stats.md | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/gemfeed/2022-11-24-i-tried-emacs-but-i-switched-back-to-neovim.md b/gemfeed/2022-11-24-i-tried-emacs-but-i-switched-back-to-neovim.md index 052a65d3..23209fe8 100644 --- a/gemfeed/2022-11-24-i-tried-emacs-but-i-switched-back-to-neovim.md +++ b/gemfeed/2022-11-24-i-tried-emacs-but-i-switched-back-to-neovim.md @@ -64,7 +64,8 @@ NeoVim is also programmable with Lua, which seems to be a step up and Vim comes One example is my workflow of how I compose my blog articles (e.g. this one you are currently reading): I am writing everything in NeoVim, but I also want to have every paragraph checked against Grammarly (as English is not my first language). So I write a whole paragraph, then I select the entire paragraph via visual selection with `SHIFT+v`, and then I press `,y` to yank the paragraph to the systems clipboard, then I paste the paragraph to Grammarly's browser window with `CTRL+v`, let Grammarly suggest the improvements, and then I copy the result back with `CTRL+c` to the system clipboard and in NeoVim I type `,i` to insert the result back overriding the old paragraph (which is still selected in visual mode) with the new content. That all sounds a bit complicated, but it's surprisingly natural and efficient. To come back to the example, for the clipboard integration, I use this small VimScript snippet, and I didn't have to dig into any Lisp or Perl for this: -``` + +```vim " Clipboard vnoremap ,y !pbcopyugv vnoremap ,i !pbpaste @@ -117,7 +118,7 @@ E-Mail your comments to hi@paul.cyou :-) This is the VimScript I mentioned earlier, which parses a table of contents index of my scanned paper journals and opens the corresponding PDF at the right page in `zathura`: -``` +```vim function! ReadJournalPageNumber() let page = expand("") if page !~# '^\d\+$' diff --git a/index.md b/index.md index 433e0b18..09d6a785 100644 --- a/index.md +++ b/index.md @@ -1,6 +1,6 @@ # foo.zone -> This site was generated at 2023-04-09T14:02:25+03:00 by `Gemtexter` +> This site was generated at 2023-04-09T14:08:52+03:00 by `Gemtexter` ``` |\---/| diff --git a/uptime-stats.md b/uptime-stats.md index 0296d891..90a41b3f 100644 --- a/uptime-stats.md +++ b/uptime-stats.md @@ -1,6 +1,6 @@ # My machine uptime stats -> This site was last updated at 2023-04-09T14:02:25+03:00 +> This site was last updated at 2023-04-09T14:08:52+03:00 The following stats were collected via `uptimed` on all of my personal computers over many years and the output was generated by `guprecords`, the global uptime records stats analyser of mine. -- cgit v1.2.3