R 명령 되돌리기 - R myeonglyeong doedolligi

anki, ankilog, Cut, Learning, Practice, redo, Study, undo, vi, vi improved, vim, 공부, 명령취소, 배우기, 안키, 암기, 앙키, 이전 명령 반복하기, 익히기, 잘라내기, 재실행, 학습

잘라내기(cut)

앞서 포스팅한 레지스터에 대한 내용을 이해했으면 vim에서는 잘라내기(cut)라는 것이 별도로 없다는 것을 눈치챌 수 있을 것이다. 이는 삭제한 데이터가 없어지지 않고 레지스터에 바로 들어가기 때문이다. 따라서 그냥 삭제하고 필요한 곳에서 pP키로 붙여넣으면 된다

, vim에서는 삭제가 곧 잘라내기(cut)이므로 별도의 잘라내기(cut) 키가 필요없다.

명령취소(Undo) 및 재실행(Redo)

문서를 편집할 때 실행을 취소하는 undo(보통Ctrl+z)와 실행 취소한 것을 다시 재실행하는 redo 기능을 잘 쓰면 실수한 것을 되돌릴 수 있어 정말 편하다vim에도 동일한 기능이 있다. 바로 명령 모드에서 u<Ctrl+r>이다

u명령 취소(Undo)로 바로 이전에 행한 명령 취소

<Ctrl+r>재실행(Redo)으로 이전에 명령 취소(u)한 것취소

※ vim에서 명령취소(u키)의 파워는 매우 강력해서 거의 대부분의 작업을 역순으로 감아올릴 수 있다

이전 작업 반복하기

마침표(.)를 쓰면 이전에 한 작업을 그대로 반복할 수 있다.

즉, 바로 앞에 명령 모드에서 명령어로 작업을 했다면 해당 명령어를 통한 작업을 반복하고,

바로 앞에 편집 모드에서 들어가서 문서를 작성한 후 [Esc] 키를 눌러 명령 모드로 돌아왔다면 마침표(.)를 누르면 편집 모드에서 [Esc] 키를 눌러 명령 모드로 돌아오기 전까지 입력한 내용들p와 동일한 방식으로 붙여넣기 된다. 이는 ".레지스터에 있는 내용들을 p로 붙여넣기 하는 ".p와 동일한 결과를 보여준다

명령 모드에서 dd.  → 커서가 위치한 행을 지우고 밑에 있는 행을 끌어올린 후 다시 동일한 작업 반복

명령 모드에서 x.   → 커서가 위치한 한글자를 지우고 다시 동일한 작업 반복

명령 모드에서 iloveu[Esc]jj. → 편집 모드로 들어가(i키) "loveu"라는 문자열을 타이핑한 후 다시 명령 모드로 돌아와([Esc]키) 현재 위치에서 2행 아래로 내려가서(jj키) "loveu" 라는 문자열을 p로 붙여넣기(.키)

Anki 파일

아래는 본 포스팅의 내용을 갈무리하기 위한 Anki 파일입니다. 참고하시기 바랍니다. 

R 명령 되돌리기 - R myeonglyeong doedolligi
017 잘라내기, 명령취소(undo), 재실행(redo), 이전 작업 반복하기.apkg

실행 취소, 다시 실행

여기서 알려주는 방법을 쓰면 실수로 했던 행동을 되돌리거나, 다시 할 수 있어요. 아니면 지금까지 했던 행동들 중 특정 지점을 찾아갈 수도 있구요.

실행 취소(undo)

Reference

Mode

모든 모드

Menu단축키(hotkey)

Ctrl-Z

방금 한 명령을 실행취소하고 싶다면 Ctrl-Z 를 누르면 돼요.

다시 실행(redo)

Reference

Mode

모든 모드

Menu단축키(hotkey)

Shift-Ctrl-Z

실행취소를 무마하려면 Shift-Ctrl-Z 를 누르세요.

Adjust Last Operation

Reference

Mode

모든 모드

Menu단축키(hotkey)

F9

You can tweak the parameters of an operator after running it. In editors that support it, there is a “head-up display” panel in the bottom left based on the last performed operation. Alternatively, you can create a pop-up with F9 which does the same thing.

For example, if your last operation was a rotation in Object Mode, Blender will show you the last value changed for the angle (see Fig. Rotation (Object Mode, 60 degrees). left), where you can change your action back completely by typing Numpad0. There are other useful options, based on the operator, and you cannot only Undo actions, but change them completely using the available options.

If you are in Edit Mode, Blender will also change its contents based on your last action taken. In the second example (on the right), the last operation was a Move in Object Mode; but a Scale on a Face in Edit Mode, and, as you can see, the contents of Adjust Last Operation are different, because of the mode (Edit Mode) (See Fig. Scale (Edit Mode, Resize face). right).

Adjust Last Operation.
R 명령 되돌리기 - R myeonglyeong doedolligi

Rotation (Object Mode, 60 degrees).

R 명령 되돌리기 - R myeonglyeong doedolligi

Scale (Edit Mode, Resize face).

Some operations produce particularly useful results by using Adjust Last Operation. For example, adding a Circle in the 3D Viewport; if you reduce the Vertices to three, you get a perfect equilateral triangle.

The Adjust Last Operation region can be hidden by .

실행 기록(undo history)

Reference

Mode

모든 모드

Menu

R 명령 되돌리기 - R myeonglyeong doedolligi

The Undo History menu.

There is also an Undo History of the last actions taken, recorded by Blender.

The top of the list corresponds to the most recent actions. A small icon of a dot next to one of the entries indicates the current status. Rolling back actions using the Undo History feature will take you back to the action you choose. Much like how you can alternate between going backward in time with Undo and then forward with Redo, you can hop around on the Undo timeline as much as you want as long as you do not make a new change. Once you do make a new change, the Undo History is truncated at that point. Selecting one of the entries in the list takes the current status to that position.

방금 명령 반복(repeat last)

Reference

Mode

모든 모드

패널단축키(hotkey)

Shift-R

방금명령반복 기능은 Shift-R 으로 사용할 수 있어요. 말 그대로 방금 했던 명령을 반복하는 기능이에요.

In the example images below, we duplicated a Monkey mesh and moved it a bit. Using repeat Shift-R, the Monkey was duplicated and moved a second time.

R 명령 되돌리기 - R myeonglyeong doedolligi

Suzanne

R 명령 되돌리기 - R myeonglyeong doedolligi

Shift-D 그리고 G

R 명령 되돌리기 - R myeonglyeong doedolligi

Shift-R

반복 기록(repeat history)

Reference

Mode

모든 모드

Menu

R 명령 되돌리기 - R myeonglyeong doedolligi

반복기록 메뉴

The Repeat History feature will present you a list of the last repeated actions, and you can choose the actions you want to repeat. It works in the same way as the Undo History, explained above, but the list contains only repeated actions.

중요

블렌더를 끄면, 파일 저장 여부랑은 상관없이 실행기록이 모두 사라진답니다.