2008年10月22日水曜日
2008年10月14日火曜日
2008年10月4日土曜日
2008年10月2日木曜日
vimのtips
カーソルラインを表示
set cursorline
カーソルコラムを表示(縦線)
set cursorcolumn
コマンドを続けるには縦棒を使う
command Pw w | !perl %
自動整形の実行方法を決める
改行後もコメントとするかとか
set formatoptions?
コマンド結果をリダイレクト
:h :redir
キーコード(特殊文字) Ctrl+k 押してからキー押すと
名前を挿入できる
:h key-codes
タブをスペースに変更
set expandtab
retab
テキストファイルに固有の設定を
残す
h modeline
マークした箇所をTodoハイライト
h group-name でどんなハイライトがあるか分かるよ
syntax match Todo /\%'a.*/ containedin=ALL
プラグイン、固有の設定ファイル
boxes
diff.exe
color sampler pack
txt.vim -> $VIMRUNTIME/syntax/txt.vim
MRU.vim
skeleton.html
eregex.vim -> $VIMRUNTIME/plugin/eregex.vim
$VIMRUNTIME/plugin/eregex_e.vim
検索は:M/hogeで それ以外は大文字で
テキストに対し固有の設定を書く
マッピングなどはmodeline使えないため
autocmd BufRead ~/デスクトップ/kara.txt set nonu |
\nnoremap j gj| nnoremap k gk
------------------------------------------
参考リンク
お勧めプラグイン
set cursorline
カーソルコラムを表示(縦線)
set cursorcolumn
コマンドを続けるには縦棒を使う
command Pw w | !perl %
自動整形の実行方法を決める
改行後もコメントとするかとか
set formatoptions?
コマンド結果をリダイレクト
:h :redir
キーコード(特殊文字) Ctrl+k 押してからキー押すと
名前を挿入できる
:h key-codes
タブをスペースに変更
set expandtab
retab
テキストファイルに固有の設定を
残す
h modeline
マークした箇所をTodoハイライト
h group-name でどんなハイライトがあるか分かるよ
syntax match Todo /\%'a.*/ containedin=ALL
プラグイン、固有の設定ファイル
boxes
diff.exe
color sampler pack
txt.vim -> $VIMRUNTIME/syntax/txt.vim
MRU.vim
skeleton.html
eregex.vim -> $VIMRUNTIME/plugin/eregex.vim
$VIMRUNTIME/plugin/eregex_e.vim
検索は:M/hogeで それ以外は大文字で
テキストに対し固有の設定を書く
マッピングなどはmodeline使えないため
autocmd BufRead ~/デスクトップ/kara.txt set nonu |
\nnoremap j gj| nnoremap k gk
------------------------------------------
参考リンク
お勧めプラグイン
2008年9月21日日曜日
2008年9月16日火曜日
面白いコピペ
1 名前:Socket774[sage] 投稿日:2008/09/09(火) 17:00:33 ID:AVvI1x3R
|㍑㍍||l㌔㍍l|
|㌧㌦||l㌻㍊l|
| ||l㍗㌍l| ┏━━━━━━━━━━┓
| || | ┃┌――――――――┐┃
| || | ┃| \ .|┃
/ ̄ ̄ ̄ ̄ ̄フ.┃| n.∧∧\ .|┃コニl
㌢㍍㌘㌶㌧./...┃| l (^Д^)/)、ヘ,,∧ |┃ ._ __
//! ┃| `ー, `(`ミ゚ヮ゚,,ミ |┃/ .// /l
___/./ .┃| ノ |´\ とソ .|┃ ̄|三三/
___|/ .┃| し'`J ^| | .|┃⊂⊃
┃└─―――――――┘┃ | |
┗━━━━━━━━━━┛ `ー´
人は何かの犠牲なしに何も得ることは出来ない
パソコンを得るためには相応の代価が必要になる
それが自作PCにおける自己責任の原則だ
このスレに来るまで 僕等はそれが世界の真実だと信じていた...
多分↑をJaneとかにコピペすりゃーズレないだろう
apache2のインデックスにヘッダとかフッタとか付ける
#
# ReadmeName is the name of the README file the server will look for by
# default, and append to directory listings.
#
# HeaderName is the name of a file which should be prepended to
# directory indexes.
ReadmeName README.html
HeaderName HEADER.html
autoindexモジュールの
この辺の設定を変える。README.htmlの内容がファイルインデックスの欄の前か後ろに出るはずさ
# ReadmeName is the name of the README file the server will look for by
# default, and append to directory listings.
#
# HeaderName is the name of a file which should be prepended to
# directory indexes.
ReadmeName README.html
HeaderName HEADER.html
autoindexモジュールの
この辺の設定を変える。README.htmlの内容がファイルインデックスの欄の前か後ろに出るはずさ
2008年9月15日月曜日
2008年9月7日日曜日
2008年9月6日土曜日
登録:
投稿 (Atom)
