vi 사용시 윈도우 간의 이동은 어떻게 하나요?

yaru22의 이미지

vim 실행시켜서

:help 하면 help window 가 뜨자나요

그러면 화면 구조가

+--------------------------------+
| |
| Help Window |
|--------------------------------+
| |
| Edit Window |
| |
|--------------------------------+
| cmd Window |
+--------------------------------+

뭐 대략 이런식으로 되자나요

여기서 help window 읽다가 edit window 에서 뭐 글 고치고 싶다면 (help window 닫지 않은 상태에서) 어떤 키를 눌러서 하죠?

:set mouse=a 하니깐 마우스로도 help window 랑 edit window 랑 왔다갔다 할 수 있긴 하던데

키보드로만 할 수 있는 방법이 궁금해서요 ^^;

그리고 키보드로 Help Window vertical height 조절 할 수 있는 방법도 있나요?

rocketfire의 이미지

ctrl + w(두번) 입니다~

마잇의 이미지

현재 윈도우 사이즈 키우기 : Ctrl+w, +
줄이기 : Ctrl+w, -

윈도우간 이동은 이렇게 써도 괜찮습니다.

nmap J <C-w>j
nmap K <C-w>k

명령 상태에서 대문자 J, K로 위아래로 이동 하는 설정입니다 ~/.vimrc에 넣고 쓰시면 됩니다.

--
마잇


--
마잇

7339989b62a014c4ce6e31b3540bc7b5f06455024f22753f6235c935e8e5의 이미지

Ctrl-W 하고 방향키로 합니다.

onts1004의 이미지

ctrl + w , _ 최소화
ctrl +w, = 원상태

여러개 편집중일때 쓰면 편해요

karkayan의 이미지

C-w, J
C-w, K

요것들은 윈도우 자체를 이동시켜 버리죠
new로 대충 여러개 띄운 다음에 정리해서 보면

처음에는 사용법이 약간 헷갈리지만 익숙해지면 원하는 모양을 만드실 수 있을겁니다.

익명 사용자의 이미지

넓히고 싶은 윈도에서

ctrl + w + 10 + '+'

하시면 10만큼 늘어납니다.

ctrl + w + 10 + '-'

하시면 10만큼 창이 작아집니다.

oosap의 이미지

28 nmap <<<<
29 nmap <
30
31 nmap >>>>
32 nmap >
33 nmap \|
34
35 nmap ++++
36 nmap +
37 nmap _
38
39 nmap ----
40 nmap -

창 크기(폭, 높이)를 조절할 때 제가 쓰는 방법입니다.

Thanks for being one of those who care for people and mankind.
I'd like to be one of those as well.

oosap의 이미지


 28 nmap <C-Left> <C-W><<C-W><<C-W><<C-W><
 29 nmap <S-Left> <C-W><
 30 
 31 nmap <C-Right> <C-W>><C-W>><C-W>><C-W>>
 32 nmap <S-Right> <C-W>>
 33 nmap <A-Right> <C-W>\|
 34 
 35 nmap <C-Up> <C-W>+<C-W>+<C-W>+<C-W>+
 36 nmap <S-Up> <C-W>+
 37 nmap <A-Up> <C-W>_
 38 
 39 nmap <C-Down> <C-W>-<C-W>-<C-W>-<C-W>-
 40 nmap <S-Down> <C-W>-

답글 수정이 안되니 미리보기를 꼭 해봐야 겠군요..

Thanks for being one of those who care for people and mankind.
I'd like to be one of those as well.

댓글 달기

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