博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
VIM For Windows 1
阅读量:4331 次
发布时间:2019-06-06

本文共 2680 字,大约阅读时间需要 8 分钟。

 

some tips for using vim in windows.

 

1,download the software vim and install it, you can go to the Official  network and download the version of this software you neeed.

2,after you have installed it successfully, the next you have to do is know clearly how to install the plugs,it's very important for Vim,different plugs will make the Vim get stronger.

 

details of installing  the plugs

Firstly,you should create a enviroment Varibles named $Vim which represent the site of the installation of Vim --C:\Program Files (x86)\Vim

 

Secondly, you need to install the plug named 'Vundle' ,you can see it from the following site---http://github.com/gmarik/vundle.git

Vundle, Vim bundle, is a plug used for managing all of the plugs in the Vim.

Go to the github,and download the vundle,and unzip the package,you will see a unziped package named 'Vundle.vim-master',pls rename the  name into 'Vundle.vim',and put this package under the package of bundle,before this step ,you should create a package named bundle under the 'vimFiles' ,so finally you can see absolute path as following --C:\Program Files (x86)\Vim\vimfiles\bundle\Vundle.vim

At the same time, you must update file named  '_vimrc' which is used for starting Vim,

pls copy the following code and put it to _vimrc, then you can test by using command. 

:BundleInstall   ------ install the vundle

:BundleList      ------- plugs configured

set nocompatible

filetype off

"Vundle的路径

set rtp+=$VIM/vimfiles/bundle/Vundle.vim

"插件的安装路径

call vundle#begin('$VIM/vimfiles/bundle/')

Plugin 'VundleVim/Vundle.vim'

Plugin 'scrooloose/nerdtree'

Plugin 'jistr/vim-nerdtree-tabs'

 call vundle#end()

filetype plugin indent on

 

Thirdly,after the installation of vundle, you can install other plugs,you wanna change character font,character style, pls put the following code into the '_vimrc' and then you will do it successfully.

colo koehler

set guifont=Courier_New:h14:cANSI

 

Then, NERDTree and NerdTreeTabs

NerdTree: github site: https://github.com/scrooloose/nerdtree

NerdTreeTabs :github site: https://github.com/jistr/vim-nerdtree-tabs

Same operation, download the zip package and then put the unziped package into the bundle,same site of Vundle.vim

update the '_vimrc',

" 关闭NERDTree快捷键

map <leader>t :NERDTreeToggle<CR>

" 显示行号 let NERDTreeShowLineNumbers=1 let NERDTreeAutoCenter=1

" 是否显示隐藏文件 let NERDTreeShowHidden=1

" 设置宽度 let NERDTreeWinSize=31 " 在终端启动vim时,共享NERDTree let g:nerdtree_tabs_open_on_console_startup=1

" 忽略一下文件的显示 let NERDTreeIgnore=['\.pyc','\~$','\.swp']

" 显示书签列表 let NERDTreeShowBookmarks=1

map <leader>n <plug>NERDTreeTabsToggle <CR>        

"设置打开目录树的快捷键

 

After this, pls test it...

:NERDTree 

 

转载于:https://www.cnblogs.com/pickKnow/p/8962283.html

你可能感兴趣的文章
哈希(1) hash的基本知识回顾
查看>>
Leetcode 6——ZigZag Conversion
查看>>
dockerfile_nginx+PHP+mongo数据库_完美搭建
查看>>
Http协议的学习
查看>>
【转】轻松记住大端小端的含义(附对大端和小端的解释)
查看>>
设计模式那点事读书笔记(3)----建造者模式
查看>>
ActiveMQ学习笔记(1)----初识ActiveMQ
查看>>
Java与算法之(2) - 快速排序
查看>>
Windows之IOCP
查看>>
机器学习降维之主成分分析
查看>>
CTP2交易所成交回报
查看>>
WebSocket & websockets
查看>>
openssl 升级
查看>>
ASP.NET MVC:通过 FileResult 向 浏览器 发送文件
查看>>
CVE-2010-2883Adobe Reader和Acrobat CoolType.dll栈缓冲区溢出漏洞分析
查看>>
使用正确的姿势跨域
查看>>
AccountManager教程
查看>>
Android学习笔记(十一)——从意图返回结果
查看>>
算法导论笔记(四)算法分析常用符号
查看>>
ultraedit激活
查看>>