1
I recently installed VIM 8.0 on my Ubuntu 18.10. Then, I installed via this tutorial https://github.com/VundleVim/Vundle.vim a plugin manager for vim.
There is therefore the directory ~/.vim which contains the directory /bundle and the file .vimrc, where the latter has the following configuration:
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" plugin on GitHub repo
Plugin 'tpope/vim-fugitive'
" plugin from http://vim-scripts.org/vim/scripts.html
" Plugin 'L9'
" Git plugin not hosted on GitHub
Plugin 'git://git.wincent.com/command-t.git'
" git repos on your local machine (i.e. when working on your own plugin)
Plugin 'file:///home/gmarik/path/to/plugin'
" The sparkup vim script is in a subdirectory of this repo called vim.
" Pass the path to set the runtimepath properly.
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
" Install L9 and avoid a Naming conflict if you've already installed a
" different version somewhere else.
" Plugin 'ascenator/L9', {'name': 'newL9'}
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
I had some problems and researching I discovered some information.
For example, when I type :scriptnames
1: /usr/share/vim/vimrc
2: /usr/share/vim/vim80/debian.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: ~/.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
23: /usr/share/vim/vim80/syntax/lua.vim
24: /usr/share/vim/vim80/syntax/perl.vim
25: /usr/share/vim/vim80/syntax/pod.vim
26: /usr/share/vim/vim80/syntax/ruby.vim
27: /usr/share/vim/vim80/syntax/python.vim
Where you are currently locating the folder of . vim
And when I type :set runtimepath:
`runtimepath=~/.vim,/var/lib/vim/addons,/usr/share/vim/vimfiles,/usr/share/vim/vim80,/usr/share/vim/vimfiles/after,/var/lib/vim/addons/after,~/.vim/after`
I don’t know the difference between the two commands, but regardless of this, it appears that both are considering the directory of .vim,
Problem is that settings, for example set number, are not being changed and neither the commands of :Pluginstall or :Plugininstall are working. It seems that VIM is not reading the script of .vimrc.
What can it be? Someone help me?