Results 1 to 3 of 3

Thread: Editing .ini file with vim command - Some Queries

  1. #1
    Join Date
    Mar 2013

    Editing .ini file with vim command - Some Queries

    Hi there,

    I am completely new to using Lubuntu (version 12.10 x86 alternative version). I am familiar with Windows interfaces but I see Linux is, in respect to installing/configuring programs, command based.

    The instructions to change host from to (to allow remote access) is to run "sudo vim /etc/schooltool/standard/paste.ini" in the command terminal. Apart from getting messages saying vim was not a command, I managed to install the necessary program/files to make it so.

    All good; I run the above command and get a box with the content of paste.ini. I press the Insert key to replace the host IP. But from thereon I have no clue how to save that. I see no save option under File (or any menus at the top of the window). When it comes to reopening the file with "sudo vim...." the host has retained what it was before: This also occurs after restarting the schooltool service.

    How do I enforce the changes I make to the host so that they stick?

    Many thanks,
    Last edited by StevieTNZ; March 18th, 2013 at 07:58 PM. Reason: Added version details of Lubuntu

  2. #2
    Join Date
    Apr 2012

    Re: Editing .ini file with vim command - Some Queries

    - hit the ESC key (to get you out of insert mode)

    - type : (colon - to get to the vim command line)

    - type wq (write and quit)

    ... or you could just use nano, or since you presumably have the lubuntu desktop, use a graphical editor

    gksudo leafpad /etc/schooltool/standard/paste.ini

  3. #3
    Join Date
    Aug 2011
    51.8° N 5.8° E
    Xubuntu 17.10 Artful Aardvark

    Re: Editing .ini file with vim command - Some Queries

    If you want to use vim you'll have to learn it. Here is an excellent although somewhat verbose manual, the size of the manual reflecting the feature set of the program:

    If that's to much for this moment, stick to the graphical editors like leafpad or gedit (if you need root permissions start from the command line with gksudo leafpad, gksudo gedit) or try nano (if you need root permissions sudo nano). Pay attention to the difference between sudo and gksudo. Use gksudo to start graphical programs:


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts