Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/vim/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/visual-studio-2012/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Vim代码完成和底部的神秘信息_Vim_Code Completion_Vim Plugin_Vim Powerline - Fatal编程技术网

Vim代码完成和底部的神秘信息

Vim代码完成和底部的神秘信息,vim,code-completion,vim-plugin,vim-powerline,Vim,Code Completion,Vim Plugin,Vim Powerline,每次启动vim时,我都会在下图底部看到以下神秘文本: 我用以下方式安装了所有插件 #VIM sudo equo install setuptools ctags ipython rope ropemode easy_install --prefix=/home/uqmlore1/apps/pymodules -UZ git+git://github.com/kevinw/pyflakes.git easy_install --prefix=/home/uqmlore1/apps/pymo

每次启动vim时,我都会在下图底部看到以下神秘文本:

我用以下方式安装了所有插件

#VIM

sudo  equo install setuptools ctags ipython rope ropemode 
easy_install --prefix=/home/uqmlore1/apps/pymodules -UZ git+git://github.com/kevinw/pyflakes.git
easy_install --prefix=/home/uqmlore1/apps/pymodules -UZ pylint
easy_install --prefix=/home/uqmlore1/apps/pymodules -UZ pep8

mkdir -p ~/.vim/colors && cd ~/.vim/colors 
wget -O wombat256mod.vim http://www.vim.org/scripts/download_script.php?src_id=13400
mkdir -p ~/.vim/autoload ~/.vim/bundle
curl -so ~/.vim/autoload/pathogen.vim https://raw.github.com/tpope/vim-pathogen/HEAD/autoload/pathogen.vim

cd ~/.vim/
git init
git submodule add git://github.com/Lokaltog/vim-powerline.git bundle/vim-powerline
git submodule add https://github.com/kien/ctrlp.vim.git bundle/ctrlp.vim
git submodule add https://github.com/ivanov/vim-ipython bundle/vim-ipython      
git submodule add https://github.com/majutsushi/tagbar bundle/tagbar
git submodule add https://github.com/vim-scripts/indentpython.vim bundle/indentpython
git submodule add https://github.com/scrooloose/syntastic bundle/syntastic
git submodule add https://github.com/scrooloose/nerdtree bundle/nerdtree
git submodule add https://github.com/scrooloose/nerdcommenter bundle/nerdcommenter
git submodule add https://github.com/vim-scripts/mru.vim bundle/mru.vim
git submodule add https://github.com/tpope/vim-surround.git bundle/vim-surround ?
git submodule add https://github.com/ervandew/supertab.git bundle/supertab
git submodule add https://github.com/kevinw/pyflakes-vim bundle/pyflakes-vim
git submodule add https://github.com/sjl/gundo.vim.git bundle/gundo.vim
git submodule add https://github.com/fs111/pydoc.vim.git bundle/pydoc.vim
git submodule add https://github.com/vim-scripts/pep8.git bundle/pep8
git submodule add https://github.com/alfredodeza/pytest.vim.git bundle/pytest.vim
git submodule add https://github.com/reinh/vim-makegreen bundle/vim-makegreen
git submodule add https://github.com/sontek/rope-vim.git bundle/rope-vim
git submodule init
git submodule update
git submodule foreach git submodule init
git submodule foreach git submodule update
rm -rf .git .gitmodules

mkdir -p ~/.vim/ftplugin 
wget -O ~/.vim/ftplugin/python_editing.vim http://www.vim.org/scripts/download_script.php?src_id=5492


" Sample .vimrc file by Martin Brochhaus
" Presented at PyCon APAC 2012

" Automatic reloading of .vimrc
autocmd! bufwritepost .vimrc source %


" Better copy & paste
" When you want to paste large blocks of code into vim, press F2 before you
" paste. At the bottom you should see ``-- INSERT (paste) --``.

set pastetoggle=<F2>
set clipboard=unnamed


" Mouse and backspace
set mouse=a  " on OSX press ALT and click
"" set bs=2     " make backspace behave like normal again


" Rebind <Leader> key
" I like to have it here becuase it is easier to reach than the default and
" it is next to ``m`` and ``n`` which I use for navigating between tabs.
let mapleader = ","


" Bind nohl
" Removes highlight of your last search
" ``<C>`` stands for ``CTRL`` and therefore ``<C-n>`` stands for ``CTRL+n``
noremap <C-n> :nohl<CR>
vnoremap <C-n> :nohl<CR>
inoremap <C-n> :nohl<CR>


" Quicksave command
"" noremap <C-Z> :update<CR>
"" vnoremap <C-Z> <C-C>:update<CR>
"" inoremap <C-Z> <C-O>:update<CR>


" Quick quit command
"" noremap <Leader>e :quit<CR>  " Quit current window
"" noremap <Leader>E :qa!<CR>   " Quit all windows


" bind Ctrl+<movement> keys to move around the windows, instead of using Ctrl+w + <movement>
" Every unnecessary keystroke that can be saved is good for your health :)
map <c-j> <c-w>j
map <c-k> <c-w>k
map <c-l> <c-w>l
map <c-h> <c-w>h


" easier moving between tabs
map <Leader>n <esc>:tabprevious<CR>
map <Leader>m <esc>:tabnext<CR>


" map sort function to a key
vnoremap <Leader>s :sort<CR>


" easier moving of code blocks
" Try to go into visual mode (v), thenselect several lines of code here and
" then press ``>`` several times.
vnoremap < <gv  " better indentation
vnoremap > >gv  " better indentation


" Show whitespace
" MUST be inserted BEFORE the colorscheme command
autocmd ColorScheme * highlight ExtraWhitespace ctermbg=red guibg=red
au InsertLeave * match ExtraWhitespace /\s\+$/


" Color scheme
" mkdir -p ~/.vim/colors && cd ~/.vim/colors
" wget -O wombat256mod.vim http://www.vim.org/scripts/download_script.php?src_id=13400
set t_Co=256
color wombat256mod


" Enable syntax highlighting
" You need to reload this file for the change to apply
filetype off
filetype plugin indent on
syntax on


" Showing line numbers and length
set number  " show line numbers
set tw=79   " width of document (used by gd)
set nowrap  " don't automatically wrap on load
set fo-=t   " don't automatically wrap text when typing
set colorcolumn=80
highlight ColorColumn ctermbg=233


" easier formatting of paragraphs
vmap Q gq
nmap Q gqap


" Useful settings
set history=700
set undolevels=700


" Real programmers don't use TABs but spaces
set tabstop=4
set softtabstop=4
set shiftwidth=4
set shiftround
set expandtab


" Make search case insensitive
set hlsearch
set incsearch
set ignorecase
set smartcase


" Disable stupid backup and swap files - they trigger too many events
" for file system watchers
set nobackup
set nowritebackup
set noswapfile


" Setup Pathogen to manage your plugins
" mkdir -p ~/.vim/autoload ~/.vim/bundle
" curl -so ~/.vim/autoload/pathogen.vim https://raw.github.com/tpope/vim-pathogen/HEAD/autoload/pathogen.vim
" Now you can install any plugin into a .vim/bundle/plugin-name/ folder
call pathogen#infect()


" ============================================================================
" Python IDE Setup
" ============================================================================


" Settings for vim-powerline
" cd ~/.vim/bundle
" git clone git://github.com/Lokaltog/vim-powerline.git
set laststatus=2


" Settings for ctrlp
" cd ~/.vim/bundle
" git clone https://github.com/kien/ctrlp.vim.git
let g:ctrlp_max_height = 30
set wildignore+=*.pyc
set wildignore+=*_build/*
set wildignore+=*/coverage/*


" Settings for python-mode
" cd ~/.vim/bundle
" git clone https://github.com/klen/python-mode
map <Leader>g :call RopeGotoDefinition()<CR>
let ropevim_enable_shortcuts = 1
let g:pymode_rope_goto_def_newwin = "vnew"
let g:pymode_rope_extended_complete = 1
let g:pymode_breakpoint = 0
let g:pymode_syntax = 1
let g:pymode_syntax_builtin_objs = 0
let g:pymode_syntax_builtin_funcs = 0
map <Leader>b Oimport ipdb; ipdb.set_trace() # BREAKPOINT<C-c>

" Better navigating through omnicomplete option list
" See http://stackoverflow.com/questions/2170023/how-to-map-keys-for-popup-menu-in-vim
"" set completeopt=longest,menuone
function! OmniPopup(action)
if pumvisible()
    if a:action == 'j'
    return "\<C-N>"
    elseif a:action == 'k'
    return "\<C-P>"
    endif
endif
return a:action
endfunction

inoremap <silent><C-j> <C-R>=OmniPopup('j')<CR>
inoremap <silent><C-k> <C-R>=OmniPopup('k')<CR>


" Python folding
" mkdir -p ~/.vim/ftplugin
" wget -O ~/.vim/ftplugin/python_editing.vim http://www.vim.org/scripts/download_script.php?src_id=5492
set nofoldenable

" SuperTab plugin can be used to avoid needing to press Ctrl-X then Ctrl-O to invoke the popup completion menu. 
let g:SuperTabDefaultCompletionType = "context"
#VIM
sudo equo安装设置工具ctags ipython绳索模式
轻松安装--前缀=/home/uqmlore1/apps/pymodules-UZ git+git://github.com/kevinw/pyflakes.git
易于安装--前缀=/home/uqmlore1/apps/pymodules-UZ-pylint
易于安装--前缀=/home/uqmlore1/apps/pymodules-UZ pep8
mkdir-p~/.vim/colors和&cd~/.vim/colors
wget-O wombat256mod.vimhttp://www.vim.org/scripts/download_script.php?src_id=13400
mkdir-p~/.vim/autoload~/.vim/bundle
curl-so~/.vim/autoload/病原体.vimhttps://raw.github.com/tpope/vim-pathogen/HEAD/autoload/pathogen.vim
cd~/.vim/
初始化
git子模块添加git://github.com/Lokaltog/vim-powerline.git 线束/vim电源线
git子模块添加https://github.com/kien/ctrlp.vim.git 捆绑/传送带
git子模块添加https://github.com/ivanov/vim-ipython 束/维姆-伊普顿
git子模块添加https://github.com/majutsushi/tagbar 捆绑/标记栏
git子模块添加https://github.com/vim-scripts/indentpython.vim 捆绑/缩进
git子模块添加https://github.com/scrooloose/syntastic 束/联味
git子模块添加https://github.com/scrooloose/nerdtree 束/能树
git子模块添加https://github.com/scrooloose/nerdcommenter 集束/能量中心
git子模块添加https://github.com/vim-scripts/mru.vim 束/磁共振成像
git子模块添加https://github.com/tpope/vim-surround.git 捆绑/维姆环绕?
git子模块添加https://github.com/ervandew/supertab.git 捆绑/超级表
git子模块添加https://github.com/kevinw/pyflakes-vim 捆扎/捆扎
git子模块添加https://github.com/sjl/gundo.vim.git bundle/gundo.vim
git子模块添加https://github.com/fs111/pydoc.vim.git bundle/pydoc.vim
git子模块添加https://github.com/vim-scripts/pep8.git 捆绑/pep8
git子模块添加https://github.com/alfredodeza/pytest.vim.git bundle/pytest.vim
git子模块添加https://github.com/reinh/vim-makegreen 捆绑/维姆绿色
git子模块添加https://github.com/sontek/rope-vim.git 捆/绳vim
初始化子模块
git子模块更新
git子模块foreach git子模块init
git子模块foreach git子模块更新
rm-rf.git.git模块
mkdir-p~/.vim/ftplugin
wget-O~/.vim/ftplugin/python_editing.vimhttp://www.vim.org/scripts/download_script.php?src_id=5492
Martin Brochhaus的Sample.vimrc文件
“在2012年亚太地区PyCon上展示
“自动重新加载.vimrc
autocmd!bufwritepost.vimrc源%
“更好的复制和粘贴
“当您想将大块代码粘贴到vim中时,请先按F2键
“粘贴。在底部,您应该看到`--INSERT(paste)--`。
设置粘贴切换=
设置剪贴板=未命名
“鼠标和退格
在OSX上按ALT键并单击“设置鼠标=a”
“设置bs=2”使退格再次正常运行
“重新绑定键
“我喜欢把它放在这里,因为它比默认值和
“它位于用于在选项卡之间导航的``m``和``n``旁边。
让mapleader=“,”
“绑定nohl
“删除上次搜索的突出显示
“```代表``CTRL``因此````代表``CTRL+n”``
诺雷马克:诺尔
vnoremap:nohl
inoremap:nohl
“快速保存命令
“”noremap:更新
“”vnoremap:更新
“”重新映射:更新
“快速退出命令
“”noremap e:quit“退出当前窗口
”“诺雷马克:质量保证!“退出所有窗口
“绑定Ctrl+键以在窗口中移动,而不是使用Ctrl+w+
“可以保存的每一次不必要的击键都有利于您的健康:)
地图j
地图k
地图l
地图h
“更容易在选项卡之间移动
地图n:tabprevious
地图m:tabnext
“将排序功能映射到键
vnoremaps:排序
“更容易移动代码块
尝试进入可视模式(v),然后在此处选择几行代码,然后
然后按几次“`>`”。

vnoremap<电源线插件似乎有问题,请查看其部分

电源线插件似乎有问题,请查看其部分

接受其他人的配置并不是一个好主意,但一般来说,您的
~/.vimrc
是正确的。这不应该是问题的原因

我建议通过使用旧的“对分调试”方法来缩小可能的原因:您没有太多插件,所以应该很快


我支持电力线的想法。

接受其他人的配置并不是一个好主意,但一般来说,您的
~/.vimrc
是正确的。这不应该是问题的原因

我建议通过使用旧的“对分调试”方法来缩小可能的原因:您没有太多插件,所以应该很快


我支持电力线的想法。

谢谢。你是对的,电力线在下面有一个更新的版本,我不得不把这一行添加到vimrc中

source ~/.vim/bundle/powerline/powerline/ext/vim/source_plugin.vim
let g:Powerline_symbols = 'fancy'
set laststatus=2

多谢各位。你是对的,电力线在下面有一个更新的版本,我不得不把这一行添加到vimrc中

source ~/.vim/bundle/powerline/powerline/ext/vim/source_plugin.vim
let g:Powerline_symbols = 'fancy'
set laststatus=2

也许是回答这个问题的好地方。没有什么比神秘的按摩更让我讨厌的了。也许是回答这个问题的好地方。我最讨厌的莫过于神秘的按摩。你应该勾选@Atropo的答案。@romainl。不。他建议使用
vim电力线
故障排除部分
Vim powerline
现在已被弃用,此答案指向新项目(不是新版本)。您不必
让g:powerline_symbols='fancy'
,新的powerline仅由JSON文件配置,此行被忽略。您应该勾选@Atropo的答案。@romainl。不。他建议使用
vim电力线
故障排除部分
Vim powerline
现在已被弃用,此答案指向新项目(而非新版本)。您不必让g:powerline_symbols='fancy'
,新的powerline仅由JSON文件配置,这一行被忽略。关于“对分调试”:VAM现在支持插件的开箱即用。不会