File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change 2
2
3
3
[ ![ Build Status] ( https://travis-ci.org/MilesCranmer/vim-stream.svg?branch=master )] ( https://travis-ci.org/MilesCranmer/vim-stream ) | [ ![ Codecov branch] ( https://img.shields.io/codecov/c/github/MilesCranmer/vim-stream/master.svg )] ( https://codecov.io/gh/MilesCranmer/vim-stream )
4
4
5
- Do you live in a vim editor? Then, maybe, stream
6
- editing with vim feels more natural than
7
- sed or awk:
8
-
9
- ```
10
- cat myfile.txt | vims '3,4norm yyGp' '%g/foo/d'
11
- ```
12
- which means:
13
- - ` 3,4norm yyGp ` - on the 3rd and 4th line, enter normal mode and
14
- copy the line to the bottom of the file.
15
- - ` %g/foo/d ` - delete every line containing "` foo ` "
5
+ ![ Demo] ( https://i.imgur.com/dntK3MP.gif )
16
6
17
7
18
- You can also use "exe" mode (flag ` -e ` ):
8
+ You can use "exe" mode (flag ` -e ` ):
19
9
for example, to comment out in C++
20
10
every line containing ` my_bad_var ` ,
21
11
then delete the line above it:
You can’t perform that action at this time.
0 commit comments