Hot answers tagged

2 votes

How to use the 'vim' command to edit a program in the terminal?

Press the key (to make sure you are in Normal mode). Type: :q! . This exits the editor, DISCARDING any changes you have made. Save the file with changes and exit Vim with: :wq :x :xit ...
user avatar
  • 141
1 vote
Accepted

Unable To Install CS50 Library for C on Android Termux

1. Edit the Makefile From DESTDIR ?= /usr/local MANDIR ?= share/man/man3 To DESTDIR = /data/data/com.termux/files/usr/local MANDIR = /data/data/com.termux/files/usr/share/man/man3 In the Makefile, ...
user avatar
1 vote
Accepted

How to use the 'vim' command to edit a program in the terminal?

vim (aka vi) is a command-line text editor. You can open up an exiting file or creating a new one by executing vi fileName.extension To start editing your file, you have to hit i from your keyboard ...
user avatar
  • 17.3k
1 vote

How to use the 'vim' command to edit a program in the terminal?

To exit vim and save your changes, type :x or ZZ The complete Vim help documents are found here: http://vimdoc.sourceforge.net/htmldoc/usr_toc.html
user avatar
  • 18.3k

Only top scored, non community-wiki answers of a minimum length are eligible