Vim-1-window,buffer and Tab

Source: Internet
Author: User

Summary:
A buffer is the in-memory text of a file.

A window is a viewport on a buffer.

A tab page is a collection of Windows.

Window Toggle Shortcut key:

Nnoremap <C-j> <c-w>j down switch

Nnoremap <C-k> <c-w>k Toggle Up

Nnoremap <C-h> <c-w>h Switch left

Nnoremap <C-l> <c-w>l Right Toggle

Window generation shortcut keys:

Nnoremap <C-v> <c-w>v Vertical segmentation, content consistent with original content

Nnoremap <C-n> <c-w>n Create a new empty window

: SP up/Down split

Vim-o (-O) file1 file2 ... Multiple windows open

: SP FILE1:SP File1=:sp+:edit file1

Remark: The special meaning that cannot press <C-s>,<C-s> key combination is suspend terminal,<c-q> exit pause

A good reference:

Http://harttle.com/2015/11/17/vim-buffer.html

Http://harttle.com/2015/11/14/vim-window.html

Http://harttle.com/2015/11/12/vim-tabpage.html

Vim-1-window,buffer and Tab

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.