Vim backup and restoration vim is an editing artifact. it is very easy to use when it is configured as an IDE style, but the configuration process is troublesome. after the configuration is completed a few days ago, do you need to configure the redo system again, the answer is No. how can we restore the vim environment
When we use gvim to edit a file, ~ If we do not want to automatically generate a backup file when editing the file, we need to modify its configuration file, but I did not find the corresponding configuration items in the vimrc file, so we found that we should modify it in the vimrc_example.vim file 74 under the vim installation directory. We found the following code at the beginning of its line 24th:
If
One, vim backup fileby default, using VIM programming, after modifying the file system will automatically generate a backup file with ~, in some cases it can be downloaded to view;Eg:index.php in the general sense of the homepage, the input domain name does not necessarily show. Its
parameter is the same as specifying the "-H" parameter.--help online Help.--version Displays version information.From Linux system operations:Http://www.linuxyw.com/a/wenjianguanli/20130505/191.htmlFirst open it in a binary way:Vim Mbr.bak-bThen enter in VIM command mode::%!xxd #参数% refers to the file currently being editedThe MBR file appears in hexadecimal, and you can edit it now.When the edits are finished, we need to revert to binary files::%!xx
when moving forwardSet Noeb "Remove input error soundsSet confirm "When processing unsaved or read-only files, pop-up confirmationSet autoindent "Setting Auto IndentSet CindentSet tabstop=4 the width of the TAB key"Unified Indentation is 4Set softtabstop=4Set shiftwidth=4Set Noexpandtab "Do not use spaces instead of tabsSet Smarttab use tabs at the beginning of rows and segmentsSet laststatus=2 "Always show status barfiletype on "Detecting file typesFileType plugin on "load file type plug-in"Ma
http://blog.csdn.net/pipisorry/article/details/395084171. Replace VI with VIMVim is more powerful than VI, Vim is a superset of VI, and can solve many of the problems of habit, so it is necessary to use Vim to replace VI. Simply speaking, you can directly use the "Alias Vi=vim" command, but this can only be useful in this launch, the next time after the start, t
:
Exit command is, press ESC to jump to command mode, and then enter: Q (not saved) or: Wq (save) exit. more exit Commands:
: w save file but not exit VI: W file will be modified to save in file, do not exit VI: w! Mandatory save, do not launch VI: Wq save file and Exit VI: wq! Force file to save and Exit VI: Q Do not save files, exit VI: q! Do not save file, Force exit VI: e! Discard all modifications and edit command history from the last save file
Commands with: and/start with history, you ca
Vim note (6) -- a more comprehensive introduction of vim (for example, vim -- vim)
Vim configuration file~ /. Vimrc user's default configuration file ~ /. Vim/plugin/user's default script file storage directory ~ /.
17. Vim Introduction, Vim color display and move cursor, VIM general mode move cursor, VIM general mode copy, cut and pasteI. Introduction of VIMVim:vi version of the upgrade, the difference is: VI when editing text will not display color, and vim will.Its configuration file
5.1 Vim Introduction 5.2 Vim color display and move cursor
5.3 Vim General mode move cursor
5.4 Vim General mode copy, cut and paste
Vim is an upgraded version of VIVim with color displayInstalling Vim:yum install-y vim
I. Introduction of VIMVim is a powerful text editor, the upgrade version of VI, with color display, the default has three modes: General mode, command mode, edit modeInstall Vim[Email protected] ~]# VIM/ETC/PASSWD-bash:vim: Command not found[Email protected] ~]#[email protected] ~]# Yum install-y vim-enhanced...second, color display, Move Cursor[[email protected
latest Vim 7.1 source code. Suppose we put the code in ~ /Install/directory. The file name is vim-7.1.tar.bz2.
[Download vimgdb Patch]
Next, we need to download the vimgdb patch. The download page is:
Http://sourceforge.net/project/showfiles.php? Group_id = 111038 package_id = 120238
Here, select the vim 7.1 patch and save it ~ /Install/vimgdb71-1.12.tar.gz.
[
("gui_running ")
Set guifont = Consolas: h9
"Set color schema
Colorscheme oceandeep
Endif
After setting, the display effect will be much more beautiful :-)?
More useful editing settings
Although it is not specific for editing the. php file, these options can make vim easier to use. Therefore, we recommend that you add:
"Sets how many lines of history VIM har to remember
Set history = 400
1.
Back up database
Concept: it refers to backing up all data files and control files of the database, and also backing up parameter files and password files.
Note: When backing up a database, do not back up redo logs.
1.1
Consistent backup
Concept: Database Consistency backup refers to the method for backing up all data files and control files after the database is disabled. When the SHUTDOWN command is u
1, Vim is the ancient artifact of Linux programmer programmingVim is the most famous text/code Editor on the Linux system, and it is also an enhanced version of the VI editor of the early years, known as the best classic ancient artifact in the text/code Editor. The reason why it is such a reputation, I think mainly for the following reasons: 1. It is ancient and mysterious, the learning curve is steep, difficult to control, but once learned to benefi
-remove") to facilitate debugging. You can use "source ~ /. Vimrc "to view the modified results (": help source ").
Row 3: For Files suffixed with ". asm", Microsoft Macro explorer format (": help masm-syntax") is used ").
Row 7th: paired with the if Statement of row 2nd.
Row 8th-10: When the graphic interface is used (": help feature-list"), make sure that all file types appear under the "Syntax" ("Syntax") menu, instead of displaying a menu item "Show filetypes in menu ". By default,
1, Vim is the ancient artifact of Linux programmer programmingVim is the most famous text/code Editor on the Linux system, and it is also an enhanced version of the VI editor of the early years, known as the best classic ancient artifact in the text/code Editor. The reason why it is such a reputation, I think mainly for the following reasons: 1. It is ancient and mysterious, the learning curve is steep, difficult to control, but once learned to benefi
Make vim a python development environment. The article uses pathogen + git to manage the Vim plug-in. Students who are not quite clear about this way can refer to the introduction of "3". Pathogen changed the original vim can only throw the plugin all to the. Vim directory operation mode, so that each plug-in can be a
VIM settings-discover the beauty of VIM and set vim
When I raised the code in Linux today, I suddenly found that I didn't even highlight the code. I searched for it on the Internet and found a great microblog.
This record: http://www.cnblogs.com/ma6174/archive/2011/12/10/2283393.html
Very good and powerful. After decompression, vimrc is in the root directory. Rep
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.