Linux Getting Started (iv) use of--VIM with bash

Source: Internet
Author: User
Tags save file

This series of Linux primer is I in the "bird Brother's Linux private dishes" based on the summary of the basic content, mainly to record their own learning process, but also convenient for everyone to understand briefly

Linux distribution is an Ubuntu, not a book recommended CentOS, it is recommended to install dual systems, do not use virtual machines.

Code on GitHub:linuxpractice

Other content:

Linux Starter Chapter (ii)--File

Getting Started with Linux (iii)--Files and directories

Use of VIM with bash

First, the use of vim

           [I],[o],[a],[r] (insert replace)

General mode —————————— > Edit mode

——————————————             ——————————————————

Cursor movement, search substitution < —————————— to edit content with insert substitution

[ESC]

           [:],[/],[?]

Delete characters, entire line —————————— > command line mode

——————————————             ——————————————————

Copy entire row, paste whole line < —————————— read/save file

[ESC]

    • Block selection:

1) [V],[v],[ctrl]+[v]

2) Cursor Movement

3) [Y]

    • Multi-file editing to enable copying of content between files

: n Edit the next file: N Edit the previous file: Files View all Documents

    • Multi-window function: Sp{filename}

Switching between windows: [Ctrl] + [W] + [j]/[Ctrl] + [w] + [bottom] move to the window below

[Ctrl] + [W] + [k]/[Ctrl] + [W] + [top] move to the top window

[Ctrl] + [w] + [Q] End the current window

    • Vim environment setting and recording ~/.VIMRC

Vim settings are typically stored in the/ETC/VIMRC file and can be modified using the # VIM ~/.VIMRC, but not recommended.

Second, Bash

Hardware, kernel, and shell

Graphical ———— > User Interface —————— > core ———— > Hardware

——————        ———————————————          ————        ————————

Text interface < ———— shell,kde,applications < —————— Kernel < ———— Hardware

              

Accept instructions from the user to control hardware work, including entities that work with CPU process systems

Memory Management and IO

The Shell's function is just an excuse to provide the user's operating system, call other naming (software) to execute, in the narrow sense of the shell is the Bash command, broadly speaking, the shell also includes the GUI software.

/bin/bash (linux default shell)

Bash Shell Features: command memory, command and file completion, command alias settings, job control, front and rear control, program scripts, wildcard characters.

                

Linux Getting Started (iv) use of--VIM with bash

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.