Extremely easy-to-use Vim configuration and Vim ConfigurationHttps://github.com/ma6174/vim-deprecatedsimple installation tips:
Open the terminal and execute the following command to automatically install it:
wget -qO- https://raw.github.com/ma6174/vim/master/setup.sh | sh -x
Or manually install: (ubuntu is used as an e
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.
1. Create/modify a file
When you need to edit an object, the object
Mastering the common commands of the Vim editor can greatly improve the efficiency of our text editing. Basic Operations
When we first contacted the Vim editor, we learned some of the following things:
Just enter the Vim editor, we are in Normal mode , press I on the keyboard, we enter the insertion mode . In insert mode, if you press ESC, you are back in normal
This method solves my Windows Gvim Chinese garbled problem (share with you),This method references http://www.douban.com/note/145491549/To view the encoding of a file:: Echo fileencodingVim has four options related to character encoding, encoding, fileencoding, Fileencodings, termencoding (the possible values for these options can be found in the VIM online assistance: Help Encoding-names), They have the following meanings:Encoding:vim the character e
Install vim on centos7 and display Chinese Characters in vim
1. Install vim on centos7
Yum-y install vim (simple and crude installation method)
2. No garbled characters are displayed in vim.
(1), vim ~ /. Vimrc (~ /. Vimrc is
Linux learning notes-Explanation of Vim operation commands and learning notes-vim
Linux Study Notes-Vim operations
1. Vim Introduction
Vim is a powerful full-screen text editor,
Is the most common text editor on Linux/UNIX,
It is used to create, edit, and display text files.
one case is to open multiple files in the shell with Vim, and the other is to open multiple files in the VIM editoropen multiple files at the same timeVim File1 file2Open the file and display the Vim-o file1 in the horizontal window file2Open file and display Vim-o p1.sh vertically p2.shopen a new file in VimThe origin
Global find substitution:%s/stext/rtext/gLike what::%s/text/txt/g is to replace all the text into txt. How does vim collectively indent a piece of code or vice versa?
Very simple, by V into the visual mode, select the code to indent, press > Indent code, a > Insert a tab, of course, to insert 3 tab on the input 3>
The tab width can be set in _VIMRC
Set tabstop=4
Set shiftwidth=4
use VIM bulk annotation
Dark Horse programmer-vim Editor, dark horse programmer-vim
I. Basic operations
1. ENTER the vim Editor: vim filename
2. move the cursor
Left shift: h
Shift right: l
Move up: k
Move down: j
3. Delete the character where the cursor is located: x
4. insert or add text:
I insert text before the cursor
A attaches text beh
Vim shortcut keys and vim common shortcut keys
1. vim ~ /. Vimrc enter the configuration file
If you do not know where the vimrc file is, you can use scriptnames to view it.
Set nu # row number
Set tabstop = 4 # A tab has four spaces.
Set ai # set automatic indent
Syntax on # Highlight
2. Basic
Move the Space key to the right
X Delete the following character X D
Linux vim commands and linux vim commands
A detailed introduction of vim commands in linux.
Some advanced editors will contain macro functions, which are certainly not missing in vim. It is very convenient to use Macros in vim:
: Qx starts to record macros and saves the resu
Talk Vim together (21st back: NerdTree continuation of Vim plug-in), vimnerdtree
Hello, everyone. You are welcome to join in to hear the story of Zhang huiti: Vim. The last time we introduced the NerdTree in Vim
Plug-in .. In this case, we will continue to talk about the NerdTree plug-in, but the last time we talked a
Python auto-completion (vim) and python auto-completion vim
I. vim python Automatic completion plug-in: pydiction
The following python code can be automatically completed:
1. Simple python keyword completion2. python function completion with parentheses3. python module completion4. Functions in the python module and variable completion5. from module import sub-mo
Complete VIM tips: file name completion and vim tips completion
Well, I 've been reading the "concise Python tutorial" These two days. The author suggested to write the file name and the interpreter of the call in the comments in front of the Code. For example:
Well, of course I can't create a file every time. I need to write a large string of things at the beginning. There must be a simple way to use
Batch comments and uncomments are implemented in vim, and vim uncomments
When debugging code, you can easily comment out or cancel code comments in batches. Many ides use shortcuts to comment out or uncomment selected code blocks in batches, how can this function be completed in Vim?
Method 1 selection mode
Batch comment:
Ctrl + v enter the block selection mode,
Use of the vim editor in linux and the vim editor in linux
Vi or vim editor is an indispensable editor. There are many editors available on windows, such as notepad, notepad ++, and edit,
But in linux, it is basically vi or vim. vim is bigger than vi, and it is an enhanced
VIM tutorial, vim
Vim environment setting parameters
: Set nu
: Set nonu is to set and cancel the row number!
: Set hlsearch
: Set nohlsearch hlsearch is high light search ). This is to set whether to reverse the white value of the searched string. The default value is hlsearch.
: Set autoindent
: Is set noautoindent automatically scaled down? Autoindent m
The above is, all can be listed in my resources, and the instructions for use are attached below:
Usage:1. Put. vimrc in the vimrc package in the/home or/root directory (depending on your identity ).2. Put the files in plugin and Doc in the other two zip packages into Vim/DOC and VIM/plugin respectively.The specific contents depend on your system and VIM v
For a whole bunch of vim files online, here's just a few steps to record my new configuration environment. for viewing reference.Installation Configuration VundleThe first step is to create a vim directory and configuration file:Under the ~ directory, add the. vimrc file and the. Vim/bundle/vundle directory.The second step is to add the configuration contents of
Vim environment variable configuration, background color configuration, and vim environment variable background color
When we use vi or vim, if we want to display the row number, we may do this: switch to the command mode, enter set nu, and then press the Enter key to display it; in addition, when programming, sometimes we want to press the Enter key, the cursor
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.