[lfs-dev] Configuring vim and position of defaults.vim

Ken Moffat zarniwhoop at ntlworld.com
Mon Mar 12 16:21:27 PDT 2018


On Mon, Mar 12, 2018 at 10:30:07PM +0000, Ken Moffat wrote:
> 
> Using the /etc/vimrc where I commented out the lines as you
> requested, and with my own ~/.vimrc, if I run :scriptnames in a vim
> session I get:
> 
>   1: /etc/vimrc
>   2: /usr/share/vim/vim80/syntax/syntax.vim
>   3: /usr/share/vim/vim80/syntax/synload.vim
>   4: /usr/share/vim/vim80/syntax/syncolor.vim
>   5: /usr/share/vim/vim80/filetype.vim
>   6: /usr/share/vim/vim80/colors/elflord.vim
>   7: ~/.vimrc
>   8: /usr/share/vim/vim80/syntax/nosyntax.vim
>   9: /usr/share/vim/vim80/plugin/getscriptPlugin.vim
>  10: /usr/share/vim/vim80/plugin/gzip.vim
>  11: /usr/share/vim/vim80/plugin/logiPat.vim
>  12: /usr/share/vim/vim80/plugin/manpager.vim
>  13: /usr/share/vim/vim80/plugin/matchparen.vim
>  14: /usr/share/vim/vim80/plugin/netrwPlugin.vim
>  15: /usr/share/vim/vim80/plugin/rrhelper.vim
>  16: /usr/share/vim/vim80/plugin/spellfile.vim
>  17: /usr/share/vim/vim80/plugin/tarPlugin.vim
>  18: /usr/share/vim/vim80/plugin/tohtml.vim
>  19: /usr/share/vim/vim80/plugin/vimballPlugin.vim
>  20: /usr/share/vim/vim80/plugin/zipPlugin.vim
>  21: /usr/share/vim/vim80/scripts.vim
>  22: /usr/share/vim/vim80/syntax/vim.vim
> 

Booted a machine which I have not yet fixed.  :scriptnames shows
defaults.vim immediately after /etc/vimrc, and ftplugin, indent,
nosyntax loaded before ~/.vimrc but scripts and syntax/vim omitted:

  1: /etc/vimrc
  2: /usr/share/vim/vim80/defaults.vim
  3: /usr/share/vim/vim80/syntax/syntax.vim
  4: /usr/share/vim/vim80/syntax/synload.vim
  5: /usr/share/vim/vim80/syntax/syncolor.vim
  6: /usr/share/vim/vim80/filetype.vim
  7: /usr/share/vim/vim80/ftplugin.vim
  8: /usr/share/vim/vim80/indent.vim
  9: /usr/share/vim/vim80/syntax/nosyntax.vim
 10: /usr/share/vim/vim80/colors/elflord.vim
 11: ~/.vimrc
 12: /usr/share/vim/vim80/plugin/getscriptPlugin.vim
 13: /usr/share/vim/vim80/plugin/gzip.vim
 14: /usr/share/vim/vim80/plugin/logiPat.vim
 15: /usr/share/vim/vim80/plugin/manpager.vim
 16: /usr/share/vim/vim80/plugin/matchparen.vim
 17: /usr/share/vim/vim80/plugin/netrwPlugin.vim
 18: /usr/share/vim/vim80/plugin/rrhelper.vim
 19: /usr/share/vim/vim80/plugin/spellfile.vim
 20: /usr/share/vim/vim80/plugin/tarPlugin.vim
 21: /usr/share/vim/vim80/plugin/tohtml.vim
 22: /usr/share/vim/vim80/plugin/vimballPlugin.vim
 23: /usr/share/vim/vim80/plugin/zipPlugin.vim

ĸen
-- 
Truth, in front of her huge walk-in wardrobe, selected black leather
boots with stiletto heels for such a barefaced truth.
                                     - Unseen Academicals


More information about the lfs-dev mailing list