vi editor에서 단어 검색 후에 검색된 단어가 반전되는 것을 막

taeyeung의 이미지

vi editor에서 단어 검색 후에 검색된 단어가 반전이 되는데

이것을 반전이 안되게 하려고 합니다.

어떤 명령어를 주어야 하는지요?

shyxu의 이미지

taeyeung wrote:
vi editor에서 단어 검색 후에 검색된 단어가 반전이 되는데

이것을 반전이 안되게 하려고 합니다.

어떤 명령어를 주어야 하는지요?

특별히 명령어를 쓰진 않지만
저는 다음과 같이 합니다.
%s/asdfbioajerltkjasd
즉 아무렇게나 치는거죠;;
저런 단어는 절대 없을테니..
뭐 되게 허접하지만
나름대로 이렇게 써도...

Since 2003.
지금은 맥유저...
---
http://jtjoo.com

익명 사용자의 이미지

:noh

랜덤여신의 이미지

반전을 해제하기 위해서는 윗분 말씀대로
:noh
하시면 되고,

아예 처음부터 반전 기능을 사용하지 않으려면
:set nohlsearch
하시면 됩니다. :)

taeyeung의 이미지

답변 감사합니다.

좋은 하루 되시길.

지리즈의 이미지

인클루드 wrote:
:set nohlsearch

:set nohls 는 어떨까요? :D

There is no spoon. Neo from the Matrix 1999.

sorcerer의 이미지

근데 이 기능..
있으면 조금 귀찮긴 하지만 없으면 아쉽지 않나요?
다른 에디터들은 찾으면 자동으로 블럭지정을 해 주기 때문에 잘 보이는데
vi의 경우 이 기능이 없으면 멀뚱하니 커서만 깜빡거려서 나중에 찾은 결과가 어딨지ㅡ.,ㅡa하는 경우가 종종 있던데.
뭐, 커서가 큰 텀이나 콘솔이라면 상관없지만요..

SOrCErEr

yundorri의 이미지

shyxu님 너무 고생하시는 것 같네요.
그냥,

/ahdfjkslf

이렇게만 해도 없어지던데요.
그러나 기능을 끄면 더 불편할 것 같습니다.

랜덤여신의 이미지

yundorri wrote:
shyxu님 너무 고생하시는 것 같네요.
그냥,

/ahdfjkslf

이렇게만 해도 없어지던데요.
그러나 기능을 끄면 더 불편할 것 같습니다.

/ahdfjkslf 보다는... :noh 가 훨씬 빠르지 않나요? :D

offree의 이미지

인클루드 wrote:
yundorri wrote:
shyxu님 너무 고생하시는 것 같네요.
그냥,

/ahdfjkslf

이렇게만 해도 없어지던데요.
그러나 기능을 끄면 더 불편할 것 같습니다.

/ahdfjkslf 보다는... :noh 가 훨씬 빠르지 않나요? :D

:noh 그런기능이 있었군요.

그런데, : 를 위해 shift 를 누르는 것 때문에 오히려 /ahdfjkslf 가 나을듯 합니다. ^^

사용자가 바꾸어 나가자!!

= about me =
http://wiki.kldp.org/wiki.php/offree , DeVlog , google talk : offree at gmail.com

댓글 달기

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
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.