我想大声告诉你2017-05-16 16:36:52
First download or compile the latest Gvim 8.0 yourself
Use vim under Windows, you can
vim write the web, you can also
but use the vim that comes with msysGit to write the web, this is the first time
msysGit contains an incomplete MSYS environment, and the vim that comes with
msysGit is also an incomplete vim.
Find a complete vim first, and then discuss plug-in issues
The following are plug-ins that are helpful for WEB development.
Refer to the plug-in manager tutorial you are using. Don’t ask me whyPlug
Command error
Plug 'othree/html5.vim'
Plug 'hail2u/vim-css3-syntax'
Plug 'groenewege/vim-less'
Plug 'tpope/vim-haml'
Plug 'pangloss/vim-javascript'
Plug 'kchmck/vim-coffee-script'
Plug 'leafgarland/typescript-vim'
" 补充一个 Vue 模板的
Plug 'posva/vim-vue'
" HTML 助手
Plug 'mattn/emmet-vim'
" JavaScript 补全
Plug 'ternjs/tern_for_vim'
" 色彩高亮,例子: #66CCFF
Plug 'gorodinskiy/vim-coloresque'
Personally, I suggest you still use itGitHub Atom
或者 VS Code
This is the Gvim you see
This is my Gvim
This is vim on my VPS
The same configuration, without any modification, works across Windows/Linux, GUI/CLI.
Excuse me, what is the difference between the second picture and the third picture?
I like vim not because it’s cool or because I can show off.
But because of its high degree of freedom, customizability, and strong scalability
Sublime Text extension is based on Python
Python
GitHub Atom 扩展基于NodeJS
而vim,支持+lua
, +mzscheme
,+perl
, +python
, +python3
, +ruby
, +tcl
,并且自身也有一门语言叫做vimL
GitHub Atom extension is based on NodeJS
And vim supports +lua
, +mzscheme
, +perl
, +python
, +python3
, +ruby
, +tcl
, and it also has its own language called vimL
Simply put, you can write vim plug-ins in any of the above languages.
lua
Use
python
/python3
Use
ruby
Use
C
It’s no problem to write native extensions using
Go
Background call
JS
Backend call
High freedom also comes at a price, that is, the default configuration or even zero configuration is very unfriendly. Ctrl-V
为粘贴,而正常情况下Ctrl-V
For example, the default configuration of Gvim for windows will map
to block selection.
- You flip through the Vim documentation and set the parameters you want to set. 🎜
You need a certain function, but vim does not have it built-in, so you go to vim-script to find a plug-in.
There are too many plugins and the files are too messy, so you learn to use the Plugin Manager and use git to update plugins from GitHub.
A certain plug-in does not suit your needs, so you start to learn
vimL
the language and write the plug-in yourself.A certain plug-in requires support from other languages such as
+python
,+lua
, so you start to compile vim yourself.You think your vim is very powerful and can do things other than editing:
Manage database
Manage git repo
Stock Operation
Watch the comments during the live broadcast
Watch the news
On Twitter
Play Tetris
Watch the video Bad apple!
What the hell are these
- downstairs
Publish your configuration/plugin package for others to refer to. For example, @liuchengxu’s classmate’s space-vim
Once you get started, you don’t need to consider other editors at all.
Accept all the platforms you know and don’t know! Take in all the grammar you know and don’t know!
Why do all mainstream editors/IDEs that support extensions have vim plug-ins?
Sublime Text: https://packagecontrol.io/pac...
GitHub Atom: https://atom.io/packages/vim-...
Visual Studio: https://marketplace.visualstu...
Visual Studio Code: https://marketplace.visualstu...
Eclipse: http://eclim.org/
PyCharm/IntelliJ IDEA: http://plugins.jetbrains.com/...
Xcode: https://github.com/XVimProjec...
Non-editor: bash
, zsh
, tmux
, Firefox
, Chrome
There is also vim mode or plug-in
For debugging and other things, IDE must be convenient, so I never recommend vim for newbies.
Newbies who are interested in vim, I am willing to help.
Vim source code:
https://github.com/vim/vimGvim for Windows:
https://github.com/vim/vim-wi...
Tell me a cold joke: The artifact Sublime Text
The world is huge, and there are many you have never seen
伊谢尔伦2017-05-16 16:36:52
This is the first time I saw someone using VIM to write front-end code. And it is probably for the Win platform. Who is your teacher?
Front-end code does not need to be written in Vim.
sublime and atom are both good. Search for yourself.
迷茫2017-05-16 16:36:52
Change colorscheme
a list of commonly used colorschemes -- vim-galore
Or configure it carefully. If you use Linux or macOS, I would shamelessly recommend: space-vim
But windows, not tested yet...