Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

map key trong vim #35

Open
xluffy opened this issue Feb 20, 2017 · 0 comments
Open

map key trong vim #35

xluffy opened this issue Feb 20, 2017 · 0 comments

Comments

@xluffy
Copy link
Owner

xluffy commented Feb 20, 2017

Sự khác nhau giữa setlet

  • set dùng để định nghĩa trực tiếp một cấu hình cho vim
  • let dùng để gán một giá trị cho biến

Sự khác nhau giữa các cấu hình map key trong vim

     COMMANDS                    MODES ~
:map   :noremap  :unmap     Normal, Visual, Select, Operator-pending
:nmap  :nnoremap :nunmap    Normal
:vmap  :vnoremap :vunmap    Visual and Select
:smap  :snoremap :sunmap    Select
:xmap  :xnoremap :xunmap    Visual
:omap  :onoremap :ounmap    Operator-pending
:map!  :noremap! :unmap!    Insert and Command-line
:imap  :inoremap :iunmap    Insert
:lmap  :lnoremap :lunmap    Insert, Command-line, Lang-Arg
:cmap  :cnoremap :cunmap    Command-line

Command

Dùng để thiết lập một command, ví dụ command! Q q thì có thể thoát vim bằng lệnh :Q thay vì :q

@xluffy xluffy changed the title vim map key trong vim Feb 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant