Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
vim
#1
Once I paste name of my version file name in my version file how do I exit the screen once I paste it in. I'm having issues getting back to my shell I'm stuck with my version file name and all the lines below it not able get back to the shell.
Reply
#2
(Nov-11-2020, 07:31 AM)tdwinfre Wrote: Once I paste name of my version file name in my version file how do I exit the screen once I paste it in. I'm having issues getting back to my shell I'm stuck with my version file name and all the lines below it not able get back to the shell.

Please phrase your problem in a way that it is understandable what are you doing and what is your objective.

To enter current filename in Vim use CTRL-R %. This works both in insert mode as well as in command mode.

To enter current filename in normal mode use "%p (after the cursor) or "%P (before cursor)
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply
#3
My issue is I'm trying to get out of my python version file I have created. Once I paste the name of my version in the file how do I get back to my terminal.
Reply
#4
:q should quit if you're in the "normal" mode (i.e. you're not editing), or :q! if you need to write the file on quitting.
Reply
#5
(Nov-11-2020, 04:31 PM)ndc85430 Wrote: :q should quit if you're in the "normal" mode (i.e. you're not editing), or :q! if you need to write the file on quitting.

:q! is 'quit without saving'; if one wants to save file it should be either :x ('write if buffer has changed and quit') or :wq ('write and quit')
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy

Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020