본문 바로가기
PC 관리/WEB

Vim in Chrome

by s_signal 2024. 10. 4.
반응형

Chrome 확장 프로그램의 Vimium 의 사용방법이다.

 

Chrome app store에서 Vimium을 설치하면

바로 아래 명령을 사용 가능하다.

 

화면 위 아래 line 단위, page 단위 이동과

Ctrl+PageUp 과 Ctrl+PageDown을 사용한

Chrome Tab 이동을 함게 사용하면

Mouse 사용을 많이 줄여줄 것 으로 기대된다.

 


Navigating the current page:

  • Scroll per Line
        h       scroll left
        j       scroll down
        k       scroll up
        l       scroll right

  • Scroll per Page

    gg      scroll to top of the page
    G       scroll to bottom of the page
    d       scroll down half a page
    u       scroll up half a page


  • Open a hyper link
    The key show the Short Cut Characters.
    If you type a Short cut, the link will be shown.

        f       open a link in the current tab
        F       open a link in a new tab

  • Copy the link
        yy      copy the current url to the clipboard
        yf      copy a link url to the clipboard

Navigating to new pages:


    o       Open URL, bookmark, or history entry
    O       Open URL, bookmark, history entry in a new tab
    b       Open bookmark
    B       Open bookmark in a new tab


Using find:

    /       enter find mode -- type your search query and hit enter to search or esc to cancel
    n       cycle forward to the next find match
    N       cycle backward to the previous find match


Navigating your history:

    H       go back in history
    L       go forward in history


Manipulating tabs:

    J, gT      go one tab left
    K, gt      go one tab right
    g0         go to the first tab
    g$         go to the last tab
    t          create tab
    x          close current tab
    X          restore closed tab (i.e. unwind the 'x' command)
    T          search through your open tabs

 


Additional advanced browsing commands:

    ]]      Follow the link labeled 'next' or '>'. Helpful for browsing paginated sites.
    [[      Follow the link labeled 'previous' or '<'. Helpful for browsing paginated sites.
    <a-f>   open multiple links in a new tab
    gi      focus the first (or n-th) text input box on the page
    gu      go up one level in the URL hierarchy


Others

    ?       show the help dialog for a list of all available keys

    r       reload
    gs      view source
    i       enter insert mode -- all commands will be ignored until you hit esc to exit

    gf      cycle forward to the next frame



Vimium supports command repetition so, for example, hitting '5t' will open 5 tabs in rapid succession. ESC (or <c-[>) will clear any partial commands in the queue and will also exit insert and find modes.

 

 

다음은 무슨 의미인지 모르겠다.

Modifier keys are specified as <c-x>, <m-x>, <a-x> for ctrl+x, meta+x, and alt+x respectively.

 

반응형