How do I keep nerdtree open when I first open a file. At the moment it is open from the second time onwards. However, when I first open something it closes and I have to manually open it again?
I found the answer for this here:
https://github.com/scrooloose/nerdtree/issues/494
Instead of opening with vim . opening just with vim solves the problem.
Related
I edited that file and now it shows up each time I open the terminal window. How can I fix that or undo that?
Simply delete the line that says
nano ~/.zshrc
This line opens that screen during startup.
To delete the line, navigate to it first (such that the cursor is pointing to the first letter of the line nano ~/.zshrc.
Then, do the following on your keyboard in order (note that you should press control, not the command button):
Control+K
Control+S
Control+X
Now reopen Terminal and your problem should be solved.
I am learning to create my own scenario in katacoda. I want to open a file that I created in the katacoda editor, but it's not letting me use the open command in my background.sh file. This is what I have in it so far:
touch my-project/new.py
echo "print('Hello World')" >> my-project/new.py
open new.py
This creates the python file, but it does not open it. I tried running open new.py in the terminal, but it gives me an error
bash: open: command not found
I can click on it in the file tree to open it, but I want it to open automatically. What other command can I use to open it in the katacoda editor?
After messaging support, you are not able to put code in a file that is opened on start in Katacoda. You can embed links that will add code when the user clicks on it, but that's a different task. Katacoda does not support the "open" command, but you can use vim or nano.
Is it possible to set the file explorer for the File: Open Folder... shortcut to use the same one File: Open Recent... uses on Mac?
Right now it opens Finder and I don't really like how I have to start using my mouse/trackpad to navigate I'm quite enjoying just using my keyboard when in VSCode
I've been using VSCode with WSL until this point
I think the closes solution to your problem is discussed previous thread and particularly the answers for Mac.
You can open the folder with the following command code . --user-data-dir=., and the linked answer is how to add code if its not accessible on Mac.
Provided command you would use from the terminal to open a new instance, after navigating to the folder.
Spotlight > Terminal > goto Folder > run $ code .
I encounted a problem after I change the syntax of mac's terminal vim. Right now, when I open vim, it just shows up under many line's of my shell command (screenshot below) instead of like before open a clean window and cannot see my shell command. So how can I reset it back that open my vim that in a clean terminal window?
Finally find out that because of the TERM is not set to xterm, so I fixed this issue by adding export TERM=xterm-color in my .bash_profile file. If you have the same issue, hope this would help.
The issue I am having is when I open a file via emacs it will open another window in the emacs text editor, but lock out the terminal. What I mean by lock out is that the terminal seems to be linked to the window of emacs that had opened up. When I first downloaded the software I did not have this issue and was able to open multiple emacs windows at once but now I have to close out of the current emacs window to open another. Any suggestions on fixing this?
It sounds like you want to have the file pop up in a window when you open it, rather than fill the whole terminal.
If that's the case, you should
install a graphical version of Emacs from http://emacsformacosx.com/
put alias emacs=/Applications/Emacs.app/Contents/MacOS/Emacs in you ~/.bashrc
open files with emacs file.txt &. The file will open in a separate window and you can keep using your terminal