Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Installing plugins with vim-plug

1. Install vim-plug so that it auto-loads at launch
$ curl -fLo ~/.vim/autoload/plug.vim --create-dirs 
  https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  
2. Check if ~/.vimrc file exists
 $ ls -a ~/.vimrc

3. if previous command error file doesn't exist then create and open file in vim
 $ vim ~/.vimrc #open file in vim
 
4. Paste following text. Example below install emmet
call plug#begin()
Plug 'mattn/emmet-vim' 
call plug#end()

5. Save File using write function
:w 

6. Run plugin install prompt
:PlugInstall
 
 
 
 
 
PREVIOUS NEXT
Tagged: #Installing #plugins
ADD COMMENT
Topic
Name
2+3 =