LoginSignup
4
9

More than 5 years have passed since last update.

Neovimとdein.vimでエディタの環境構築

Last updated at Posted at 2017-01-14

Neovim

terminal
$ brew install neovim/neovim/neovim
$ mkdir -p ~/.config/nvim/init.vim/
$ touch ~/.config/nvim/init.vim/init.vim

dein

terminal
$ mkdir -p ~/.vim/dein/repos/github.com/Shougo/dein.vim
$ git clone https://github.com/Shougo/dein.vim.git \
    ~/.vim/dein/repos/github.com/Shougo/dein.vim
~/.config/nvim/init.vim
let s:dein_path = expand('~/.vim/dein')

if &compatible
  set nocompatible
endif
set runtimepath+=~/.vim/dein/repos/github.com/Shougo/dein.vim

if dein#load_state(s:dein_path)
  call dein#begin(s:dein_path)

  call dein#add('Shougo/dein.vim')

  call dein#end()
  call dein#save_state()
endif

if dein#check_install()
  call dein#install()
endif

filetype plugin indent on
syntax enable

vim-colors-solarized

~/.config/nvim/init.vim
call dein#add('altercation/vim-colors-solarized')

let g:solarized_termcolors=256
syntax enable
set background=dark
colorscheme solarized

deoplete

terminal
$ brew install python3
$ pip3 install neovim
~/.config/nvim/init.vim
call dein#add('Shougo/deoplete.nvim')
let g:deoplete#enable_at_startup = 1

vimrc

~/.config/nvim/init.vim
set clipboard=unnamed

dotfiles

TODO

4
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
9