diff options
author | breadcat | 2021-01-28 13:41:02 +0000 |
---|---|---|
committer | breadcat | 2021-01-28 13:41:02 +0000 |
commit | 8b1cb8c19966369336faa19d46b81517cc20eff4 (patch) | |
tree | d315ff37a1372037acc8b33032f3a98c06a13340 /content/posts | |
parent | 9e5f9e68d3c20d4a3f754d03de4e63ce46b6007d (diff) | |
download | blog.minskio.co.uk-8b1cb8c19966369336faa19d46b81517cc20eff4.tar.gz blog.minskio.co.uk-8b1cb8c19966369336faa19d46b81517cc20eff4.tar.bz2 blog.minskio.co.uk-8b1cb8c19966369336faa19d46b81517cc20eff4.zip |
Vim cheatsheet update
Diffstat (limited to 'content/posts')
-rw-r--r-- | content/posts/personal-vim-cheatsheet.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/content/posts/personal-vim-cheatsheet.md b/content/posts/personal-vim-cheatsheet.md index 42e1cc9..f4fcfaf 100644 --- a/content/posts/personal-vim-cheatsheet.md +++ b/content/posts/personal-vim-cheatsheet.md @@ -119,4 +119,10 @@ Add the below to your `init.vim` file (if using neovim): autocmd BufWritepre * %s/\n\+\%$//e ``` +Another point worth adding is sometimes files formatted outside vim will contain '^@' symbols scattered between letters. These represent null characters and can be removed by running: +``` +%s/[\x0]//g +``` + * **Edit 2020-12-02:** Added notes regarding reading file contents and command output. +* **Edit 2021-01-02:** Added null character removal note. |