Trance Shift 7 - Notes

現Trance Shift 8.0の前バージョンのログ

.vimrc

 自分用メモ。

"Tab Spacing
"set tabstop=2 softtabstop=2 shiftwidth=2
set tabstop=4 softtabstop=4 shiftwidth=4
set expandtab

"256Colors
set t_Co=256

"Basic
syntax enable
set modeline
set number
set foldmethod=marker
set laststatus=2
set ambiwidth=double
filetype on
filetype indent on
filetype plugin on
colorscheme ron
set nobackup

"Encodings
set enc=utf-8
set fileencodings=utf-8,euc-jp,shift-jis,japan

"Escaping HighlightMode with Esc x3
set hlsearch
nmap <Esc><Esc> :nohlsearch<CR><Esc>

"Show Status Line Always
set statusline=%F%m%r%h%w\%=[FORMAT=%{&ff}]\[TYPE=%Y]\%{'[ENC='.(&fenc!=''?&fenc:&enc).']'}[%p%%]

"SwapFile Directory
set directory=$HOME/vim_swap

"Indent
set autoindent
set nosmartindent
set nocindent
set indentexpr=""
set ruler
set backspace=2
"{} Match Shows
set showmatch

"File Type
augroup filetypedetect
au! BufRead,BufNewFile *.lib setfiletype php
au! BufRead,BufNewFile *.yml setfiletype yaml
augroup end

"Plugins Bind
""PHP documentor
inoremap <C-P> <ESC>:call PhpDocSingle()<CR>
nnoremap <C-P> :call PhpDocSingle()<CR>
vnoremap <C-P> :call PhpDocRange()<CR>
let g:pdv_cfg_Uses = 1
""NERDTree
nmap <silent> <F7> :NERDTreeToggle<CR>
""TagList
let Tlist_Ctags_Cmd = "/usr/local/bin/ctags"
let Tlist_Inc_Winwidth = 1
let Tlist_Exit_OnlyWindow = 1
let Tlist_File_Fold_Auto_Close = 1
let Tlist_Process_File_Always = 1
let Tlist_Enable_Fold_Column = 0
let tlist_php_settings = 'php;c:class;d:constant;f:function'
nmap <silent> <F8> :TlistToggle<CR>


"PHPSettings
autocmd FileType php " :set omnifunc=phpcomplete#CompletePHP
let php_sql_query=1
let php_htmllnStrings=1
let php_noShortTags=1
"let php_folding=1

"VIM Diff
hi DiffAdd    ctermfg=cyan ctermbg=black
hi DiffChange ctermfg=white ctermbg=darkcyan
hi DiffDelete ctermfg=red ctermbg=darkgray
hi DiffText   ctermfg=white ctermbg=darkgray