vim-bootstrap | Vim Bootstrap is a generator that provides a simple method | Code Editor library
kandi X-RAY | vim-bootstrap Summary
kandi X-RAY | vim-bootstrap Summary
Vim Bootstrap is generator provides a simple method of generating a .vimrc configuration for vim
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of vim-bootstrap
vim-bootstrap Key Features
vim-bootstrap Examples and Code Snippets
Community Discussions
Trending Discussions on vim-bootstrap
QUESTION
Do I need to test if .vim/autoload/plug.vim exists before running it?
I'm studying the vimrc generate by https://vim-bootstrap.com/ and in one one the first lines it has:
...ANSWER
Answered 2018-May-31 at 18:39This vimrc
file is using vim-plug to manage plugins.
Quick overview of vim-plug:
- Use
Plug {github-user}/{repo}
to use the specified plugin repository Plug
statement should be betweencall plug#begin()
andcall plug#end()
plug#begin({dir})
can specify directory,{dir}
, where vim-plug controlled plugins will live:PlugInstall
will do any necessary fetching & installing of all defined pluginsif executable('curl')
check to make sure you have an executablecurl
program. This is used to download vim-plug
Much of this code is to make sure vim-plug is present and tries to install itself.
Opinion: Avoiding Vim distributionsPersonally, I feel like vim-bootstrap is a Vim distribution. I must warn you, it is very compelling to jump into Vim with a bunch of plugins and a customized vimrc
file. However, I would advise you to avoid distributions and customized vimrc
files. These distributions often make it feel like a different editor or sell you on the idea of these "must have" plugins. Often this causes newer Vim users to get confused where vanilla Vim ends and their plugins begin. When it comes to customizing Vim newer Vimmers often do not have the prerequisite knowledge needed to understand and maintain their distribution's vimrc
setup. Instead I suggest slowly learning and building your own vimrc
. Basically "sharpen the saw"
The best general advice is a simple one, "Sharpen the saw" from Bram's Seven habits essay. I also suggest Vimcasts blog post: On sharpening the saw.
Basically "sharpening the saw" can be summarized as:
VimrcDon't learn everything all at once, but learn a few things at a time. When you find an inefficiency look for ways to improve it. Repeat
I also recommend you use nearly blank vimrc. You should roughly understand each line in your vimrc
. Use :help
and google learn more.
General plugin advice:
- Slowly add a plugin or two when the need arises.
- Do not install a plugin without looking for a native solution first
- Must have good documentation
- Avoid plugins with many mappings
- If it doesn't feel Vim-like then avoid it
- Avoid if mappings doesn't work with the
.
command (may have to use repeat.vim)
- Vimcasts - Great articles and screencasts by Drew Neil, the author of Practical Vim.
- Derek Wyatt's Vim Videos - Good collection of Vim topics.
- Learn Vimscript the Hard Way - Steve Losh teaches how to customize Vim from the basics to the more advanced.
Read :help
and try to make small incremental changes to your workflow.
QUESTION
I want to set textwidth
to 50 when a file in the form jrnl*.txt
is detected. So, I tried to put the following line into an empty ~/.vim/vimrc
file:
ANSWER
Answered 2017-Aug-27 at 14:34Your hypothesis that plugins are overriding your settings is probably right. Putting your code at the end of vimrc
would also not help as vimrc
is loaded before plugins.
One way to get around this is to use after directory.
Create a file ~/.vim/after/ftplugin/text.vim
Add your code to this file. Vim will load this script after it loads plugins.
QUESTION
How does one configure VIm to use Python using vim-bootstrap?
...ANSWER
Answered 2017-Jun-14 at 15:22Access Site
Click on Make your .vimrc now!
- Select your languages: Python
- Select Vim Editor
- Click on Generate!
- Download generete.vim
- mv ~/Downloads/generate.vim ~/.vimrc
- Execute ViM and it will install plugins automatically
- vim +PlugInstall +qall
Open
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install vim-bootstrap
Put your vimrc file into home folder or $XDG_CONFIG_HOME/nvim/init.vim if you use NeoVim
Execute ViM and it will install plugins automatically
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page