LoginSignup
4
4

More than 5 years have passed since last update.

Vim環境設定メモ

Last updated at Posted at 2015-02-07

環境

Mac

プラグイン管理のためにNeobundleをインストール

mkdir -p ~/.vim/bundle
git clone https://github.com/Shougo/neobundle.vim ~/.vim/bundle/neobundle.vim

プラグインや基本的な設定を追加

.vimrcに下記設定を追加

"=========================
" 基本設定
"=========================
syntax on
colorscheme desert

" タブをスペース4つに
set tabstop=4
set autoindent
set expandtab
set shiftwidth=4

"=========================
" ショートカット
"=========================
"ctrl+eでNERDTreeを開く
nnoremap <silent><C-e> :NERDTreeToggle<CR>

"=========================
" Neobundle設定
"=========================
" bundleで管理するディレクトリを指定
set runtimepath+=~/.vim/bundle/neobundle.vim/

" Required:
call neobundle#begin(expand('~/.vim/bundle/'))

" neobundle自体をneobundleで管理
NeoBundleFetch 'Shougo/neobundle.vim'

"-------------------------
" 各種プラグライン
"-------------------------
" colorscheme
"NeoBundle 'w0ng/vim-hybrid'
"NeoBundle 'vim-scripts/twilight'
" エクスプローラー的なNERDTree
NeoBundle 'scrooloose/nerdtree'
" 入力保管
NeoBundle 'Townk/vim-autoclose'
" マークアップ用入力補完
NeoBundle 'mattn/emmet-vim'
" ソースコード実行
NeoBundle 'thinca/vim-quickrun'
" grep
NeoBundle 'grep.vim'

call neobundle#end()

" Required:
filetype plugin indent on

" 未インストールのプラグインがある場合、インストールするかを確認する
NeoBundleCheck

vim起動時にプラグインをインストールするか聞かれるのyでインストール

4
4
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
4