Results 1 to 3 of 3
I am trying to add repositories to my sources.list. When I scroll to the end of the file to add the pages I am not able to edit the list. ...
- 04-19-2009 #1Just Joined!
- Join Date
- Apr 2009
- Posts
- 1
editing sources list in itripid
I am trying to add repositories to my sources.list. When I scroll to the end of the file to add the pages I am not able to edit the list. I am using vi, can anyone help?
- 04-20-2009 #2
Vi is a powerful program, but rather complicated. vi Editor Commands Press i to be able to insert text. Press esc when you're done editing the text, and enter :wq to save and exit.
I suggest just using gedit.
Or, if you want a command line text editor for quick basic editing, install nano.Code:sudo gedit /etc/apt/sources.list
GNU nano
- 04-20-2009 #3
If you use "vim cheat sheet" as keywords in a Google search, you'll find tons of links on how to use vi enhanced or "vim". Vi is the predecessor to vi enhanced (vim) which is what is now installed by default in all Linux OSs, either as vim tiny or the full version.
If you have the full version of Vim installed, type: vim tutor in a terminal to take a half hour course to learn basic usage of vim.
EDIT: In Ubuntu, you must add sudo to you vi command, for example: sudo vim /etc/apt/sources.listLast edited by Sunnyside; 04-20-2009 at 09:38 AM. Reason: Added Ubuntu specific instructions


Reply With Quote