Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: VIM Help Page

  1. #1
    Join Date
    Sep 2021
    Location
    Costa Rica
    Beans
    12
    Distro
    Ubuntu 20.04 Focal Fossa

    VIM Help Page

    Hi,

    Hope this is the right place to post and ask my question.

    Problem: Cannot access the help pages inside VIM. I am running VIM version 8.2.2434 in Ubuntu 21.04.

    When I enter a :help in the command-line mode I get:

    E433: No tags file
    E149: Sorry, no help for help.txt.

    When I go to /usr/share/vim/vim82/doc I do see a help.txt though. I am not clear about this.

    I would appreciate some help.

    Thank you.

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: VIM Help Page

    Run vimtutor. That's a command.

    If :help doesn't work, I suspect you don't have the full vim install. There are multiple packaged versions - vim-tiny, vim-basic. I think you need the full, "vim" package for the most common stuff.

  3. #3
    Join Date
    Sep 2021
    Location
    Costa Rica
    Beans
    12
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: VIM Help Page

    Awesome. I did not know that command. I removed vim-tiny package and left the full one.

    May also ask you if you know why the color scheme that I defaulted on my .vimrc file in my /home directory and help section are only available when I open vim with root priviledges? This does not happen to me in CentOS for example, which I am more familiar with.

    Thanks again.
    Last edited by damirx; September 11th, 2021 at 03:56 AM.

  4. #4
    Join Date
    May 2006
    Location
    Switzerland
    Beans
    2,907
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: VIM Help Page

    Quote Originally Posted by cyberpurity View Post
    why the color scheme that I defaulted on my .vimrc file in my /home directory and help section are only available when I open vim with root priviledges?
    What are the permissions on that ~/.vimrc file? Check with:
    Code:
    ls -al .vimrc

  5. #5
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: VIM Help Page

    Yet another reason that using "sudoedit" and not "sudo vim" or "sudo gedit" is the preferred method. Check permissions.

    CentOS and Ubuntu are different. They have different goals and subtle differences outside the package management differences. Isn't CentOS out of support?

  6. #6
    Join Date
    May 2006
    Location
    Switzerland
    Beans
    2,907
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: VIM Help Page

    Quote Originally Posted by TheFu View Post
    Isn't CentOS out of support?
    CentOS 6 is EOL/EOS. CentOS 7 is still good until 2024. CentOS 8 will switch to a rolling release model after 31 December 2021 and become "CentOS Stream 8".

    So instead of the old release chain / upstream-downstream relationship that looked like this:
    Fedora => Red Hat Enterprise Linux => CentOS

    ... we will now get this:
    Fedora => CentOS Stream => Red Hat Enterprise Linux

    That's one of the reasons why many former CentOS users are looking at alternatives so they could replace CentOS 8. "Rolling release" is just a big fat "NOPE!" in an Enterprise environment.

  7. #7
    Join Date
    Sep 2021
    Location
    Costa Rica
    Beans
    12
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: VIM Help Page

    Quote Originally Posted by scorp123 View Post
    What are the permissions on that ~/.vimrc file? Check with:
    Code:
    ls -al .vimrc

    The file belongs to the regular user in question (both uid and guid). Permissions are 755.

  8. #8
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: VIM Help Page

    Which release are you running? sudo behaves different on new Ubuntu releases than it did on olders releases and those are different from other linux distros default behavior. The parent directory permissions matter too. Please show the output.

  9. #9
    Join Date
    Sep 2021
    Location
    Costa Rica
    Beans
    12
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: VIM Help Page

    Quote Originally Posted by TheFu View Post
    Which release are you running? sudo behaves different on new Ubuntu releases than it did on olders releases and those are different from other linux distros default behavior. The parent directory permissions matter too. Please show the output.
    Here is it is. Thank you for your help.
    Attached Images Attached Images

  10. #10
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: VIM Help Page

    21.04 is too new for me. I think ssh behavior in Ubuntu changed. Track those changes down. I couldn't find any easily, but vaguely recall a discussion, somewhere, about the changes. I think the HOME directory was being set now, when it wasn't touched previously. Sorry I couldn't find a link.

    Please post text, not images. People with poor eyesight and some people pay for internet by the byte. 300 bytes is much nicer than 40Kb.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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