vim 사용시

bw001730의 이미지

인터넷에서 문서들을 보면
map <F2> :w!<CR>

이런 팁들이 많습니다.

근데 저는 F2를 누르면 대문자로 된 알파벳 2글자가 소문자로 바뀝니다.
F3을 누르면 3글자가 소문자로 바뀝니다.
또 소문자들은 대문자로 바뀌구요
(대소문자가 토글되는 거죠)

.vimrc 에 위와같이 설정했는데도 그러는데요

어떻게 해야 map으로 설정한것을 사용할 수 있을지요

oedalpha의 이미지

vim에서 대소문자 바꾸는 키가 ~ 입니다.

vim에서 말고, shell 상태에서 펑션키를 한번 눌러보세요.

사용하고 계신 터미널이 펑션키를 질문하신 분이 원하시는 대로 보내주지않고 있는 것 같습니다. (아마도 ~가 포함된 문자열이 가는 듯하네요)

사용하고 계신 터미널의 설정을 바꾸어보시면 문제 해결에 도움이 될 것 같습니다.

bw001730의 이미지

터미널에서 F3을 누르니깐
3~
으로 나오는 군요

그래서......................
3글자를 대소문자를 바꾸는 것이군요

초보라서 그러는데
F3을 키를 어떻게 바꾸는 것인지좀 알려주세요

랜덤여신의 이미지

Vim 에서

Ctrl+V 를 입력하거나

Ctrl+Q 를 입력하면 (이 단축키는 확신하지 못하겠습니다)

특수 문자를 입력 받을 수 있는 상태가 됩니다.

이 상태에서 F3 키를 눌러 보시기 바랍니다.

ps: Ctrl+V 모드를 이용하여, 아스키 코드로 문자를 직접 입력할 수도 있습니다.

이때는, 065 식으로 넘버를 입력하시면 됩니다.

그럼...

pynoos의 이미지

barosl wrote:
Vim 에서

Ctrl+V 를 입력하거나

Ctrl+Q 를 입력하면 (이 단축키는 확신하지 못하겠습니다)

Win32 용 vim 설치본을 받아 설치하면 vimrc 에 Ctrl+Q를 Ctrl+V 대신 쓸 수 있도록 mapping이 바뀌어 있더군요.

댓글 달기

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