順番
- VimmerがRuby on Railsを書くときに使えるVimプラグイン集 2019
- NERDTree (入れた)
- vim-rails (まだ)
- fzf.vim( bufferは入れれなかった(1時間格闘したけどできないので一旦中断) )
- coc.nvim(入れた、非常に便利)
- install参考:https://github.com/neoclide/coc.nvim/wiki/Install-coc.nvim
- ctags(入れた)
- nazgob/ctags.setup ( ctagがよみこまれない問題の解消に役立ててください )
##### ~/.vimrcのオオクボ作成
let g:hybrid_use_iTerm_colors = 1
colorscheme iceberg
syntax on
" Neobundleのinsgtallを公式のままコピー
" Note: Skip initialization for vim-tiny or vim-small.
if 0 | endif
if &compatible
set nocompatible " Be iMproved
endif
" Required:
set runtimepath+=~/.vim/bundle/neobundle.vim/
" Required:
call neobundle#begin(expand('~/.vim/bundle/'))
" Let NeoBundle manage NeoBundle
" Required:
NeoBundleFetch 'Shougo/neobundle.vim'
" My Bundles here:
" Refer to |:NeoBundle-examples|.
" Note: You don't set neobundle setting in .gvimrc!
call neobundle#end()
" Required:
filetype plugin indent on
" If there are uninstalled bundles found on startup,
" this will conveniently prompt you to install them.
NeoBundleCheck
"Ctrl + e でtreeを表示するための設定
nnoremap <silent><C-e> :NERDTreeToggle<CR>
"---------------------------
" NERDTreeのsintallを公式のままコピー
NeoBundle 'scrooloose/nerdtree'
"fzf.vim : ファイル検索を行うことができるようにinstall
" Add homebrew fzf to the vim path:
set rtp+=/usr/local/opt/fzf
Plugin 'junegunn/fzf'
Plugin 'junegunn/fzf.vim'
" Add the fzf.vim plugin to wrap fzf:
"Plugin 'junegunn/fzf.vim'
#set rtp+=~/.fzf
#Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
#Plug 'junegunn/fzf.vim'
let g:fzf_action = {
\ 'ctrl-s': 'split' }
nnoremap <C-p> :FZFFileList<CR>
command! FZFFileList call fzf#run(fzf#wrap({
\ 'source': 'find . -type d -name .git -prune -o ! -name .DS_Store',
\ 'down': '40%'}))
nnoremap <C-b> :Buffers<CR>
nnoremap <C-g> :Ag<CR>
nnoremap <silent> <C-]> :call fzf#vim#tags(expand('<cword>'))<CR>
let g:fzf_buffers_jump = 1
command! -bang -nargs=? -complete=dir Files
\ call fzf#vim#files(<q-args>, fzf#vim#with_preview(), <bang>0)
"----------------endを自動で入れてくれる
NeoBundle 'tpope/vim-endwise'
"------自動保管
NeoBundle 'neoclide/coc.nvim'
let g:coc_global_extensions = ['coc-solargraph']
inoremap <silent><expr> <TAB>
\ pumvisible() ? "\<C-n>" :
\ <SID>check_back_space() ? "\<TAB>" :
\ coc#refresh()
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
function! s:check_back_space() abort
let col = col('.') - 1
return !col || getline('.')[col - 1] =~# '\s'
endfunction
コメントを残す