The purpose of content scrolling is to move the content so that we can better watch the content. However, the content and the cursor position remain unchanged! Stage 1: C-F/B/u/D C-E/y prepare a large text file. I just want to browse the text. hjkl
Cause: Press enter to indicate:In dos, press enter (Cr, ASCII 13, r) to wrap (LF, ASCII 10, n. There is only one in Linux.
In Linux, you can use VI to view some text files created in windows. Sometimes you will find some "^ m" at the end of the
Set nuset roset shiftwidth = 4 set tabstop = 4 set softtabstop = 4 syntax onif & term = "xterm" set t_co = 8 set t_sb = ^ [[4% DM set t_sf = ^ [[3% dmendifautocmd bufreadpost * \ If line ("'\" ")> 0 & line ("'\" ")
Save a file you edited in VIM without the needed permissions (no echo) Address: http://www.commandlinefu.com/commands/view/5147/save-a-file-you-edited-in-vim-without-the-needed-permissions-no-echoSave a file you edited in VIM without the needed
Vim commands are complex. The following are the commands I have taken today. Take notes!
Hjkl: Move to the bottom left and the right.
D: Delete
W: Word
$: End of a row
DD: delete a whole row.
P: Paste
V: select a row.
Example: deleting d10w
Original Site
Put him on GitHub. In this way, it is easier to use vundle security management to manage https://github.com/lazywei/vim-doc-tw※quoting the statement of Akria: Vim provides a lot of rich help, the amount of information is not even
I used to work as an intern in a company on Ruby on Rails. Aptana is used as the IDE, and its speed is sometimes very slow. Then we can see that some old employees in the company use Vim as the compiler. Looking at how they use Vim to make their own
Ubuntu10.05 has been tossing for the past two days. It shows that wubi is unresponsive, and then grub errors occur during hard disk installation. After the installation is successful, it will take half a day to get a Chinese input method. It is
Because Vim itself is powerful and can use many commands, and can call external commands by executing colleagues, this makes it possible for us to customize tools and operations! Today, I will take Java compilation and execution as an example to
Source: Use ctags and omnicppcomplete-taglist-cs1_globalHttp://blog.chinaunix.net/uid-11770217-id-323264.html
Automatic Code Completion and code jump reading should be one of the most common functions for programmers. I will not explain what the two
Use Vim to write C/C ++ programs (reprinted)Use Vim to write C/C ++ programs
VI is the most common text editor in UNIX. Vim (VI improved) is its enhanced version. Some people often compare Vim with Emacs. Although Vim does not have as many features
After VI/Vim is disabled, garbled characters are generated, that is, all the prompts are garbled.
Solution: The reason is that the terminal name is not standard. Right-click the terminal, select preferences, and change the initial title as follows:
Some time ago, the company opened a new virtual machine, installed rhel5, And suddenly did not install Emacs during the installation. It was difficult to install it, but found that syntax highlighting is also so complicated. In one breath, I also
VIM + ctags configuration in Ubuntu
Ctags can create source tree indexes so that programmers can quickly locate functions, variables, macro definitions, and other locations to view the original shape during programming.The following
Vim provides a variety of configuration functions in a simple way. The main configuration system consists of a file and a folder. On an OS X/Linux/Unix machine installed with vim, go to the user's home directory and find the. vimrc file and. Vim
For example:
1. How to delete other rows by retaining only Matching content rows?
: V/pattern/d: Help: V2. How to keep Matching content for each row and delete other content in this row: % S/^. * \ (pattern \). * $/\ 1/g3. Delete rows containing
1) Why can't other people's methods work for me?(2) how to find the last edited file?(3) how to copy and paste it?(4) how to replace multiple files?(5) how to open all fold once?(6) how to select or copy the word where the cursor is located?(7) how
1. Enter the character page
2. Create a folder to store the source file
Mkdir helloworld // create a folder
CD helloworld // enter the new folder. Here we should say that the directory is better, and Windows is used to it.
Vim main. C // open vim
Starting with IMAC, it took a few days to complete the configuration of the vim environment and record it.
On Mac, I used macvim to open the compressed package. There is an mvim script in it. After running the script, you can call macvim in the
X Delete the character under the cursor (abbreviated as "DL)X Delete the character before the cursor (abbreviation of "DH)D. delete from the current position to the end of the row (abbreviated as "d $)DW is deleted from the current position to the
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