gvim 에서 목록 이동하기

yshwindow의 이미지

학교에서 보고서나 기타등등으로 인해 윈도우를 자주 쓰게 됩니다.
윈도우에서 gvim 을 사용하려고 하는데 리눅스에서 쓰던 기능 몇가지가 구현이 안되서
이렇게 여쭤봅니다.
눅스에서 사용할때에는...
------------------------------------------------------------------------------
" map :gr '\<\>' `find ./ -name "*.[ch]"`
" map :gr '\<\>' `find ./ -name "*.h"`
" map :gr '\<\>' `find ./ -name "*.c"`
------------------------------------------------------------------------------
이렇게 맵핑 시켜놓고 cn, cp로 목록을 쭈욱 봤는데요...
윈도에서 사용하려고 하니
------------------------------------------------------------------------------
map :findstr '\<\>' /g:*.c /g:*h
map :findstr '\<\>' *.h
map :findstr '\<\>' *.c
------------------------------------------------------------------------------
대충 이렇게 쓰면 될거 같습니다.(gr은 find str로 대체되더군요.)
근데 막상 "BYTEBLASTER"란 단어를 찾아보려고 F6를 누르면
------------------------------------------------------------------------------
:!findstr /n '\' *.h > C:\DOCUME~1\toma\LOCALS~\Temp\VIe39.tmp 2>&1
쉘이 1을 돌려주었습니다.
E40: 에러파일 C:\DOCUME~1\toma\LOCALS~\Temp\VIe39.tmp 을 열 수 없습니다.
------------------------------------------------------------------------------
이렇게 나옵니다.
찾은 결과를 gvim 으로 가져오려면 어떻게 해야 할까요?
gvim사용하시는 분들 계시면 가르침 부탁드립니다.

pool007의 이미지

그러니까 무슨 기능을 쓰려하시는건가요?
그냥 단어를 여러 파일에서 찾는거라면
:grep 단어 *

이렇게 하시고 cn, cp 하실 수 있는데요.

--
Passion is like genius; a miracle.

--
Passion is like genius; a miracle.

yshwindow의 이미지

찾으려 하는 단어를 하이라이트 시킨다음에
맵핑시킨 단축기로 한번에 찾는것 입니다.
그러니까...
:grep 단어 * -> F5
이렇게 하고 싶습니다.

눅스에선 이렇게 맵핑하여 사용했습니다.(>를 )로 대체했습니다... 안써지길래...)
map (F5)(ESC):gr ' \((C-R)(C-W)\)' `find ./ -name "*.[ch]"` (CR)

아... 이렇게 하면 되는군요
map (F5)(ESC):gr (C-R)(C-W) `find ./ -name "*.[ch]"` (CR)

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.