summaryrefslogtreecommitdiffstats
path: root/content/posts/personal-vim-cheatsheet.md
diff options
context:
space:
mode:
authorbreadcat2020-12-03 08:50:50 +0000
committerbreadcat2020-12-03 08:50:50 +0000
commitda4259a603b49886b276c2c46e5e9ba7c6ae85b7 (patch)
tree0ccc08a25458cba95784c3e409893f6c270f050d /content/posts/personal-vim-cheatsheet.md
parent922b4ac3239fd5ae47cb53275cccc8afe66d2795 (diff)
downloadblog.minskio.co.uk-da4259a603b49886b276c2c46e5e9ba7c6ae85b7.tar.gz
blog.minskio.co.uk-da4259a603b49886b276c2c46e5e9ba7c6ae85b7.tar.bz2
blog.minskio.co.uk-da4259a603b49886b276c2c46e5e9ba7c6ae85b7.zip
Who knew vim could do this
What a world we live in
Diffstat (limited to 'content/posts/personal-vim-cheatsheet.md')
-rw-r--r--content/posts/personal-vim-cheatsheet.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/content/posts/personal-vim-cheatsheet.md b/content/posts/personal-vim-cheatsheet.md
index 04744ec..42e1cc9 100644
--- a/content/posts/personal-vim-cheatsheet.md
+++ b/content/posts/personal-vim-cheatsheet.md
@@ -70,6 +70,8 @@ $ move to the end of the line
:%s/old/new/gc replace old with new every time in the whole file, but prompting beforehand
:! run shell command
+:r filename read text from filename
+:r ! command read output from running command
:norm run command on highlighted lines
@@ -116,3 +118,5 @@ Add the below to your `init.vim` file (if using neovim):
autocmd BufWritePre * %s/\s\+$//e
autocmd BufWritepre * %s/\n\+\%$//e
```
+
+* **Edit 2020-12-02:** Added notes regarding reading file contents and command output.