neovimの設定

Homebrewをインストールしてから、python3/neovimをインストール

brew install python3
brew tap neovim/homebrew-neovim
brew install --HEAD neovim
pip3 install neovim

init.vim

let s:dein_dir = expand('$DATA/dein')
if &runtimepath !~# '/dein.vim'
    let s:dein_repo_dir = s:dein_dir . '/repos/github.com/Shougo/dein.vim'
    if !isdirectory(s:dein_repo_dir)
        call system('git clone https://github.com/Shougo/dein.vim ' . shellescape(s:dein_repo_dir))
    endif
    execute 'set runtimepath^=' . s:dein_repo_dir
endif

if dein#load_state(s:dein_dir)
    call dein#begin(s:dein_dir)
    let s:toml_dir = expand('$CONFIG/dein')
    call dein#load_toml(s:toml_dir . '/plugins.toml', {'lazy': 0})
    call dein#end()
    call dein#save_state()
endif

if has('vim_starting') && dein#check_install()
    call dein#install()
endif

let g:deoplete#enable_at_startup=1
inoremap <expr><TAB>  pumvisible() ? "\<C-n>" : "\<TAB>"
inoremap <expr><CR>  pumvisible() ? deoplete#close_popup() : "<CR>"
inoremap <expr><BS> deoplete#smart_close_popup()."\<C-h>"
inoremap <expr><Space> pumvisible() ? "\<C-y>" : "\<Space>"

let g:neoterm_autoscroll=1 
nnoremap <silent> <C-R> V:TREPLSendLine<cr> 
vnoremap <silent> <C-R> V:TREPLSendSelection<cr>'>j$ 

plugins.toml

# [dein.toml]

[[plugins]]
repo = 'Shougo/dein.vim' 

[[plugins]]
repo = 'Shougo/deoplete.nvim'

[[plugins]]
repo = 'kassio/neoterm'

コメント

このブログの人気の投稿

Inverse-normal transformation

SKAT

locuszoom