Find the answer to your Linux question:
Results 1 to 5 of 5
Is it me or is vim (vi) impossibly difficult to use in Slackware? There's no vimrc in /etc/vim/ so I can't add the syntax colours , and 'i' to insert ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User stokes's Avatar
    Join Date
    Oct 2004
    Location
    UK
    Posts
    274

    vim in Slackware


    Is it me or is vim (vi) impossibly difficult to use in Slackware? There's no vimrc in /etc/vim/ so I can't add the syntax colours , and 'i' to insert doesn't allow me to type any characters. Are there different flavours of vim? Or do I just need to configure it somehow to behave 'normally' ?

    For the moment I've been using Pico, but I would prefer vim if I can get it working the way I'm used to.
    Registered Linux user #389109
    My Semi-Linux Blog

  2. #2
    oz
    oz is offline
    forum.guy
    Join Date
    May 2004
    Location
    arch linux
    Posts
    18,733
    Yeah, it does work a little differently than in some other distros.

    You could do a google search for "vimrc", find an example of one you like, then edit to your satisfaction, then add it to your home directory like this:

    /home/<user>/.vimrc

  3. #3
    Just Joined!
    Join Date
    Aug 2005
    Location
    Torreon Coahuila, Mexico
    Posts
    9
    Code:
    ~$ cp /usr/share/vim/vim63/vimrc_example.vim .vimrc
    ~$ cp /usr/share/vim/vim63/gvimrc_example.vim .gvimrc

  4. #4
    Linux User stokes's Avatar
    Join Date
    Oct 2004
    Location
    UK
    Posts
    274
    Quote Originally Posted by gajon
    Code:
    ~$ cp /usr/share/vim/vim63/vimrc_example.vim .vimrc
    ~$ cp /usr/share/vim/vim63/gvimrc_example.vim .gvimrc
    What does this actually do? I've done it but my vim seems to be the same.
    Registered Linux user #389109
    My Semi-Linux Blog

  5. #5
    Just Joined!
    Join Date
    Aug 2005
    Location
    Torreon Coahuila, Mexico
    Posts
    9
    These are the vimrc files that you were looking for in /etc/vim, but instead you copy them to your home folder and then you can customize it if you with.

    Make sure you are copying them to your home folder:

    Code:
    ~$ cp /usr/share/vim/vim63/vimrc_example.vim ~/.vimrc
    ~$ cp /usr/share/vim/vim63/gvimrc_example.vim ~/.gvimrc
    Then open up a file in vim and you'll see that it does syntax coloring now.

    Code:
    vim ~/.vimrc

Posting Permissions

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