VIM Tips
現在編集中のファイル名を表示する
Ctrl + g または :f
CTRL-G or *CTRL-G* *:f* *:fi* *:file*
:f[ile] Prints the current file name (as typed, unless ":cd"
was used), the cursor position (unless the 'ruler'
option is set), and the file status (readonly,
modified, read errors, new file). See the 'shortmess'
option about how to make this message shorter.
{Vi does not include column number}
Vimでは編集中のファイルがどのディレクトリにあるのかがステータスラインに表示さ>れません。このため、度々どこのディレクトリにあったかなと迷ってし まうことがあり>ます。
ステータスラインに表示する文字を変更する手もありますが、<C-G>を使うことでファ>イルの情報を表示することが出来 ます。<C-G>は<Ctrl>キーを押しながら<g>を押すこと>を意味します。<C-G>, 1<C-G>, 2<C-G>と頭に数字をつけると詳細な情報になっていきます。編集中のファイルのフルパスを表示させるには、1<C-G>か 2<C-G>を使ってください。
カレントディレクトリを表示するには、 :cd や :pwd を使う。
最終更新:2013年05月23日 06:49