My level of operating VIM is relatively limited now. I can use it and know the commonly used shortcut keys and methods, but it is still relatively slow during development. Here are some information on efficient development
1. Regarding vimrc, many people don’t know what it means, so if you borrow other people’s configurations, you may not be able to use them very well, and you may not be able to use many of them, so please give me a guide on vim configurations. introduce
2. Regarding vim disassembly, because many plug-ins do not know what they do. Is there a Chinese plug-in website, so that I can be more clear and understand what it means. Because I don’t even know what commonly used plug-ins are, such as directory trees, such as quickly locating target functions, etc. I don’t know these plug-ins, which greatly affects development
3. I heard that there are some tools. If configured in vimrc, you can use commands to package and install a bunch of plug-ins. You also need information in this regard
4. I am envious when I see colleagues or friends using VIM and how fast they operate. The combination of plug-ins and various shortcut keys makes the development efficiency really high. I hesitated for many reasons and didn’t want to ask them, so I came here to ask for information from the master
5. There may be more interesting things, but I don’t know much about them. I hope someone can provide some information from simple to deep. Greatful! ! !
A book: "Practical VIM", both English and Chinese versions,
https://book.douban.com/subje...
Many tips about VIM are obtained from this book. Well worth a look.
There are a lot of articles about this kind of configuration on the Internet, so you have to make good use of them
Stand directly on the shoulders of giants
vim
In layman’s terms, when vim starts, it loads the contents of the .vim file into its running environment, and then executes the commands in the .vimrc file.
Getting started with vim
Since the prefix keys serve shortcut keys, let’s just talk about the shortcut key setting principles: try not to have the same characters in the same order for different shortcut keys. For example, <leader>e performs operation 0 and <leader>eb performs operation 1. After you type <leader>e, vim will not perform operation 0 immediately, but continues to wait for the user to type b, even if you just want to When typing <leader>e, vim also has to wait for the input to confirm which shortcut key it is, which obviously makes <leader>e slower to respond. <leader>ea and <leader>eb are fine.
Vim has many practical tips for buffer operations
vim shortcut key mappings and modes
pathogen plugin
pathogen+git management plug-in
nerdtree
C: Set the root path to the directory where the cursor is located
u: Set the upper-level directory to the root path
I: Show or not show hidden files
CtrlP
<c-p> Call search
<F5> Refresh, rebuild the cache in the current directory
<c-y Create a new file in the current path
<c-j>, <c-k> in the search list Move up and down
Linux input
vimtutor
command.Change the keyboard to this
After you know how to use Vim, you can read this document: http://learnvimscriptthehardw...
Being able to write the required scripts according to your own needs can greatly improve productivity.
https://github.com/mhinz/vim-...
After reading it
I recommend two books. One is Practical VIM, which is already in its second edition. There is also an electronic version on Amazon, but it is the first edition. Another vimbook-OPL download address: ftp://ftp.vim.org/pub/vim/doc/book/vimbook-OPL.pdf