Gvim vimrc windows Configuration

Source: Internet
Author: User
My Vim configuration is based on the vimrc of the http://amix.dk website.
For the configuration process, refer to [http://amix.dk/blog/post/19486425the-ultimate-vim-configuration-vimrc].
Download the installation of vim7.3 from the website vim.org. Program .
Then, use the svn tool to download the svn: // orangoo.com/vimfile and copy it to the dynamic vim?vimfilesdirectory.
Modify $ Vim \ _ vimrc and add the following content at the end of the file:
{{{
"Add zxim. dk Vim
Fun! Mysys ()
Return "Windows"
Endfun
Source $ Vim \ vimfiles \ vimrc
}}}
Run helptags $ Vim \ vimfiles \ doc to import the Help file.
Because my plug-in path is different from that of zikm, You need to modify the original file:
Find
{{{
If mysys () = "Windows"
"Fast editing of the. vimrc
Map <leader> E: E! ~ /_ Vim_runtime/vimrc <CR>
"When vimrc is edited, reload it
Autocmd! Bufwritepost vimrc source ~ /_ Vim_runtime/vimrc
}}}
Change the vimrc path to $ Vim \ vimfiles \ vimrc.
In this way, the installed gvim has garbled characters in the Chinese environment. You need to comment out the following configurations:
{{{
Set encoding = utf8
Try
Lang en_us
Catch
Endtry
}}}
I personally want to place minibuf on the top of the window, so I want to modify the configuration of minibuffer as follows:
{{{
"Let G: minibufexplvsplit = 30
"Let G: minibufexplsplitbelow = 1
Let G: minibufexplsplittoedge = 1
Let G: minibufexplmaxsize = 3
}}}
Remove the menubar toolbar and scrollbar:
{{{
Set guioptions-= T
Set guioptions-= m
Set guioptions-= L
Set guioptions-= r
}}}
In this way, the amix configuration is installed. add my own configuration below.
Download the vimwiki plug-in from vim.org. This is in VBA format. Use gvim to open the plug-in. Run "So %" in normal mode to install the plug-in successfully.
For vimwiki, We can configure the path of the Wiki file as follows:
{{{
Let G: vimwiki_list = [{'path': 'd: \ D \ vimwiki ', 'path _ HTML': 'd: \ D \ vimwiki \ HTML '}]
}}}
Download vimgtd, decompress the package, copy it to the $ Vim \ vimfiles \ directory, and install the GTD plug-in. Because snipmate has repeated <tab> ing with vimwiki, disable it.
{{{
Let G: vimwiki_table_auto_fmt = 0
}}}
Add the following shortcut for vimgtd:
{{{
Map <leader> TT: tasktoday <CR>
Map <leader> TN: taskall <CR>
}}}
Download the executable files of CTAG and cssag and add the decompressed directory to the path of the environment variable.
Http://sourceforge.net/projects/mslk/files/
Http://ctags.sourceforge.net/
Download taglist and cscope_map (http://cscope.sourceforge.net/cscope_maps.vim) and install.
Add the following configuration for cssag:
{{{
If has ("CSAs ")
If mysys () = "Linux"
Set csprg =/usr/bin/cs.pdf
Else
Set csprg = cs.pdf
Endif
Set CSTO = 1
Set CST
Set nocsverb
"Add any database in current directory
If filereadable ("cscope. Out ")
CS add cscope. Out
Endif
Set csverb
Endif
}}}
Add the following configuration for taglist:
{{{
If mysys () = "Windows"
Let tlist_ctags_cmd = 'ctags'
Elseif mysys () = "Linux"
Let tlist_ctags_cmd = '/usr/bin/ctags'
Endif
Let tlist_show_one_file = 1
Let tlist_exit_onlywindow = 1
Let tlist_use_right_window = 1
NMAP <silent> <leader> TL: tlist <CR>
}}}
Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.