프로그램 사용/vi2014. 9. 5. 10:51
source insight 처럼 vi 설정하다 보니 거의 필수(?) 인 녀석
마우스를 사용가능하도록 해주는 건데
F12를 누르면 toggle 형태로 작동하게 된다.

[링크 : https://github.com/nvie/vim-togglemouse] F12로 마우스 토글
    [링크 : http://nvie.com/posts/how-i-boosted-my-vim/

'프로그램 사용 > vi' 카테고리의 다른 글

vi 문자열 치환  (0) 2015.08.04
vi 사각형 선택하기  (0) 2014.09.11
vi를 source insight 처럼 설정하기  (0) 2014.09.04
vi에서 마우스 사용하도록 설정하기  (0) 2014.09.04
vi를 IDE 처럼 사용하기  (0) 2014.09.04
Posted by 구차니
프로그램 사용/vi2014. 9. 4. 23:20
이거 대로 설정하면 아쉬운대로 source insight 급으로 쓸수 있다는데..
회사에서도 이렇게 설정해서 쓰는 분이 계시는듯 한데..
직접 해보고 익숙해 지기 전까지는 아무래도.. 힘들듯..

[링크 : http://brucekim.egloos.com/viewer/3389981]
    [링크 : http://swbae98.wordpress.com/2011/08/04/vim-like-source-insight/]
[링크 : http://tactlee.egloos.com/viewer/1454652] 소스 인사이트에서 gvim을 편집기로 연결하기


plugin

Trinity가 메인 (내부에 NERDTree 내장)
아래의 4개를 풀면 된다. 단, Trinity 는 Trinity - plugin - trinity.vim 식으로 존재하니
.vim/plugin/Trinity/plugin/trinity.vim 이 되도록 넣어 주어야 한다.

[링크 : http://www.vim.org/scripts/script.php?script_id=2347] Trinity - Source Explorer / NERD Tree / Taglist 관리
[링크 : http://www.vim.org/scripts/script.php?script_id=2179] Source Explorer (Context Window)
[링크 : http://www.vim.org/scripts/script.php?script_id=273] taglist
[링크 : http://www.vim.org/scripts/script.php?script_id=159] minibufbrowser
[링크 : https://github.com/nvie/vim-togglemouse] F12로 마우스 토글

그리고 .vimrc에서
nmap <F5> :TlistToggle<CR>
nmap <F7> :NERDTreeToggle<CR>
nmap <F8> :SrcExplToggle<CR> 
nmap <F9> :TrinityToggleAll<CR> 

4개를 설정해주면 간단하게 사용!
F5는 태그리스트
F7은 파일 브라우저
F8은 컨텍스트
F9는 전체를 끄고 켜는 기능이다. 


[링크 : http://vim-taglist.sourceforge.net/]
[링크 : http://www.vim.org/scripts/script.php?script_id=3252]  

'프로그램 사용 > vi' 카테고리의 다른 글

vi 사각형 선택하기  (0) 2014.09.11
vi 유용한 플러그인 - F12 mouse 토글  (0) 2014.09.05
vi에서 마우스 사용하도록 설정하기  (0) 2014.09.04
vi를 IDE 처럼 사용하기  (0) 2014.09.04
vi 에서 탐색기(?)  (0) 2014.08.26
Posted by 구차니
프로그램 사용/vi2014. 9. 4. 15:02
putty + vi 에서도 마우스가 사용이 가능하다!
마우스를 쓸수 있으면 좋은점은...
창 관리가 쉽다는거?

단, putty에서 마우스를 활성화 하면
putty 자체의 기능인 드래그 복사가 안되니 주의!

                        VIM - main help file
                                                                         k
      Move around:  Use the cursor keys, or "h" to go left,            h   l
                    "j" to go down, "k" to go up, "l" to go right.       j
Close this window:  Use ":q<Enter>".
   Get out of Vim:  Use ":qa!<Enter>" (careful, all changes are lost!).

Jump to a subject:  Position the cursor on a tag (e.g. |bars|) and hit CTRL-].
   With the mouse:  ":set mouse=a" to enable the mouse (in xterm or GUI).
                    Double-click the left mouse button on a tag, e.g. |bars|.
        Jump back:  Type CTRL-T or CTRL-O (repeat to go further back).

Get specific help:  It is possible to go directly to whatever you want help
                    on, by giving an argument to the |:help| command.
                    It is possible to further specify the context:
                                                        *help-context*
                          WHAT                  PREPEND    EXAMPLE      ~
                      Normal mode command      (nothing)   :help x
                      Visual mode command         v_       :help v_u
                      Insert mode command         i_       :help i_<Esc>
                      Command-line command        :        :help :quit
                      Command-line editing        c_       :help c_<Del>
                      Vim command argument        -        :help -r
                      Option                      '        :help 'textwidth'
  Search for help:  Type ":help word", then hit CTRL-D to see matching
                    help entries for "word". 

Enable vim automatic visual mode using mouse
:set mouse=a

Disable vim automatic visual mode using mouse
:set mouse-=a
 
[링크 : http://yard.tistory.com/entry/vi에서-Mouse마우스-컨트롤-설정해제

Posted by 구차니
프로그램 사용/vi2014. 9. 4. 14:32
vi 플러그인 모음

[링크 : http://vim.wikia.com/wiki/Use_Vim_like_an_IDE]
Posted by 구차니
Linux/Ubuntu2014. 9. 4. 09:22
회사 옮기고 첨 알은 단축키 ㄷㄷ
일단 metacity에서 단축키로 기본 등록이 된 것으로 보이는데..
Ubuntu 10.04 LTS 기준으로는
시스템 - 기본 설정 - 키보드 바로 가기에 설정이 존재한다.



[링크 : http://askubuntu.com/questions/133718/how-do-i-unbind-ctrl-alt-t]
Posted by 구차니
Linux2014. 9. 3. 11:04
$ set -o vi
를 사용하면 명령어 줄 에서 vi 처럼 편집이 가능한데
증상으로는 home 키를 누르거나 하면 대문자로 바뀐다 -_-
아무튼 home / end를 쓰기 위해서는
vi 모드를 해제해야 하는데
vi 모드의 반대(?)는 emcas 모드?!!?!?

$ set -o vi
$ set -o emacs

$ set -o
allexport       off
braceexpand     on
emacs           on
errexit         off
errtrace        off
functrace       off
hashall         on
histexpand      on
history         on
ignoreeof       off
interactive-comments    on
keyword         off
monitor         on
noclobber       off
noexec          off
noglob          off
nolog           off
notify          off
nounset         off
onecmd          off
physical        off
pipefail        off
posix           off
privileged      off
verbose         off
vi              off
xtrace          off
$ set -o
allexport       off
braceexpand     on
emacs           off
errexit         off
errtrace        off
functrace       off
hashall         on
histexpand      on
history         on
ignoreeof       off
interactive-comments    on
keyword         off
monitor         on
noclobber       off
noexec          off
noglob          off
nolog           off
notify          off
nounset         off
onecmd          off
physical        off
pipefail        off
posix           off
privileged      off
verbose         off
vi              on
xtrace          off

'Linux' 카테고리의 다른 글

rdate / ntp  (0) 2014.09.17
nice  (0) 2014.09.16
bash 파일 상태 관련 if  (0) 2014.09.01
audit  (0) 2014.08.30
history - bash  (0) 2014.08.30
Posted by 구차니
ubuntu 에서도 적용됨(10.04 LTS)

$ vi /etc/ssh/sshd_config
 UseDNS no

[링크 : http://server.tistory.com/144]
[링크 : http://kiin.wordpress.com/2012/02/21/how-to-decrease-ssh-connection-time-on-centos/


'프로그램 사용 > ssh scp sftp' 카테고리의 다른 글

ssh X11 forwarding 속도 향상  (0) 2015.09.24
sshd server key 경로  (0) 2015.01.06
ssh X11 forwarding 옵션  (0) 2012.01.25
ssh X11 터널링  (0) 2012.01.24
scp 사용하기  (0) 2011.04.18
Posted by 구차니
Linux/Ubuntu2014. 9. 3. 10:31
hold 라고 하는데.
ubuntu 10.04 LTS에서 찾아보니..

apt-mark로 처리가 가능한 것으로 보인다.
NAME
       apt-mark - mark/unmark a package as being automatically-installed

SYNOPSIS
       apt-mark [-hv] [-f=FILENAME] {markauto | unmarkauto} package...  | showauto

DESCRIPTION
       apt-mark will change whether a package has been marked as being automatically installed.

       When you request that a package is installed, and as a result other packages are installed
       to satisfy its dependencies, the dependencies are marked as being automatically installed.
       Once these automatically installed packages are no longer depended on by any manually
       installed packages, they will be removed by e.g.  apt-get or aptitude.

       markauto
           markauto is used to mark a package as being automatically installed, which will cause
           the package to be removed when no more manually installed packages depend on this
           package.

       unmarkauto
           unmarkauto is used to mark a package as being manually installed, which will prevent
           the package from being automatically removed if no other packages depend on it.

       showauto
           showauto is used to print a list of automatically installed packages with each package
           on a new line.
 

문제는..
apt-get에서 --ignore-hold 라는게 있다는 점 -_-a 
      --ignore-hold
           Ignore package Holds; This causes apt-get to ignore a hold placed on a package. This
           may be useful in conjunction with dist-upgrade to override a large number of undesired
           holds. Configuration Item: APT::Ignore-Hold.
 
[링크: http://askubuntu.com/questions/18654/how-to-prevent-updating-of-a-specific-package]

'Linux > Ubuntu' 카테고리의 다른 글

manpath  (0) 2014.12.07
ctrl - alt - t 로 터미널 실행  (0) 2014.09.04
Ubuntu 14.04 LTS desktop 64bit edition  (0) 2014.06.14
우분트 포트란 패키지  (4) 2014.06.13
우분투 설치된 패키지 목록 얻기  (0) 2014.05.24
Posted by 구차니
회사일2014. 9. 2. 11:21
Engineering Change Request     / 변경요구
Engineering Change Order         / 변경명명
Engineering Change Notification / 변경알림

[링크 : http://thatisgood.tistory.com/59]

'회사일' 카테고리의 다른 글

pulseaudio / jack / sound server  (0) 2014.11.16
ADAT - Alesis Digital Audio Tape  (0) 2014.11.03
CD 굽는 컴퓨터  (4) 2012.11.20
SUS(Steel Use Stainless) / STS  (0) 2012.03.11
SEMS screw  (0) 2012.01.04
Posted by 구차니
Linux API2014. 9. 2. 08:08

'Linux API' 카테고리의 다른 글

lirc - linux IR Remote control  (0) 2015.03.31
vaapi vdpau uvd  (6) 2015.03.26
linux 최대 thread 갯수  (0) 2015.01.22
getopt() / getopt_long()  (0) 2014.11.19
timeval, gettimeofday()  (0) 2013.08.20
Posted by 구차니