I usually use VS Code for Ruby on Rails development, but I wanted to use Vim asexually.
Select vim-plug
from several Vim Plugin Managers,
I installed the plugin.
$ curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
Describe file tree display plugin and rails related plugin
# .vimrc file tree, rails related plugins
call plug#begin()
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'tpope/vim-rails'
Plug 'tpope/vim-endwise'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
call plug#end()
map <C-n> :NERDTreeToggle<CR>←← Show / hide the file tree <Ctrl+Mapping to n>
Start vim and enter : PlugInstall
Recommended Posts