Vim配置html5环境,window环境下搭建vim前端开发环境

本文介绍了在Windows上配置Vim作为前端开发环境的步骤,包括gvim的安装与基本配置,如主题设置、Vundle插件管理器的安装与使用,以及一些常用的前端开发插件如vim-airline、nerdtree、emmet等的安装和配置方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

前端 window vim 折腾记

自从换了一个poker键盘之后,对vim的热情递增,终于找一个时间,静下心来折腾一下vim,在window下使用vim着实蛋疼,不过前端开发要求不高,之前用sublime,vscode其实也没用到什么牛逼的插件,将就着用吧。

1. 下载gvim与基本配置

在gvim下载exe文件,直接在window安装即可

在windows下,vim的配置文件为_vimrc,在所安装的vim的目录下,将_vimrc打开之后,删除里面的内容,之后黏贴一下的配置,重新打开vim即可看到一个比较美观的界面了

set tags+=~/.vim/tags

syntax enable

syntax on

set cursorline

hi CursorLine cterm=NONE ctermbg=darkred ctermfg=white

hi CursorColumn cterm=NONE ctermbg=darkred ctermfg=white

filetype plugin indent on

set t_Co=256

set background=dark "dark light "can switch it to find which is look pretty

set nocompatible "some plugin need it

set hlsearch "highlight the search

set incsearch "move to fit position after one char input

set nobackup "won't produce the backup file when save file

set nowritebackup "won't produce the backup file when save file

set noswapfile "won't use swapfile

set hidden "can open other file when a file is not saved

set ruler "show ruler at the right bottom

set nowrap "disable auto newline

set laststatus=2 "status bar will show anytime

set updatetime=200 "tagbar response 800ms

set showmatch matchtime=0 "show the other bracket

set wmnu wildmode=longest:full "when in command mode can use auto complete same as bash

set expandtab tabstop=4 "expand the tab to 4 space

set si ai ci cinkeys-=0# cinoptions=g0,:0 "some indent

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值