スパム対策として書込み時にID/PWを要求されますが、ローマ字で ほげ/ホゲ で書き込めるようになります。

path

オプション
path
短縮形
pa
オプションの種類
文字列
初期値
Unix: ".,/usr/include,," OS/2:".,/emx/include,," それ以外: ".,,"
有効範囲
Vim 全体に適用 or バッファに対し適用 |global-local|
互換性
Vi にはない
説明
自動的に使用するディレクトリを','で区切って指定する。
set path=.,/usr/include,
としておくと、カレントディレクトリが/usr/includeでなくても、
:find ctype.h
とすれば、/usr/include/ctype.hを開くことが出来るようになる。 このpathは 「gf」コマンドでも使用することが出来る。
	This is a list of directories which will be searched when using the
	|gf|, [f, ]f, ^Wf, |:find| and other commands, provided that the file
	being searched for has a relative path (not starting with '/').  The
	directories in the 'path' option may be relative or absolute.
	- Use commas to separate directory names:
:set path=.,/usr/local/include,/usr/include
	- Spaces can also be used to separate directory names (for backwards
	  compatibility with version 3.0).  To have a space in a directory
	  name, precede it with an extra backslash, and escape the space:
:set path=.,/dir/with\\\ space
	- To include a comma in a directory name precede it with an extra
	  backslash:
:set path=.,/dir/with\\,comma
	- To search relative to the directory of the current file, use:
:set path=.
	- To search in the current directory use an empty string between two
	  commas:
:set path=,,
	- A directory name may end in a ':' or '/'.
	- Environment variables are expanded |:set_env|.
	- When using |netrw.vim| URLs can be used.  For example, adding
	  "http://www.vim.org" will make ":find index.html" work.
	- Search upwards and downwards in a directory tree:
	  1) "*" matches a sequence of characters, e.g.:
:set path=/usr/include/*
	     means all subdirectories in /usr/include (but not /usr/include
	     itself).
:set path=/usr/*c
	     matches /usr/doc and /usr/src.
	  2) "**" matches a subtree, up to 100 directories deep.  Example:
:set path=/home/user_x/src/**
	     means search in the whole subtree under "/home/usr_x/src".
	  3) If the path ends with a ';', this path is the startpoint
	     for upward search.
	  See |file-searching| for more info and exact syntax.
	  {not available when compiled without the |+path_extra| feature}
	- Careful with '\' characters, type two to get one in the option:
:set path=.,c:\\include
	  Or just use '/' instead:
:set path=.,c:/include
	Don't forget "." or files won't even be found in the same directory as
	the file!
	The maximum length is limited.  How much depends on the system, mostly
	it is something like 256 or 1024 characters.
	You can check if all the include files are found, using the value of
	'path', see |:checkpath|.
	The use of |:set+=| and |:set-=| is preferred when adding or removing
	directories from the list.  This avoids problems when a future version
	uses another default.  To remove the current directory use:
:set path-=
	To add the current directory use:
:set path+=
	To use an environment variable, you probably need to replace the
	separator.  Here is an example to append $INCL, in which directory
	names are separated with a semi-colon:
:let &path = &path . "," . substitute($INCL, ';', ',', 'g')
	Replace the ';' with a ':' or whatever separator is used.  Note that
	this doesn't work when $INCL contains a comma or white space.

トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2014-10-14 (火) 01:13:16 (1288d)