Java EE Development of various types of resources download list, the history of the most complete IT resources, personal collection summary.
Vim replacement and batch modification
1 Simple substitution Expressions:%s/four/4/gThe "%" range prefix
This article is translated to: http://qiita.com/shiracamus/items/61ffc618f204342e352f
In the CTF (Capture the Flag) it is often necessary to view the results of the objdump-d or-D disassembly x86/x64 binaries, so the relevant tags for VIM are
Vi/vim Powerful editor
command to enter VI
VI filename : Opens or creates a new file and places the cursor at the beginning of the first vi +n filename : Opens the file and places the cursor at the beginning of nth vi + filename :
Linux Learning 6th day (self-study) vim useTime: 20180721DirectoryVimMode switchingExit fileCursor movementMove between rowsVim's editing commandsVim Visualization modeUndo EditFlip Screen operationLast-line mode in VIMContent delimitationFindFind
ObjectiveVim has been used for 4 of years, has always felt that vim default color scheme is difficult to see, but it is not the mind to modify it.But recently in the study of Python, using a black background, but the code's comments are dark blue,
Emacs and VIM: God's editor and editor God Jiqing Wu
Baidu blog
I want to comment (6) Font Size:
T |
T
On this blue planet, the legend of two major artifacts is circulating: It is said that Emacs is the God's editor, while Vim is the god of
H left, backspace, or direction keyJ, enter or + (shift key required), or direction keyK, or direction key or-(shift is not required)L right, or space or direction keyThe hjkl key is used to move your hands away from the typing area (in the center
Problem scenario: When using vim, we occasionally encounter the inexplicable freezing of vim. Nothing is input on the interface. Even Ctrl + C and CTRL + d do not respond. Solution: After investigation, CTRL + S is the shortcut key for locking the
1. Display hexadecimal data in VIM
: %! Xxd-G 1 indicates that each byte is one group.
: %! Xxd-G 2 indicates that every two bytes is a group (default)
: %! Xxd-G 4 indicates that each 4 bytes is a group of 1
: %! Xxd-r restores Vim to the
Before using vim, let's take an appetizer and learn some common commands in Vim. With these basic commands, we can use Vim more conveniently and speed up our work ~
Note: The following commands are mainly used in the normal mode of VIM.
Preface
The Vim VI is a widely used text editor in Unix/Linux. Most machines have different types of VI, we often use different variant software on different machines, among which Vim is relatively easy to use and widely used. Vim is short for VI
[[Email protected] ~] # Vim-N/usr/local/apache2/CONF/httpd. conf1 #2 # This is the main Apache HTTP server configuration file. It contains3 # configuration directives that give the server its instructions.4 # See for detailed information.5 # In
1. You cannot see the tab key in the tab key file. To display it: set list now displays the tab key as ^ I, while $ is at the end of each line, so that you can find the spaces that may be ignored. One disadvantage of this is that it looks ugly when
Method1: map :windo exe "normal \C-W>K"Method2: map :windo wincmd KMethod3: map :call HorizontAll()function! HorizontAll() windo exe "normal \K"endfunction
Summary:
1 In the string of map {RHS}, Ctrl-W is converted to a DELETE command in
Previously, I simply edited the vim configuration file named. vimrc in the home directory according to the online template, as shown below:
1 " 2 set hlsearch" high light search on 3 set backspace = 2 "delete any character in the file 4 set
For example, define F5 as the compile execution, F7 as the compile, Ctrl-F7 as the run, define F12 as the debug, because F11 is also used in the terminal under Ubuntu.
"Remap F5 to complie the C ++ Program func compilerun () EXEC "W" If &
(Prerequisites)
Learn VIM: http://www.cnblogs.com/starspace/archive/2009/05/15/1458044.html
Configure VIM: http://haohetao.javaeye.com/blog/690715
Summary:Install Vim --> Configure the/etc/Vim/vimrc FileThis enables Vim to support syntax
In the past, it was always necessary to exit Vim to update cs1_database ~~ Find this article on the Internet ~~
When using csflood in VIM to edit code, you may encounter an annoying problem. When you modify and modify some filesAh, I suddenly found
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