Skip to content

Instantly share code, notes, and snippets.

@matsuhisa
Created July 12, 2015 11:37
Show Gist options
  • Save matsuhisa/248d048f28496b95665a to your computer and use it in GitHub Desktop.
Save matsuhisa/248d048f28496b95665a to your computer and use it in GitHub Desktop.
if has('gui_macvim')
set showtabline=2
set imdisable // IMを無効化
#set transparency=5 // 透明度を指定
set transparency=50
// 最後のタブを閉じた時にMacVimを終了する
defaults write org.vim.MacVim MMTerminateAfterLastWindowClosed yes
// ファイルのドロップした時の動き
defaults write org.vim.MacVim MMOpenFilesInTabs yes
endif
"---------------------------------------------------------------------------
" カラー設定:
colorscheme pablo
" ウインドウの幅
set columns=130
" ウインドウの高さ
set lines=50
# 文字コード、改行コードを表示
# http://win-to-mac.blogspot.jp/2012/08/vim.html
#set statusline=%<%f\ %m%r%h%w%{'['.(&fenc!=''?&fenc:&enc).']['.&ff.']'}%=%l,%c%V%8P
# 改行とタブを可視化する
#set list
set noundofile
set nobackup
"----------------------------------------------------------
" 文字コードの指定
set enc=utf-8
"set fenc=utf-8
set fencs=utf-8,eiso-2022-jp,euc-jp,cp932
set statusline=%<%f\ %m%r%h%w%{'['.(&fenc!=''?&fenc:&enc).']['.&ff.']'}%=%l,%c%V%8P
"----------------------------------------------------------
" タブの画面上での幅
set tabstop=8
" タブをスペースに展開しない (expandtab:展開する)
set noexpandtab
" set expandtab
" タブでの空白文字数
set softtabstop=2
" 行数表示
set nu
" ルーラーを表示 (noruler:非表示)
set ruler
" タブや改行を表示 (list:表示)
set nolist
"---------------------------------------------------------
" 自動的にインデントする (noautoindent:インデントしない)
" set autoindent
set noautoindent
" バックスペースでインデントや改行を削除できるようにする
set backspace=2
" 検索時にファイルの最後まで行ったら最初に戻る (nowrapscan:戻らない)
set wrapscan
" テキスト挿入中の自動折り返しを日本語に対応させる
set formatoptions+=mM
" 日本語整形スクリプト(by. 西岡拓洋さん)用の設定
let format_allow_over_tw = 1 " ぶら下り可能幅
" コマンドをステータス行に表示
set showcmd
" バックアップファイルを作らない
set noundofile
set nobackup
" swapfileを作らない
set noswapfile
"---------------------------------------------------------
" プラグインファイルの置き場所を追加する
" http://nanasi.jp/articles/howto/config/runtimepath.html
set runtimepath+=$HOME/.vim/runtime,$HOME/.vim/,$HOME/.vim,$HOME/.vim/runtime/syntax,$HOME/.vim/ftpplugin
" syntaxを追加する
augroup filetypedetect
au BufNewFile,BufRead *.as setf actionscript
augroup END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment