Active 1 year, 4 months ago. Viewed 29k times. Improve this question. Moshe Moshe 5, 21 21 gold badges 64 64 silver badges bronze badges. That's the class text editor. On either your ssh account or your local machine, execute vimtutor. That will help you learn how to use Vim. When you're done with that, execute :help within Vim to see an overview of how to use the help system and some more introductory reading. BobbyMarinoff haha yup. This was one of my early CS classes. The professor is still the only one in the department who teaches this way.
Add a comment. Active Oldest Votes. Improve this answer. Edit a file under that name, put those two lines inside set nocompatible set number set autoindent and save it. Main Page All Pages Community. Community portal. To do. Explore Wikis Community Central. Register Don't have an account? Press : colon to open the prompt bar in the bottom left corner of the window. Type x after the colon and hit Enter. This will save the changes and exit.
Alternatively, a command that will also save a file and exit the text editor is:. Type : colon. This will open the prompt bar in the bottom left corner of the window. Type w after the colon and hit Enter. This will save in Vim the changes made to the file, without exiting. Show 1 more comment.
Works great after But at least you get the error message showing the file location. You can add write permission to this file and then make necessary changes. VimUser VimUser 1 1 silver badge 2 2 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password.
Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Making Agile work for data science. Stack Gives Back
0コメント