Vim uses the termencoding option to control the encoding during output. This option is empty by default, that is, no conversion is performed,This led me to open the UTF-8 file under the GB code Terminal, although can identify, the display is garbled.
Javascript is a Web scripting language. Vim is the preferred editor for many programmers. Vim can be widely used to automatically complete the Javascript syntax. To use this feature, you must enable it first.
In Vim command mode, enter the
1. taglist: source code structure browsingAuthor: yegappan Lakshmanan, website script No.: 273 .:Http://www.vim.org/scripts/script.php? Script_id = 1, 2731.1 function description:This is a very important plug-in. With this plug-in, we can view the
Link: http://blog.chinaunix.net/u/22968/showart_432334.html
Use cscope
The simplest way to generate a cssag tag is:Run csw.indexer in the top-level directory of your development project. it traverses all the following directories and generates
Install vundle
Software environment: win7 32bit gvim1. Install git. In addition to the PATH environment variable settings, other options are default:2. Add curl. CMD at c: \ Program Files \ git \ cmd. Assume that git is installed in c: \ Program
I have always wanted to familiarize myself with vim. Maybe I am interested in open source, maybe I miss the TC environment in the DOS era (my vim theme uses TC ), perhaps I was amazed at the power of VIM. Maybe I hate to touch the mouse when writing
Vim common shortcut key Configuration
In Linux, when you use VI to write C/C ++ programs. h. CPP. CC and other files sometimes have many similar operations. If we need to complete the input for each similar operation, it will reduce the efficiency
In Windows, the default mode is GB encoding, while in VIM mode, the default mode is UTF-8 (gedit is also UTF-8 by default. Modified the configuration file so that Vim supports GB encoding.$ Vim ~ /. VimrcLet & termencoding = & EncodingSet
Search and replace Vim
Replacement in search/Which # search whichcwthat # Replace with thatn # repeat search. # repeat replacement
Replacement command of one typeg/pattern/s/old/new/gFirstGIndicates that an operation is
Although Vim was used a long time agoTuneJust use your own commands. Recently, in order to improve code writing efficiency and coding fun, I re-studied vim and found a good Vim getting started article. The original Article is in English, I think it
I had a headache with vim coding and searched for it.The following code variables are used to set VIM:
Encoding: the encoding used by VIM to process data fileencoding: the encoding used for File Reading and Writing (only one value can be added)
Tags: vim, linux-tool, edit
This article describes some basic knowledge about vim's multi-byte encoding documentation (Chinese). Note that it does not involveGvim: Refers to vim in character terminals.
1. Basic vim coding knowledge:
1.1 three
Today I saw vimer's blog, which recorded a bunch of plug-ins that made vim an IDE. I tried to install it myself. It is really easy to use. Record the plug-in name and function.1. ctags generate program tags and auto-completion functions.2. In
1. Define Variables
Vim:
Run a = 123
Emacs:
(Setq a' 123)
2. define functions
Vim:
Function Fun () // if the scope limit is not used, the first letter must be capitalized.
Endfunction
Command Line call: command! -Nargs = 1 Gdb :! Command
I sorted out Vim notes and filled the gaps in China in some aspects-it's about tabs and spaces (background sound: You can throw tomatoes ).
1. Open the horizontal scroll bar.A, set guioptions + = B # (bottom scrollbar)B, set nowrap
2. scrollingA,
Development tool combination-Vim + ctags + taglist
After reading the article about vim on top of the C-version flw boss. you have nothing to worry about. these configuration methods may already exist on the Internet, but I am also too reluctant to
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.