Results 1 to 3 of 3

Thread: Vim will not use my .exrc file

  1. #1

    Question Vim will not use my .exrc file

    Hi,

    I have just installed opensuse 11.2 and want to use vim with configuration I am used to. This configuration is embedded in an .exrc file I have put in my home directory. But vim does not act on the commands in this file. For example, I have a "set number" command, but no line numbers shows up when I start vim.

    Any help appreciated.

  2. #2
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: Vim will not use my .exrc file

    Put those commands in ~/.vimrc. If you prefer to continue to use .exrc, put

    source ~/.exrc

    in ~/.vimrc

  3. #3

    Default Re: Vim will not use my .exrc file

    Thanks a lot. It worked!

Tags for this Thread

Posting Permissions

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