我正在尝试设置vim的nightowl主题,但它似乎部分呈现。语法颜色正确,但背景显示为黑色。 我的vimrc看起来像这样: " automatic installation of vim-plug, if it's not available
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-p
我是
我发现在终端中加载.vimrc需要很长时间:
$ vim --startuptime myvimrctime
$ cat myvimrctime
....
152.762 147.219 054.849: sourcing $HOME/.vimrc
....
我为做了一些优化
set viminfo=%,<800,'10,/50,:100,h,f0,n~/.vim/cache/.viminfo
但还是要花太多的时间。
我是time vim
[marslo@MarsloJiao ~]
$ time vim
real 0m1.877s
user 0m0.20
我在努力学习维姆。当我打开程序时,会遇到这样的情况:
The airline statusline funcref function('airline#extensions#mundo#statusline') has already been added.The airline statusline funcref function('airline#extensions#mundo#statusline') has already been added.
错误信息表明你已经安装了两次航空公司..。
你在全球范围内安装了航空公司吗?是什么:剧本告诉你的?谢
当我在.{cpp,h}文件中单行注释的末尾启动一条新行时,vim将自动对其进行注释。例如:
// This is a comment<CR>
// | <- Cursor is moved to `|`, `//` is automatically inserted.
我不确定这是插件还是设置。在我的~/.vimrc中,我看不到任何看起来会这样做的东西,加载的插件如下所示。
对于/* */-style多行注释,我喜欢这样,但默认情况下,我不希望我的单行注释在多行上运行。
哪个设置(或插件)可以这样做,我可以关闭它只对此注释类型?
:scriptnames给出了以下内容:
如何使我的vim不需要手动重新加载~/.vimrc而应用autocmd?为什么... Filetype tsv ...从来没有应用过呢?
我的~/.vimrc
set ts=10
autocmd BufWrite * :echom "Writing buffer!"
autocmd Filetype tsv set ts=20 sts=20 sw=20
加载~/.vimrc,但是仅在:so之后应用自动the。
$ vim /tmp/test.tsv
:verbose set ts
tabstop=10
Last set by ~/.vimrc
:w
"tes
我想在我的VPS上定制Vim。我已经完成了许多教程和README.md文件中描述的所有事情。
所以,apt-get vim,vim起作用-获取git拉vim创建了~/..vimrc
看起来是这样的:
" vim -u test/vimrc
set nocompatible
set nowrap
filetype off
set rtp+=~/.vimrc/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'L9'
call vundle#end()
当我加载vim时,我得到以下消息,我无法知道如何调试。
4FNVHQ1|tmp
λ vim
default
Press ENTER or type command to continue
4FNVHQ1|tmp
λ
我已经运行了vim -V9myVimLog,并在输出中获得了这个结果,但是仍然没有任何有用的东西。
....
chdir(/c/Users/bjones/.vim/bundle/vundle/autoload/vundle)
fchdir() to previous dir
line 5: sourcing "/c/Users/bjones/.vim/bundle/vund
我的.vimrc有一个字符串"set tabstop=4",但是当我打开一些东西时,比如python文件,它就不适用了。下面是我的完整.vimrc:
cnoremap Q q
au! BufWritePost .vimrc source %
set tabstop=4
set shiftwidth=4
set smarttab
set expandtab
set softtabstop=4
set autoindent
"set syntax=off
set t_co=256
strace说vim读取的是/home/user/.vimrc,他真的读取了这个文件,例如,c
初步产出:
ravi@boxy ~/.dotfiles/.vim/bundle $ git status
On branch master
Your branch is up-to-date with 'origin/master'.
nothing to commit, working directory clean
ravi@boxy ~/.dotfiles/.vim/bundle $
现在,cd并再次运行git状态:
ravi@boxy ~/.dotfiles/.vim/bundle $ cd neobundle.vim/
ravi@boxy ~/.dotfiles/.v
我在正确使用stow方面有问题。我用来安装我所有stow's的纸条是:
cd ~/Utility/configs
for file in *; do
# Only run Stow on the directories in the dotfiles folder and not the individual files.
# Using 'basename' strips the filepath from the directory name.
if [ -d ${file} ]; then
stow $(basename $file) -t
我想要将gruvbox设置为所有用户的全局默认配色方案,但我无法使其正常工作。我得到了E185: Cannot find color scheme*,但是这个解决方案不适合我。(我正在尝试使用vim,而不是gvim)。
我在/usr/share/vim/vim82/plugs/gruvbox中安装了gruvbox。我的/etc/vimrc是对我在Windows桌面上使用的vimrc的修改,但现在我在Linux上运行它:
" All system-wide defaults are set in $VIMRUNTIME/archlinux.vim (usually just
"