/************************************************************************* * VIM support markdown Syntax * description : * Recently see the Readme on GitHub is using the Markdown markup language, it feels good, it looks like * can be used, mainly to
[2016-04-12] [Vim common Commands]
Esc //退出编辑模式
i //进入编辑模式,光标停留在当前位置
o //进入编辑模式,在当前行之后新建一行,光标停留在新行行首
dd //删除当前光标所在行,在命令前加数字可以删除多行,如 5dd 将删除从当前行开始向下5行
yy //复制当前光标所在行,在命令前加数字可以复制多行,如 5yy 将复制从当前行开始向下5行
p
1. Hit two times the letter D removes the cursor from the row2.vim + filename Open file positioning cursor at the end of the beginningVIM +n filename cursor positioned on nth rowVim +/xxx filename navigates to string xxx first occurrence line3.vim
Vim's Column editing operations Delete Column 1. Position the cursor where you want to operate. 2.ctrl+v into "visual block" mode, select how many rows this column operates. 3.d deleted. Insert Column insert operation knowledge slightly different.
Watch video tutorial: Brother even Linux cloud computing Video tutorial 5.1 text editor Vim-5.2Insert commandA: Insert the word specifier in the cursor position;A: Insert at the end of the line where the cursor is located;I: Insert the word match
I. Source of the problemAfter the Ubuntu system is installed, enter the command in the terminal: sudo apt-get install vim, and after you type the root password, the system prompts you not to install Vim errors. Then follow the error prompts, change
Today, I studied the scripting knowledge of vim and tried to write a simple script. Of course, the script is simple and the method used is clumsy. However, this is only the beginning, and later with a deep understanding of the VIM syntax, will
Vim modeEdit mode (Command mode)Input modeLast-line modeConversion ModeEdit-InputI: Convert to input mode in front of the character that the current cursor is inA: After the current cursor character, convert to input modeO: Create a new line below
using the VS code plugin Amvim to quickly edit the code, memorize the following commandCommand key for switch to insert mode from normal mode
I
Enter body on the left of the cursor
I
Enter body at the
VimX: Delete the character of the cursor (same as delete)De: Delete the ending of the word from the position of the cursorDW: Delete the first word from the cursor position until the next wordDB: Delete the contents of the word before the cursorDG:
First, learn the VIM native shortcut keys and related commands before adding plugins. (When used to record, temporarily will be chaotic, irregular sorting)Ps:ctrl+s means stop output to terminal; The ctrl+q resumes to the terminal output stream.
VimZR all ExpandedZM All mergerVim shortcut keysSHIFT + I (' I ') for editingSHIFT + 4 (' $ ') jumps to the end of the lineShift + V (' V ') select rowSHIFT + 0 (') ') jumps to the beginning of the lineCtrl + V module Edit FirstThen s, or SHIFT + $,
Vim Editor1. Basic mode:Edit mode, Command modeInput mode;Last-line mode;2. Open file, convert between modes#vim [OPTION] ... FILE ...+#: After opening the file, just leave the cursor at the beginning of line #-/pattern: After opening the file, the
1. Open the file and create a new file if it does not exist:Vim file name2, entered after the general mode, unable to enter the textInput I in edit mode, you can directly edit the contents of the fileInput: Enter command mode, you can type a new
Three basic modes: default in edit mode when openEdit mode: Also called command modeInput mode: InsertLast-line mode: Built-in command-line interfaceOpen File:# vim [OPTION] ... FILE ...+#: After opening the file, the cursor is directly at the
First,GCC compilation : preprocessing---> Compiling---> Assembly---> Link---> Executable file1.GCC-E xxx.c preprocessing the source file (XXX.I): The conditions beginning with # will be resolved in the preprocessing phase;2.gcc-s xxx.i compiling a
The default vim does not support NESC syntax highlighting, which brings inconvenience to reading source code. However, you can solve this problem by loading Nesc Syntax highlighting plug-ins, as follows:Step one: Download pluginsDownload NesC Syntax
Create a basic file and directory structure" Set up Vim's basic setup file vim ~/. vimrc" to create a plugin directory, all plugins have their own folders exist. Vim directory under mkdir ~/ . Vim ; Let the vundle take over. Vim plugin management
Python automatically complements all of the vim editing and Python interactive modes, and below describes how to implement tab completion in these 2 situations.One, vim python automatic completion plug-in: pydictionYou can implement the following
Vim configuration file (my favorite style)
In the/etc/vimrc File
If v: lang = ~ "Utf8 $" | v: lang = ~ UTF-8 $"
Set fileencodings = UTF-8, latin1
Endif
Set nu
Set tabstop = 4
Set nocompatible "Use Vim defaults (much better !)
Set bs = indent, eol,
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.