Timeline for Is it possible to keep editing the same line when I execute code with !%?
Current License: CC BY-SA 4.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 20 at 21:34 | history | edited | Friedrich | CC BY-SA 4.0 |
burninate [command] tag, show both quote and backtick go-to-mark
|
Jun 24, 2021 at 12:54 | vote | accept | raylight | ||
Jun 24, 2021 at 10:44 | answer | added | D. Ben Knoble♦ | timeline score: 2 | |
Jun 24, 2021 at 4:31 | comment | added | raylight | @D.BenKnoble Well, the new discovered problem is that it limits the number of lines printed on the terminal to around 10 thousand lines... But perhaps that's a subject for a new question... | |
Jun 24, 2021 at 2:17 | comment | added | raylight |
@D.BenKnoble Ah yeah, actually :terminal bash % is exactly what I need here... Sorry, I don't know what I did wrong when I tested it in the afternoon, but I did something wrong probably... I'm testing it now and it works fine.
|
|
Jun 23, 2021 at 18:58 | comment | added | D. Ben Knoble♦ |
Well, then, does a file named file.bash exist in :pwd ?
|
|
Jun 23, 2021 at 18:19 | comment | added | raylight |
@D.BenKnoble My mistake, it's a bash script on the question but I wrote node.js on my comment. But the result of doing it from inside a bash file is the same. I've tried using :terminal bash % on the bash file from my question but I still received the error bash: file.bash: No such file or directory .
|
|
Jun 23, 2021 at 14:55 | comment | added | D. Ben Knoble♦ |
Thought it was a bash script? You can always be more specific: :terminal bash % , :terminal node % , etc. You might have to use %:p for a full path to execute directly.
|
|
Jun 23, 2021 at 14:27 | comment | added | raylight |
@D.BenKnoble When I type :terminal % my screen splits and I see the message executing job failed: No such file or directory , where my only choice seems to be going out of it with :q . I'm not sure if I'm missing something. Did you mean just typing :terminal % from inside the node.js file that I'm editing?
|
|
Jun 23, 2021 at 14:25 | comment | added | raylight |
@BLayer What bothers me the most is having to remember to create a marker with mx before executing the code all the time... I often forget to create the marker when I'm executing the code many times and then I can't go back to it with 'x . So my main criteria here is to go back to the liine that I was without having to remember to create this marker before executing the file. If there is a command that I can do it without having to create the marker that would be enough... But in this case, using '' doesn't work as well...
|
|
Jun 23, 2021 at 12:16 | comment | added | D. Ben Knoble♦ |
:terminal % may be more convenient
|
|
Jun 23, 2021 at 7:51 | comment | added | B Layer | The last line (as well as the subject/title) is missing something. Currently, the answer is "Yes. Just like you described." Obviously, you have something else in mind but it's not clear what. "...go back to the original code on the same line that I was using a maximum of three keystrokes"? Or is it two? One? Through mind control only? ;) What exactly is the criteria? | |
Jun 22, 2021 at 22:31 | history | asked | raylight | CC BY-SA 4.0 |