Vimの設定
とりあえず、Yosemiteのmacの下記を開き、各種設定項目を追加した。
$ sudo vim /usr/share/vim/vimrc
" Configuration file for vimset modelines=0 " CVE-2007-2438
" Normally we use vim-extensions. If you want true vi-compatibility" remove change the following statementsset nocompatible " Use Vim defaults instead of 100% vi compatibilityset backspace=2 " more powerful backspacing
" Don't write backup file if vim is being called by "crontab -e"au BufWrite /private/tmp/crontab.* set nowritebackup nobackup" Don't write backup file if vim is being called by "chpass"au BufWrite /private/etc/pw.* set nowritebackup nobackup
"colorscheme slate"colorscheme ron"colorscheme rdarkcolorscheme molokai"colorscheme hybridsyntax on
set numberset titleset ambiwidth=doubleset tabstop=4set expandtabset shiftwidth=4set smartindent"set list"set listchars=tab:»-,trail:-,eol:↲,extends:»,precedes:«,nbsp:%set nrformats-=octalset hiddenset history=50set virtualedit=blockset whichwrap=b,s,[,],<,>set backspace=indent,eol,startset wildmenu色のテーマは、/usr/share/vim/vim73/colors内に設定ファイルを入れればいいのかなと思ってるけど、正しくないのかも。今度調べる。
CentOSでのVimの設定
参考:http://www.server-world.info/query?os=CentOS_6&p=initial_conf&f=7
/etc/vimrcを設定すればできた。