Common VI shortcut keysCursor control commandCommand cursor MovementH or ^ h move one character to the leftJ or ^ n move down a rowK or ^ P move up a rowL or move one character to the right by SpaceG move to the last row of the fileNg moves to the
Start the visual editor from Shell
VI filename indicates the shell to start the VI editor and pass the filename parameter to it. If the file exists, the VI editor interprets it as the file to be opened. If the file does not exist, the VI compiler
37 people read comments (0) collect reports
Access the VI commandVI filename: open or create a file and place the cursor at the beginning of the first lineVi + N filename: open the file and place the cursor at the beginning of line NVi + filename:
Vi (vim) is a commonly used editor on Linux. by default, vi (vim) is installed in many Linux distributions ). There are many vi (vim) commands, but if they are used flexibly, the efficiency will be greatly improved. Vi is short for "visualinterface"
The followingArticleThe use of the vim editor is summarized and comprehensive.Vim Study Notes
1. Display row number informationInstant commands: Set nuPermanent commandEcho "Set Nu"> ~ /. Vimrc
2. Two documents for one window operation: SP
Highlight keywords in VIM
syntax enableHighlighted keywords: usually followed bysyntax onEnable syntax highlighting
syntax clearClear keyword highlighting
When securecrt is not in xterminal mode, try it and it does not work. If it is in
[Switch] The most common shortcut keys for eclipse and myeclipse
Version: V1.0 F key
F2 display details
F3 jump to declaration or definition CTRL + key class
CTRL + 1 quick fix (the most classic shortcut, you don't need to talk about it)
Vim command collection
Command history
Commands starting with ":" and "/" have historical records. You can first type ":" or "/" and then press the up or down arrow to select a historical command.
Start Vim
Enter the following command in the
LinuxVIM basic commands
Run the linux VIM command: vim in the command line and enter the vim editor Esc to exit the I (insert) command. Run the command sh to enter the shell command line, after the command is executed, ctrl + d and exit and re-enter
Commands starting with ":" and "/" have historical records. you can first type ":" or "/" and then press the up or down arrow to select a historical command. Command History
Commands starting with ":" and "/" have historical records. you can first
Access the VI command
VI filename: open or create a file and place the cursor at the beginning of the first line
Vi + N filename: open the file and place the cursor at the beginning of line N
Vi + filename: open the file and place the cursor at
Vim command collection and vim collectionCommand history
Commands starting with ":" and "/" have historical records. You can first type ":" or "/" and then press the up or down arrow to select a historical command.Start vim
Enter the following
Syntax overviewAnalytic-functionPartition clause of Analytic_clauseORDER BY clause of Analytic_clauseWindowing clause of Analytic_clauseExample:Here is an example of a simple syntax:Cases:SUM (SAL) over (partition by Deptno ORDER by ename)
ResultSet usage and resultset usage
ResultSet usage highlights
The ResultSet is an object returned by the query results in the data. It can be said that the result set is an object that stores the query results, but the result set not only has the
· A simple Compiler (Compiling and executing common programs) # vi ~ /. Vimrc "defines F9 to compile and execute the Program Map : Call progcompilerun () func progcompilerun ()" s *** e the current file first: W "Get the extension name of the
Detailed description of the Java resultset Interface
Record set Interface
In jdbc api 2.0, the resultset interface has changed a lot, adding a lot of new methods for Row Operations and row location, with strong functionality
The major changes are
Index
Jump
Undo
Code folding
Buffer Zone
Tag
Open and save files
Insert
Move cursor
Copy, paste, and delete
Indent
Search and replace
Bookmarks
Ctags
Bash
Auto-completion
Split screen
Diff
The N queen problem is a classic problem. Place N queens on a N * N board, each row is one and cannot attack each other (the queen of the same row, column, and slash will automatically attack each other ).
I. Solving the N queen problem is a
Document directory
1.1 VI Working Mode
1.2 edit mode
1.3 insert mode
1.4 command mode
1.5 option settings
1.6 shell Switch
1.7 advanced features of vim and gvim
VI Working Mode
Edit mode
Insert mode
Command mode
Shell Switch
Option
Type:1. Normal cursor only next operation2. Scrolling cursors have several operations1. Normal CursorsDECLARE @username varchar ( -), @UserId varchar ( -) DECLARE cursor_name cursor for-- defining a cursor SELECT TOPTenuserid,username from UserInfo
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.