Unable to follow instructions to install on windows
- Dominant language
- Vim Script
- Stars
- 35.8k
- Forks
- 1.9k
- PR merge metrics
- No merged PRs in 30d
Description
Explain the problem here ...
I have followed the instructions to install vim on windows (using git bash as terminal for all commands and vim interaction) and include the plug scope in my vimrc but when I source the vimrc I get
```
Error detected while processing /c/Users/edmisml/_vimrc:
line 64:
E117: Unknown function: plug#begin
```
Output of powershell install:
```
PS C:\Users\edmisml> iwr -useb https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |`
>> ni $HOME/vimfiles/autoload/plug.vim -Force
Directory: C:\Users\edmisml\vimfiles\autoload
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 3/23/2021 8:23 AM 82656 plug.vim
```
Output of `:set rtp`:
```
runtimepath=~/.vim,/usr/share/vim/vimfiles,/usr/share/vim/vim82,/usr/share/vim/vimfiles/after,~/.vim/after
```
Output of `:scriptnames`:
```
1: /etc/vimrc
2: /usr/share/vim/vim82/defaults.vim
3: /usr/share/vim/vim82/syntax/syntax.vim
4: /usr/share/vim/vim82/syntax/synload.vim
5: /usr/share/vim/vim82/syntax/syncolor.vim
6: /usr/share/vim/vim82/filetype.vim
7: /usr/share/vim/vim82/ftplugin.vim
8: /usr/share/vim/vim82/indent.vim
9: ~/_vimrc
10: /usr/share/vim/vim82/plugin/getscriptPlugin.vim
11: /usr/share/vim/vim82/plugin/gzip.vim
12: /usr/share/vim/vim82/plugin/logiPat.vim
13: /usr/share/vim/vim82/plugin/manpager.vim
14: /usr/share/vim/vim82/plugin/matchparen.vim
15: /usr/share/vim/vim82/plugin/netrwPlugin.vim
16: /usr/share/vim/vim82/plugin/rrhelper.vim
17: /usr/share/vim/vim82/plugin/spellfile.vim
18: /usr/share/vim/vim82/plugin/tarPlugin.vim
19: /usr/share/vim/vim82/plugin/tohtml.vim
20: /usr/share/vim/vim82/plugin/vimballPlugin.vim
21: /usr/share/vim/vim82/plugin/zipPlugin.vim
22: /usr/share/vim/vim82/syntax/python.vim
23: /usr/share/vim/vim82/ftplugin/python.vim
24: /usr/share/vim/vim82/indent/python.vim
25: /usr/share/vim/vim82/scripts.vim
26: /usr/share/vim/vim82/syntax/vim.vim
27: /usr/share/vim/vim82/syntax/perl.vim
28: /usr/share/vim/vim82/syntax/pod.vim
29: /usr/share/vim/vim82/ftplugin/vim.vim
30: /usr/share/vim/vim82/indent/vim.vim
31: /usr/share/vim/vim82/syntax/nosyntax.vim
```
My vimrc:
```
1 """""""""""""""""""""""""""""""""""" |1
1 " Line |~
2 """""""""""""""""""""""""""""""""""" |~
3 " show line numbers |~
4 set number |~
5 |~
6 """"""""""""""""""""""""""""""""""""" |~
7 " Indents |~
8 """"""""""""""""""""""""""""""""""""" |~
9 " replace tabs with spaces |~
10 set expandtab |~
11 " 1 tab = 2 spaces |~
12 set tabstop=2 shiftwidth=2 |~
13 |~
14 " when deleting whitespace at the beginning of a line, delete |~
15 " 1 tab worth of spaces (for us this is 2 spaces) |~
16 set smarttab |~
17 |~
18 " when creating a new line, copy the indentation from the line above |~
19 set autoindent |~
20 |~
21 """"""""""""""""""""""""""""""""""""" |~
22 " Search |~
23 """"""""""""""""""""""""""""""""""""" |~
24 " Ignore case when searching |~
25 set ignorecase |~
26 set smartcase |~
27 |~
28 " highlight search results (after pressing Enter) |~
29 set hlsearch |~
30 |~
31 " highlight all pattern matches WHILE typing the pattern |~
32 set incsearch |~
33 |~
34 """"""""""""""""""""""""""""""""""""" |~
35 " Mix |~
36 """"""""""""""""""""""""""""""""""""" |~
37 " show the mathing brackets |~
38 set showmatch |~
39 |~
40 " highlight current line |~
41 set cursorline |~
42 " show relative line numbers |~
43 :set relativenumber |~
44 |~
45 """"""""""""""""""""""""""""""""""" |~
46 " primagean recs |~
47 syntax on |~
48 set nowrap |~
49 set noerrorbells |~
50 set colorcolumn=80 |~
51 set incsearch |~
52 highlight ColorColumn ctermbg=0 guibg=lightgrey |~
53 set nobackup |~
54 set undodir=~/vim_backup/undodir |~
55 set undofile |~
56 """"""""""""""""""""""""""""""""""" |~
57 |~
58 """"""""""""""""""""""""""""""""""" |~
59 " plugins |~
60 " Specify a directory for plugins |~
61 " - For Neovim: stdpath('data') . '/plugged' |~
62 " - Avoid using standard Vim directory names like 'plugin' |~
63 call plug#begin('C:\Users\edmisml\vimfiles\plugged') |~
64 Plug 'morhetz/gruvbox' |~
65 Plug 'jremmen/vim-ripgrep' |~
66 Plug 'tpope/vim-fugitive' |~
67 Plug 'mbbill/undotree' |~
68 Plug 'git@github.com:Valloric/YouCompleteMe.git' |~
69 |~
70 " Initialize plugin system |~
71 call plug#end() |~
72 """""""""""""""""""""""""""""""""""
```
------------------------------
```
version 8.2.592
```
- Type:
- [ ] Bug
- [ ] Enhancement
- [ ] Feature Request
- [x] Question
- OS:
- [ ] All/Other
- [ ] Linux
- [ ] OS X
- [x] Windows
- Vim:
- [x] Terminal Vim
- [ ] GVim
- [ ] Neovim
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.