Find the answer to your Linux question:
Results 1 to 4 of 4
I have just install Ubuntu and wish to edit a file My issue is that when I press the "Insert" button it makes the letters toggle between upper case and ...
  1. #1
    Just Joined!
    Join Date
    Apr 2007
    Posts
    10

    [SOLVED] re using VI - keyboard issues

    I have just install Ubuntu and wish to edit a file

    My issue is that when I press the "Insert" button it makes the letters toggle between upper case and lower case - I am presuming that when I installed Ubuntu that I selected the wrong keyboard.

    I am used to editing files by pressing the "insert" button to change edit modes and it is not working (as usual) and impossible to edit properly. (eg I cannot delete the end of line character so that I can join lines togeather)

    How do I select the right keyboard layout so that vim works properly in Ubuntu ?

    [I am using only command line, x windows is not installed]

    Thanks

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Have you tried vi instead of vim or vice verse?

    To set UK keyboard layout, execute this
    Code:
    sudo xmodmap /usr/share/xmodmap/xmodmap.uk
    Check /user/share/xmodmap folder for other layout files.

    Or try one of these
    Code:
    sudo dpkg-reconfigure console-setup
    Code:
    setxkbmap us
    Replace us with country code you want to use.
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Apr 2007
    Posts
    10
    I did not realise that vi and vim were different. vim works the way vi does in my debian install

    Amazingly that worked - I have asked 2 questions in the last day and received correct fixes in a very short space of time.

    Thanks everyone.

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,316
    Glad to help you !
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

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