前端 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

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

被折叠的 条评论
为什么被折叠?



