我目前将 Iterm2 和 Vim 7.4 与 Minimalist Vim Plugin Manager 一起使用。通过 Vim 打开文件时,出现错误:
Error detected while processing MYDIRECTORY/.vimrc:
line 19:
E185: Cannot find color scheme 'onedark'
Press ENTER or type command to continue
Run Code Online (Sandbox Code Playgroud)
该onedark主题不加载,但如果可以,Vim,I型:colorscheme onedark,它完全加载。
我的 .vimrc 如下:
set t_Co=256
set autoindent
set mouse=a
set number
set shiftwidth=0
set tabstop=4
"let g:airline_theme='onedark'
"Use 24-bit (true-color) mode in Vim/Neovim when outside tmux."
if (has("nvim"))
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
endif
if (has("termguicolors"))
set termguicolors
endif
set background=dark
colorscheme onedark
syntax …Run Code Online (Sandbox Code Playgroud) 我正在使用Ubuntu 13.04并尝试为Vim安装NERD树插件.通过将NERD树文件放在.vim /目录中安装vim插件的所有指南中指定,我找不到这样的目录.
cd ~/.vim/
bash: cd: /home/tushar/.vim/: No such file or directory
Run Code Online (Sandbox Code Playgroud)
如果有更好的方法来安装插件,请发布步骤.
我正在尝试为某种类型的IDE尝试VIM,我已经安装了vimrc,因为它看起来很不错.
我缺少的是linting配置语法错误,什么不是,某种intellisense(我认为vim-javascript的确如此).
根据我的阅读,vim-pathogen是安装vim特定插件的方法.
我已经按照vim-javascript中的文档介绍了如何使用病原体进行安装.我注意到安装后我看到文字颜色不同但我仍然没有得到任何类型的自动完成.
我尝试将配置添加到我的.vimrc文件中,但我不认为我做得对.
这是它的样子:
set runtimepath+=~/.vim_runtime
execute pathogen#infect()
source ~/.vim_runtime/vimrcs/basic.vim
source ~/.vim_runtime/vimrcs/filetypes.vim
source ~/.vim_runtime/vimrcs/plugins_config.vim
source ~/.vim_runtime/vimrcs/extended.vim
let g:javascript_plugin_jsdoc = 1
let g:javascript_plugin_ngdoc = 1
let g:javascript_plugin_flow = 1
set foldmethod=syntax
try
source ~/.vim_runtime/my_configs.vim
catch
endtry
Run Code Online (Sandbox Code Playgroud) 我从朋友那里拿走了我的vimrc,它对分割栏有一些改动.如何将其还原到默认拆分栏?
我的.vim文件夹:这里
和.vimrc:
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Maintainer: amix the lucky stiff
" http://amix.dk - amix@amix.dk
"
" Version: 3.6 - 25/08/10 14:40:30
"
" Blog_post:
" http://amix.dk/blog/post/19486#The-ultimate-vim-configuration-vimrc
" Syntax_highlighted:
" http://amix.dk/vim/vimrc.html
" Raw_version:
" http://amix.dk/vim/vimrc.txt
"
" How_to_Install_on_Unix:
" $ mkdir ~/.vim_runtime
" $ svn co svn://orangoo.com/vim ~/.vim_runtime
" $ cat ~/.vim_runtime/install.sh
" $ sh ~/.vim_runtime/install.sh <system>
" <sytem> can be `mac`, `linux` or `windows`
"
" How_to_Upgrade:
" $ svn update ~/.vim_runtime
"
" Sections:
" -> …Run Code Online (Sandbox Code Playgroud) vim ×5
vim-plugin ×5
linux ×2
ubuntu ×2
color-scheme ×1
iterm2 ×1
javascript ×1
nerdtree ×1
plugins ×1