guioptions-= T \ Set guioptions-= m \ Else \ Set guioptions + = T \ Set guioptions + = m \ Endif "If! Exists ("g: completekey ")Let g: completekey = "Endif"Map Map "The current directory generates a tags syntax file for Automatic completion. Function prompt: code_complete.vim OmniCppComplete. vim..."Map Map "Function and Variable listMap "File BrowserMap Let g: winManagerWindowLayout = "FileExplorer""File tree listMap "Copy, paste, and clipboard ctrl
Tagbar.
For snippet features Install:neosnippet or ultisnips.
Screenshot color scheme is a slightly modified Molokai:fatih/molokai.
For a better documentation viewer Checkout:go-explorer.
Usage
Many of the plugin ' s features is enabled by default. There is no additional settings needed. All usages and commands is listed in doc/vim-go.txt . Note that help tags needs to be populated. Check y
VIM: how to modify your. vimrc file by checking whether the file is garbled in Chinese encoding, so that it supports gb2312 and will be automatically recognized. You can refer to my setting code: quot; to set the file encoding type to completely solve the Chinese encoding problem let amp; termencoding amp; encodingsetfileenco... VIM: Check whether the Chinese
library function name completion, prototype preview and other functions.If you frequently check the code in different projects, you can add it in ~/.VIMRC:Set tags=tags;Set AutochdirSet the tags file, the most commonly used shortcut keys when locating variable/function definitions are:Ctrl +]Jump to the definition of a variable or function, or use the command: Ta Nameand using shortcut key combinationsCtrl + o/tReturns to the position before the jump
.
– Enter a line of code: time. Sleep (time. Second), execution: Goimports,vim will automatically import the time package.
– Move the cursor over the sleep function, and execute: typing gd,vim in godef or command mode opens the definition of the sleep function in $goroot/src/time/sleep.go. Execution: B 1 return to Hellogolang.go.
– Execute: Golint, run Golint on the current go source file.
– Execute: Godoc
Everyone crossing, welcome to listen to the large-scale couplet science fiction: Vim. Last time we talked about the Dragon Slayer knife: Vim's evenRing knife. This time, let's go on with Vim's Blade: The Dragon Sword, vim, and knife. Well, that's the word, the gossip,Words return to the positive turn. Let's talk about vim together!Crossing, the Dragon Sword
, color differentiation. For example, a java file will follow the java syntax highlighting;
Next we will compile a "hello world" java program to see the vim syntax highlighted;We can see that vim has a good syntax check function, because the keywords are marked with different colors;Vi has three modes:
(1) General mode: Enter the default mode of vi, which can be
the first GUI version, and added the syntax highlighting function, 2001 introduces code folding, plug-ins, multi-language support, Vertical Split windows, and other functions. In 2006, you added spell check, code completion, and Tab editing. Later versions 2008 and 2010 were released in 7.2 and 7.3 respectively. The latest version is 7.4.
4. gvim can be understood as the graphical front-end of VIM. It is a
).
[Ctrl]+w+ J[Ctrl]+w+↓
The key method is: Press [Ctrl] not put, and then press the W release all the keys,Then press the J (or down arrow), and the cursor moves to the window below.
[ctrl]+w+ K[Ctrl]+w+↑
The key method is: Press [Ctrl] not put, and then press the W release all the keys,Then press the K (or up ARROW key), and the cursor moves to the top window.
[ctrl]+w+ Q
End leaving the current window
IntroductionA year ago also learned vim for some time, but after all, still did not cross the threshold of beginners. I found myself in a lot of situations are like this, not without serious study, but in the end did not stick down. Sometimes, I really can't imagine how programmers use VIM to see the source code of thousands of lines?I hope, this time do not give up the effort can let me experience the accu
Everyone crossing, welcome to listen to the large-scale couplet science fiction: Vim. Last time we talked about the Dragon Slayer Knife: Vim ChaseLife. This time, we will not introduce the new VI knife. Today is mainly a summary of the previous several of the various cutting knives mentioned. Well, it's stillThe words, the gossip, the words return to the right turn. Let's talk about
Everyone crossing, welcome to listen to the large-scale couplet science fiction: Vim. Last time we introduced the cscope in the Vim plugin.Last time, we were mainly talking about the plug-in's functionality and how to install the plugin. This time, let's keep talking about the plugin, but we sayis how to use the plugin. Well, still that sentence, gossip Hugh, words return to the positive turn. Let's talk ab
Install the plugin management tool first pathogenCreate a directory ~/.vim/bundle/pathogen/autoload/
Download Pathogen.vim (Https://github.com/tpope/vim-pathogen) to ~/.vim/bundle/pathogen/autoload/
Add the following two lines to the. vimrc
Runtime Bundle/pathogen/autoload/pathogen.vimExecute Pathogen#infect ()other plug-ins downloaded after decompression, are co
library. Once I use a new computer, I first check out the git library. Later, when I open a project and edit it, vim and tmux are configured according to the method I used to use.
Copy and paste
I often need to use the copy and paste commands of tmux to copy the console output to vim. The shortcut keys vary greatly based on different configurations of tmux. Ther
#复制一行P #粘贴Clip:CC exit insert mode P (paste) #剪贴~~~~~~~~~~5:vim the problem of abnormal exit~~~~~~~Direct-off Vim a hidden file is generated when the system exits abnormally. FILE.SWP vim will appear when you edit this file again~~~~~~~o ReadingE-EditR restores the newly enteredD DeleteQ exitA (check)~~~~~~~Workaround
With VIM + cssag/ctags, You can implement the source insight function and conveniently view the source code for analysis.Key words: vim, cssag, ctags, tags 1. check whether Vim supports cscope $ Vim -- version | grep cs1_2. compile Vim
Tags: vimNote content:L 5.5 into edit mode L 5.6 VIM Command mode L 5.7 Vim Practice Note Date:2017.8.45.5 into edit mode The so-called editing mode is to enter the state of the contents of the file can be edited, and into the word document into Notepad is the same, the most common way to enter the editing mode is to press I, This is the edit mode that enters the current cursor position. Here are a few w
---> Package PERL-PATHTOOLS.X86_64.0.3.40-5.EL7 will be installed---> package PERL-POD-SIMPLE.NOARCH.1.3.28-4.EL7 will be installed--processing dependency perl (pod::escapes) >= 1.04, which is package 1: Perl-pod-simple-3.28-4.el7.noarch needs--and is processing dependency perl (Encode), which is required by the package 1:perl-pod-simple-3.28-4.el7.noarch--- > Package PERL-SCALAR-LIST-UTILS.X86_64.0.1.27-248.EL7 will be installed---> Package PERL-SOCKET.X86_64.0.2.010-3.EL7 will be installed--->
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.