Quantcast
Channel: Vimタグが付けられた新着記事 - Qiita
Viewing all articles
Browse latest Browse all 5608

Vim環境整備

$
0
0

NeoBundle

NeoBundleをインストールする。

 curl https://raw.githubusercontent.com/Shougo/neobundle.vim/master/bin/install.sh | sh
"NeoBundle setting area -----------------"NeoBundle Scripts-----------------------------if&compatiblesetnocompatible" Be iMprovedendif" Required:setruntimepath+=/home/yu/.vim/bundle/neobundle.vim/" Required:call neobundle#begin(expand('/home/yu/.vim/bundle'))" Let NeoBundle manage NeoBundle" Required:
NeoBundleFetch 'Shougo/neobundle.vim'" Add or remove your Bundles here:
NeoBundle 'Shougo/neosnippet.vim'
NeoBundle 'Shougo/neosnippet-snippets'
NeoBundle 'tpope/vim-fugitive'
NeoBundle 'ctrlpvim/ctrlp.vim'
NeoBundle 'flazz/vim-colorschemes'
NeoBundle 'scrooloose/nerdtree'
NeoBundle 'fholgado/minibufexpl.vim'" You can specify revision/branch/tag.
NeoBundle 'Shougo/vimshell', { 'rev' : '3787e5' }

" Required: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

"End NeoBundle Scripts-------------------------" Jedi for python
NeoBundleLazy "davidhalter/jedi-vim", {
    \ "autoload": { "filetypes": [ "python","python3","djangohtml"] }}

if! empty(neobundle#get("jedi-vim"))letg:jedi#auto_initialization =1letg:jedi#auto_vim_configuration =1nnoremap [jedi] <Nop>
  xnoremap [jedi] <Nop>
  nmap <Leader>j [jedi]
  xmap <Leader>j [jedi]

  letg:jedi#completions_command ="<C-a>"letg:jedi#goto_assignments_command ="<C-g>"letg:jedi#goto_definitions_command ="<C-d>"letg:jedi#documentation_command ="<C-k>"letg:jedi#rename_command ="[jedi]r"letg:jedi#usages_command ="[jedi]n"letg:jedi#popup_select_first =0letg:jedi#popup_on_dot =0autocmdFileType python setlocalcompleteopt-=preview

  " for w/ neocompleteif! empty(neobundle#get("neocomplete.vim"))autocmdFileType python setlocalomnifunc=jedi#completions
        letg:jedi#completions_enabled =0letg:jedi#auto_vim_configuration =0letg:neocomplete#force_omni_input_patterns.python =
                        \ '\%([^. \t]\.\|^\s*@\|^\s*from\s.\+import \|^\s*from \|^\s*import \)\w*'endifendif

NeaDTreeなどのプラグインのインストール

上記の

" Add or remove your Bundles here:
NeoBundle 'Shougo/neosnippet.vim'
NeoBundle 'Shougo/neosnippet-snippets'
NeoBundle 'tpope/vim-fugitive'
NeoBundle 'ctrlpvim/ctrlp.vim'
NeoBundle 'flazz/vim-colorschemes'
NeoBundle 'scrooloose/nerdtree'
NeoBundle 'fholgado/minibufexpl.vim'

の箇所で使用したいプラグインを指定します。


Viewing all articles
Browse latest Browse all 5608

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>