ls 칼라 설정 (ls color setting )
http://kldp.org/node/57633
gvim column select ( 열선택 : ctrl-v ==> ctrl-q )
3. Complex repeats               *complex-repeat*

                     *q* *recording*
q{0-9a-zA-Z"}     Record typed characters into register {0-9a-zA-Z"}
         (uppercase to append).  The 'q' command is disabled
         while executing a register, and it doesn't work inside
         a mapping.  {Vi: no recording}

q        Stops recording.  (Implementation note: The 'q' that
         stops recording is not stored in the register, unless
         it was the result of a mapping)  {Vi: no recording}

                     *@*
@{0-9a-z".=*}     Execute the contents of register {0-9a-z".=*} [count]
         times.  Note that register '%' (name of the current
         file) and '#' (name of the alternate file) cannot be
         used.  For "@=" you are prompted to enter an
         expression.  The result of the expression is then
         executed.  See also |@:|.  {Vi: only named registers}

각종 태크(Tlist, set number ) 등으로 각 함수를 쉽게 copy 할수 없을때, 임시 파일을 만들고,
임시파일을 다시 열어서 복사 한다. ( ㅡ,.ㅡ )

비주얼 블럭으로 선택후

: 를 누르면
:'<,'>
이렇게 나오는데

이때

:'<,'>w chozo99
이렇게 w 누르고 임시 파일명 'chozo99' 를 치고 chozo99 파일에 저장후 .

:vi chozo99

열어서 copy 한다.


vimdiff 이용시는
위 처럼 비교 하고자하는 파일 2개를 비주얼 블럭으로 파일 생성후,
:!vimdiff sourcefile diffile





SHLVL
Incremented by one each time a new instance of Bash is started. This is intended to be a count of how deeply your Bash shells are nested.
처음 에는 '1'

screen 들어 가면 '2'

vi 들어 가서 :sh 통해서 또 shell 를 호출 할때는 '3'

자동 증가 한다.


alox:chozo99:/home/chozo99> env | grep SH
SHELL=/bin/bash
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
SHLVL=2
CVS_RSH=ssh

alox:chozo99:/home/chozo99> echo $SHLVL
2




:help match

:noh
:nohlsearch

no high light search

http://www.abstractpath.com/powermenu/

ctags 를 이용하여, 함수를 이동하다가 보면, 너무 깊숙이 들어와서 헷갈릴때가 있다,
이때 지금 까지 온 list 를 보고 다시 뒤로 갈수도, 뒤로 왔다가 다시 앞으로 갈수도 있다.
(tag stack 관련)

   # TO tag      FROM line in file/line
   1  1 main             1  harddisk2:text/vim/test
 > 2  2 FuncA           58  i = FuncA(10);
   3  1 FuncC          357  harddisk2:text/vim/src/amiga.c

tags 이동 ( [count]po[p] , [count]ta[b] )

:po
:ta

:po ==> ctrl-t

:3po
:3ta

:tags  ==> list 보기


현재 디렉토리에
.vimrc 를 생성해서 따로 독립적인 환경을 셋팅후
:source .vimrc
:source 파일명

현재 .vimrc 를 다시 실행 하고 싶다면,
:so %
==> 현재 .vimrc 파일을 열고 있고, 현재 화면에 있는 파일이 .vimrc 파일규격일경우, 해당
프로파일을 셋팅 해준다.


gdb 에서 stl 컨테이너 데이터 보기
http://www.yolinux.com/TUTORIALS/GDB-Commands.html

gdb print option  설정
https://developer.apple.com/documentation/DeveloperTools/gdb/gdb/gdb_9.html


+ Recent posts