読者です 読者をやめる 読者になる 読者になる

落書きノート

ふと自分が気になった事を書いてます

Mac OS XのMacVimの設定

vi使いと言えるほどviを使っているわけではありませんが、使うときはこの設定で使ってます。前回の記事から話のネタに色々と投稿してます。

.gvimrc

colorscheme slate

.vimrc

syntax on

set nobackup
set encoding=utf-8
set fileencoding=utf-8
set number
set title
set showcmd
set ruler
set showmatch
set matchtime=3
set laststatus=2
set noexpandtab
set shiftwidth=4
set tabstop=4
set softtabstop=0
set list
set listchars=tab:>.,trail:_,eol:,extends:>,precedes:<,nbsp:%

function! ZenkakuSpace()
    highlight ZenkakuSpace cterm=reverse ctermfg=Blue gui=reverse guifg=Blue
endfunction
   
if has('syntax')
    augroup ZenkakuSpace
        autocmd!
        autocmd ColorScheme       * call ZenkakuSpace()
        autocmd VimEnter,WinEnter * match ZenkakuSpace / /
    augroup END
    call ZenkakuSpace()
endif

"NeoBundle Scripts-----------------------------
if &compatible
  set nocompatible               " Be iMproved
endif

" Required:
set runtimepath+=/Users/hirotoshi/.vim/bundle/neobundle.vim/

" Required:
call neobundle#begin(expand('/Users/hirotoshi/.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 'rhysd/vim-clang-format'
NeoBundle 'justmao945/vim-clang'
NeoBundle 'kana/vim-operator-user'

" You can specify revision/branch/tag.
NeoBundle 'Shougo/vimshell', { 'rev' : '3787e5' }
NeoBundle 'Shougo/vimproc', {
  \ 'build' : {
    \ 'windows' : 'make -f make_mingw32.mak',
    \ 'cygwin' : 'make -f make_cygwin.mak',
    \ 'mac' : 'make -f make_mac.mak',
    \ 'unix' : 'make -f make_unix.mak',
  \ },
\ }
" 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-------------------------