grimoire

personal wiki
git clone git://git.pyratebeard.net/grimoire.git
Log | Files | Refs

commit dd87831bf89b78c829d71ecfe3f1a3b12be24d57
parent 8b7e6b899008fbdaaa0701d2b33ff9d1278ac7d8
Author: pyratebeard <root@pyratebeard.net>
Date:   Thu,  2 Jan 2020 16:38:46 +0000

vim and the shell

Diffstat:
Mcoding/vim.md | 15++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/coding/vim.md b/coding/vim.md @@ -134,9 +134,22 @@ select several lines containing '0' and type `g<C-a>` ``` df <char> ``` - + +## using the shell +[vim and the shell][] + +- in script, highlight line and switch to command mode by pressing `:` +```bash +:'<,'>w !bash - +``` + +```python +:'<,'>w !python - +``` + [using_spellcheck]: https://www.linux.com/learn/using-spell-checking-vim [faq]: http://vim.wikia.com/wiki/Vim_buffer_FAQ [vanilla vim]: https://stackoverflow.com/questions/16082991/vim-switching-between-files-rapidly-using-vanilla-vim-no-plugins [buffers over tabs]: https://stackoverflow.com/questions/26708822/why-do-vim-experts-prefer-buffers-over-tabs [reddit]: https://www.reddit.com/r/vim/comments/a1lvb1/til_gca_for_creating_a_column_of_incrementing/ +[vim and the shell]: https://vimways.org/2019/vim-and-the-shell/