There are many articles on the internet about how to configure the. vimrc file to achieve a key in vim to compile, looked more complex. I generally do not have any big program to write, General small program a single c file is OK, so simplified the
Vim + Autocomplpop + clang_complete Build the C + + IDE VIM code hints, so vim can be comparable to the IDE Vim/gvim concise VIM training strategy Autocomplpop has appeared in the completion of the full installation of words AUTOC Omplpop plug-ins,
Vim file +line
For example:
root@xxx-ubuntu:/ics-android/ics-src/system/core/init# grep init.rc *-rn init.c:706:init_parse_config_file ("/
Init.rc "); util.c:79: * ("/dev/socket") as dictated in init.rc. This socket was inherited by the
How to use "+p
20130726 3:40
Reason:
The registers available under VI or VIM without a graphical interface include only {a-za-z0-9.%#:-"}, and do not contain" * or "+ and other options and drag-and-drop latches.
Vim--version viewing version
Syntax highlighting does not require a plugin to be installed, just add a few lines to the. VIMRC configuration file:
Augroup Vimrcex
autocmd!
" Syntax highlighting for specific files
autocmd bufread,bufnewfile *.md set
The reason is that the VI or vim before the operation of the use of VI or VIM operation Test.java file when an abnormal interruption, so in the current directory produced a. Test.java.swp file, this file using the LS command to view can not be found,
Vi:visual InterfaceVim:vi improvedFull screen editor, modal editorVim mode:Edit mode (Command mode)Input modeLast-line modeMode conversion:Edit--Input:I: In front of the character of the current cursor, switch to input mode;A: After the character of
Recently operation a text file more than 30MB, the commonly used editor opens to die. The last use of vim is very smooth. It's a history-tested editor.How to change a space to \ t in vimThis uses the \s feature. The specific command is: \s\
CycleForWhileUntil for 变量 in 列表; do 循环体 doneE.g for I in ' seq 1 $FILE '; Doecho "Hello, ' head-n $I/etc/passwd | Tail-1 | Cut-d ', '-f1,7 ' "Done Vim Editor: Edit mode input mode last line mode edit-Input:
By default the VIM plugin is installed to put all the plugins and related doc files in a folder, such as the $vim/vim/vim74/plugin and $vim/vim/vim74/doc directories, and the consequence is that the modification and uninstallation are cumbersome, It
PS: Intended to document the configuration of Vim under Windows Gvim and Linux. Every accident in the province is searched for a blog, reconfigured.An ancient and powerful editor. Simply like to write code silently under the cool terminal.(Used
ESC: Command-line modeI: Insert command a: Additional command o: Open command C: Modify command r: Replace command s: Replace command above enter text input mode: Enter the last line modelast-line mode:W: Save Q: Exit, no save can not exit Wq: Save
The cursor moves to the last line of the file:Shift+g or G (Command mode, edit mode)The cursor moves to the first line of the file:GgThe cursor moves to the beginning of the current line:^ 0 HomeThe cursor moves to the end of the current line:$
"set to automatically load when files are changedSetAutoread"line number on the leftSetNu"tab length is 4Settabstop=4 "do not back up when overwriting filesSetNobackup"Auto IndentSetsmartindent"Highlight Current Line"Set Cursorline"lower right
About VIMVi:visual Interface, Text editorText: ASCII, UnicodeType of text editing:Line Editor: SEDFull Screen Editor: Nano, VIVim-vi improvedOther editors:Gedit a simple graphical editorGvim a graphical version of the VIM editorOpen file: # vim
Vim Tree Menu Plug-in installation Nerdtree1. mkdir ~/.vimCD ~/.vimmkdir Bundlemkdir AutoLoad2. Curl-sso ~/.vim/autoload/pathogen.vim https://raw.githubusercontent.com/tpope/vim-pathogen/master/autoload/ Pathogen.vim3.vim ~/.VIMRCAdd this
Introduction to Vim
Yum install-y vim-enhanced installation package
Vim is an upgraded version of VI
Vim is color-displayed
Sub-general mode, edit mode, command mode
Vim color display and move cursor in general mode
The same
Vim edit mode
I enter edit mode from where the cursor is located
I enter edit mode from the beginning of the cursor position
O Enter edit mode from below the line where the cursor is located
O Enter edit mode from the line where the
Linux tab and shell complement Python-meets-Blog ParkHttps://www.cnblogs.com/guobaoyuan/p/8276141.htmlHow does a Python code complement in Vim? -Knowhttps://www.zhihu.com/question/20371683Wklken/k-vim:vim
. cmd background, font, etc. configuration(1) Setting the background color44 50 59(2) Set Font size colorCourier New 20 White2.ubuntuvim configuration (ETC/VIM/VIMRC):(1) Configuration VIMRC"set to automatically load when files are
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