VIM uses north----multiple Windows in Vim

Source: Internet
Author: User

Multi-window open multiple files

Vim-o file1 file2 ...----default up/down split window

vim-0n file1 file2 ...----vim defaults to n + windows

Split window

: [v]split file----open files with split (v) or Portrait split current window (equal to split)

: [N][v]split/new [++opt] [+cmd] [file]----N: The actual number of rows in a new window starting from the top, opt:vim options, cmd: Commands executed in a new window, file: A new window in the real files. Example: 15split ++fileformat=unix otherfile

Quick and simple split window can use shortcut keys: Ctrl+w,s ctrl+s

: Sview filename----Open a new window in read-only mode to reality file, portrait split

: Sfind [++option] {+cmd] filename----Find the file named filename, opens in a new window. Do not split the window if not found

Move the cursor in the window

CTRL+W,H/J/K/L---Switch the current window up or down

Ctrl+w,ctrl+w----loop sequence is the illusion of the current window

Move window

Ctrl+w r----Window swap position without changing the cursor

ctrl+w,x----window swap position, cursor toggle

VIM uses north----multiple Windows in Vim

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.