Fix errors when starting vim on fresh account
The plugins where loaded too late. It was not possible to call :PlugInstall
This commit is contained in:
parent
ef2b60a2ef
commit
699f7108e4
1 changed files with 17 additions and 18 deletions
|
@ -1,6 +1,23 @@
|
|||
set runtimepath+=~/.config/vim,~/.config/vim/after
|
||||
set viminfo+=n~/.cache/viminfo
|
||||
|
||||
" Plug plugins using VimPlug
|
||||
call plug#begin('~/.config/vim/plugged')
|
||||
Plug 'editorconfig/editorconfig-vim'
|
||||
Plug 'airblade/vim-gitgutter'
|
||||
Plug 'samoshkin/vim-mergetool'
|
||||
Plug 'fidian/hexmode'
|
||||
Plug 'scrooloose/nerdtree'
|
||||
Plug 'itchyny/lightline.vim'
|
||||
Plug 'nanotech/jellybeans.vim'
|
||||
Plug 'scrooloose/syntastic'
|
||||
Plug 'sersorrel/vim-lilypond'
|
||||
Plug 'vim-scripts/DoxygenToolkit.vim'
|
||||
Plug 'drmikehenry/vim-headerguard'
|
||||
Plug 'cespare/vim-toml'
|
||||
Plug 'posva/vim-vue'
|
||||
call plug#end()
|
||||
|
||||
set number relativenumber
|
||||
|
||||
let mapleader = " "
|
||||
|
@ -37,24 +54,6 @@ if has("autocmd")
|
|||
au FileType lilypond au BufWritePost * !lilypond %
|
||||
endif
|
||||
|
||||
|
||||
" Plug plugins using VimPlug
|
||||
call plug#begin('~/.config/vim/plugged')
|
||||
Plug 'editorconfig/editorconfig-vim'
|
||||
Plug 'airblade/vim-gitgutter'
|
||||
Plug 'samoshkin/vim-mergetool'
|
||||
Plug 'fidian/hexmode'
|
||||
Plug 'scrooloose/nerdtree'
|
||||
Plug 'itchyny/lightline.vim'
|
||||
Plug 'nanotech/jellybeans.vim'
|
||||
Plug 'scrooloose/syntastic'
|
||||
Plug 'sersorrel/vim-lilypond'
|
||||
Plug 'vim-scripts/DoxygenToolkit.vim'
|
||||
Plug 'drmikehenry/vim-headerguard'
|
||||
Plug 'cespare/vim-toml'
|
||||
Plug 'posva/vim-vue'
|
||||
call plug#end()
|
||||
|
||||
map <leader>m :Magit<CR>
|
||||
map <leader>n :NERDTreeToggle<CR>
|
||||
|
||||
|
|
Loading…
Reference in a new issue