Skip to main content

Posts

Showing posts from August 8, 2010

gnome screen

screen nano editor에서 빠져나오기 C+x가 screen prefix 일 경우, nano 에디터에서 빠쪄나오기 어렵다. 이때는 C+t, C+z하면 background 처리한 후, kill 명령어로 nano 실행 프로세스를 죽여야 한다.     그리고 crontab -e를 실행할 때, export VISUAL=vim; crontab -e로 실행해라.     screen session title를 변경 원할 경우 C+x, shift+a 하면 각 창 제목을 변경할 수 있다.     user's manual http://www.delorie.com/gnu/docs/screen/screen_toc.html - Run a new screen session # screen - Reattach to a previously detatched session # screen -R - Create a new window. # '''prefix''' c - Kill the current window - after confirmation # '''prefix''' k - 현재 창의 창 번호를 변경하는 방법 예 창번호 3에서 1로 변경할 경우, 먼저 창 3으로 이동한 상태에서 # '''prefix''' :number 1 [enter]하면 창번호3이 1로 변경됨.  - Switch to the other window # '''prefix''' space - Detach & Attach screen を起動した状態で、 # Ctrl-z d or Ctrl-z ^D とすると、screenを起動する前のシェルに戻ります。screenはバックグランドで動いています。これを「Detachedデタッチ」と言います。 Attachedとは「再開」 デタッチしたセッションを確認
vim tips how to execute a shell command r !command 문자코드 지정 읽기 vim  "+e ++enc=cp932" filename buffer사용 open a file as buffer :badd f1.txt show list of all the existing buffers :buffers :ls :files go to next buffer :bNext back to previous buffer :bPrevious delete buffer :bdelete f1.txt :bdelete 4 Folding creating fold or delete zr : create folding zd : delete of folding symbol nearby curosr, e.g., {{{ }}} zE : delete of folding symbol all in a current file open & close folding zo : Open one fold under the cursor zO : Open all folds under the curosr recursively zc : Close one fold under the cursor zC : close all folds under the cursor recursively zR : open all folds Moving over folds [z : move to the start of the cureent open fold ]z : move to the end of the current open fold zj : move downwards to the start of the next fold zk : move upwards to the end of the previous fold Bookmark m{a-zA-Z} : set mark {a-zA-Z