Warning: include_once(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in /home/users/2/moriya-h5/web/confrage/editor/gvim/useful_command/search/search.html on line 2

Warning: include_once(http://www.confrage.com/bin/header.php): failed to open stream: no suitable wrapper could be found in /home/users/2/moriya-h5/web/confrage/editor/gvim/useful_command/search/search.html on line 2

Warning: include_once(): Failed opening 'http://www.confrage.com/bin/header.php' for inclusion (include_path='.:/usr/local/php/5.6/lib/php') in /home/users/2/moriya-h5/web/confrage/editor/gvim/useful_command/search/search.html on line 2
gvimで文字列の検索 | 株式会社CONFRAGE
Warning: include_once(/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/menu.php): failed to open stream: No such file or directory in /home/users/2/moriya-h5/web/confrage/editor/gvim/useful_command/search/search.html on line 17

Warning: include_once(): Failed opening '/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/menu.php' for inclusion (include_path='.:/usr/local/php/5.6/lib/php') in /home/users/2/moriya-h5/web/confrage/editor/gvim/useful_command/search/search.html on line 17
gvimで文字列の検索
文字列を検索するには

/検索したい文字列

と入力します。例えば、printfという文字列を検索する場合は

/printf

と入力します。対象文字列が見つかればその文字列の色が変わります。複数見つかった場合に

n

を押すと、現在のカーソル位置から下方向の対象文字列にカーソルが移動します。

N

を押すと、現在のカーソル位置から上方向の対象文字列にカーソルが移動します。
/(スラッシュ)と.(ドット)を検索したい場合は、その文字の前に\を書いてエスケープする必要があります。
例えば、 // test.txt という文字列を検索したい場合

/\/\/ test\.txt

と入力します。ちなみに

/\/\/ test.txt

というように.(ドット)を\でエスケープしなくても // test.txt にマッチします。
これは、.(ドット)が 改行を除く任意の1文字 を表すメタキャラクタのためで、 // testatxt というような文字列にもマッチしてしまいますので、.(ドット)は\でエスケープしなくてはいけません。

Back to top

Information

Warning: include_once(/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/side_bar.php): failed to open stream: No such file or directory in /home/users/2/moriya-h5/web/confrage/editor/gvim/useful_command/search/search.html on line 70

Warning: include_once(): Failed opening '/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/side_bar.php' for inclusion (include_path='.:/usr/local/php/5.6/lib/php') in /home/users/2/moriya-h5/web/confrage/editor/gvim/useful_command/search/search.html on line 70

Warning: include_once(/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/seo.php): failed to open stream: No such file or directory in /home/users/2/moriya-h5/web/confrage/editor/gvim/useful_command/search/search.html on line 79

Warning: include_once(): Failed opening '/home/sites/heteml/users/m/o/r/moriya-h5/web/confrage/bin/seo.php' for inclusion (include_path='.:/usr/local/php/5.6/lib/php') in /home/users/2/moriya-h5/web/confrage/editor/gvim/useful_command/search/search.html on line 79