I am detecting malwares in PDF files for which I need their source codes too. I want to save the source code in some text file so that I can write a code to scan through all of them to detect patterns. How can I save what I see on Vim (source code)?
I would open another tab "Vertical split"/ "Horizontal Split" with
:vs and copy paste the parts of the code that I want with "Visual selector"
v and then
y to copy.
Then got to the next tab where you can browse to destination file with
And finally, paste to the other file with
p and save & close it
I'm sure there are other options to do this but if you're in a hurry then this will do it!