2022-06-07 10:30:17 Only just now found out about grep command in vim 2022-06-07 10:30:37 I've been using read command to read grep into buffers the whole time 2022-06-07 10:30:50 Patience please, I'm slow 2022-06-07 10:30:58 g/re/p 2022-06-07 10:33:28 Not that grep lol 2022-06-07 10:40:32 no clue what that means 2022-06-07 10:40:41 what is grep in vim? 2022-06-07 10:47:12 grep in vim lets you search files for patterns and then brings up a window with all findings 2022-06-07 10:47:20 It's akin to search features in IDEs 2022-06-07 10:47:59 It's quite useful and I didn't realise it was built in nicely like this, I was piping raw command-line grep output to buffers 2022-06-07 10:48:13 g/re/p (ed command) -> grep (unix command) -> grep-in-vim (editor bloat) 2022-06-07 10:49:04 g/re/p is where the name 'grep' comes from, it refers to the ed/ex command 'g' that applies commands globally to anything matching 're', running `g/re/p` would (p)rint all lines containing 're' 2022-06-07 10:49:17 (for nmz's benefit) 2022-06-07 10:50:50 ah 2022-06-07 10:50:54 so its like x// 2022-06-07 10:51:26 ACTION uses vis 2022-06-07 10:53:08 So the unix utility grep is meant to be like a global regular expression print but on other files, rather than your buffer 2022-06-07 10:53:46 I don't know vis 2022-06-07 10:53:56 Still need to write my visual forth editor 2022-06-07 10:54:09 I know how I want to do it, it's just finding the time and motivation 2022-06-07 10:54:17 vis is much simpler to use than vim 2022-06-07 10:54:27 that's about all I can say about it 2022-06-07 10:54:58 vis x// looks like the ed g command 2022-06-07 10:55:12 Does it use multiline regexs? 2022-06-07 10:55:15 it comes from structural regex and from the plan9 acme editor 2022-06-07 10:55:37 I hated that when I tried sam, line-based is what I'm comfortable with 2022-06-07 10:55:41 g in vis/sam/acme is a conditional 2022-06-07 10:56:33 so x/function/g3/i/local / would insert "local " to the third match of the hit function 2022-06-07 10:56:36 or something like that 2022-06-07 11:00:17 g is 'conditional' in ed/ex/vi in the sense that it selects which lines to act on 2022-06-07 11:00:26 But yeah it's more like x