Last active
September 19, 2015 05:13
-
-
Save ayumu83s/3fd3bcf7cb7e229d6892 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 配置先のディレクトリを作成 | |
$ mkdir -p ~/.vim/colors | |
$ mkdir -p ~/.vim/bundle | |
# NeoBundleをリポジトリから取得 | |
$ git clone git://github.com/Shougo/neobundle.vim ~/.vim/bundle/neobundle.vim | |
:" vi互換モードをオフ | |
set nocompatible | |
" ファイルタイププラグインを有効 | |
filetype indent plugin on | |
" 色付け | |
syntax on | |
" バッファを保存しなくても、他のバッファを表示する | |
set hidden | |
" 検索結果を強調表示 | |
set hlsearch | |
" オートインデント、改行、バックスペースで削除 | |
set backspace=indent,eol,start | |
" オートインデント | |
set autoindent | |
set smartindent | |
" 画面下にルーラを表示 | |
set ruler | |
set list | |
set listchars=tab:^\ ,eol:↲,trail:~ | |
" ステータスラインを表示 | |
set laststatus=2 | |
set statusline=%<%f\ %m\ %r%h%w%=\ %{'['.(&fenc!=''?&fenc:&enc).(&bomb?':BOM':'').']['.&ff.']'}(%v,%l)/%L%8P\ | |
" マウスを有効化 | |
set mouse=a | |
" 行番号表示 | |
set number | |
" タイトル表示 | |
set title | |
" モードを表示 | |
set showmode | |
" カーソル行のハイライト | |
set cursorline | |
" tab幅 | |
set tabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
" 全角表示 | |
highlight ZenkakuSpace cterm=underline ctermfg=lightblue guibg=darkgray | |
match ZenkakuSpace / / | |
" カーソルキーで行の移動 | |
set whichwrap=b,s[,],<,> | |
" インクリメンタルサーチ | |
set incsearch | |
" grep結果を別window | |
autocmd QuickFixCmdPost *grep* cwindow | |
nnoremap gy "OP | |
" 折り返しは78文字 | |
set textwidth=78 | |
" ビープ音を消す | |
set visualbell t_vb= | |
map ,pt <Esc>:%! perltidy -se<CR> | |
map ,ptv <Esc>:'<,'>! perltidy -se<CR> | |
set clipboard+=unnamed | |
set clipboard+=autoselect | |
nnoremap gr gT | |
nnoremap <ESC><ESC> :nohlsearch<CR> | |
nnoremap <silent><C-e> :NERDTreeToggle<CR> | |
let g:NERDTreeIgnore=['\.clean$', '\.swp$', '\.bak$', '\~$', '\.DS_Store$'] | |
" imap { {}<LEFT> | |
" imap ( ()<LEFT> | |
" imap [ []<LEFT> | |
" https://github.com/Shougo/neobundle.vim | |
" Note: Skip initialization for vim-tiny or vim-small. | |
if 0 | endif | |
if has('vim_starting') | |
if &compatible | |
set nocompatible " Be iMproved | |
endif | |
" Required: | |
set runtimepath+=~/.vim/bundle/neobundle.vim/ | |
endif | |
" 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! | |
NeoBundle 'Shougo/unite.vim' | |
NeoBundle 'scrooloose/nerdtree' | |
" solarized | |
NeoBundle 'tomasr/molokai' | |
NeoBundle 'altercation/vim-colors-solarized' | |
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 | |
syntax enable | |
set background=dark | |
colorscheme solarized | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment