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
已安装vim ruby,但未显示映射_Ruby_Vim - Fatal编程技术网

已安装vim ruby,但未显示映射

已安装vim ruby,但未显示映射,ruby,vim,Ruby,Vim,我已经使用病原体安装了vim ruby,尽管自动缩进似乎工作正常,但Wiki中显示的一些映射没有显示出来 具体来说,这一点: imap <S-CR> <CR><CR>end<Esc>-cc 这是我的vimrc文件: set nocompatible set backspace=indent,eol,start call pathogen#infect() call pathogen#helptags() filetype plugin

我已经使用病原体安装了vim ruby,尽管自动缩进似乎工作正常,但Wiki中显示的一些映射没有显示出来

具体来说,这一点:

imap <S-CR>    <CR><CR>end<Esc>-cc
这是我的vimrc文件:

set nocompatible
set backspace=indent,eol,start

call pathogen#infect()
call pathogen#helptags()

filetype plugin indent on
syntax on

set encoding=utf-8
set termencoding=utf-8

set nobackup
set nowritebackup
set noswapfile
set autowriteall

set autoindent
set smarttab
set expandtab

syntax on             
filetype on           
filetype indent on    
filetype plugin on    
autocmd Filetype html setlocal ts=2 sts=2 sw=2
autocmd Filetype eruby setlocal ts=2 sts=2 sw=2
autocmd Filetype ruby setlocal ts=2 sts=2 sw=2
autocmd Filetype css setlocal ts=2 sts=2 sw=2
autocmd Filetype scss setlocal ts=2 sts=2 sw=2
autocmd Filetype php setlocal ts=4 sts=4 sw=4
autocmd Filetype coffee setlocal ts=2 sts=2 sw=2
autocmd Filetype javascript setlocal ts=2 sts=2 sw=2
autocmd Filetype json setlocal ts=2 sts=2 sw=2
autocmd Filetype liquid setlocal ts=2 sts=2 sw=2

set smartindent               
set autoindent
set nocindent
set wrap

set magic
set ignorecase
set smartcase
set incsearch
set hlsearch

set lazyredraw
set ruler
set laststatus=2
set cmdheight=1
set number
set numberwidth=1
set cursorline

if has('gui_running')
        set background=light
else
        set background=dark
end
let g:solarized_termtrans = 1
colorscheme solarized

let g:airline_powerline_fonts = 1
let g:airline#extensions#tabline#enabled = 1
let g:airline_theme = 'solarized'
set timeoutlen=50
set noshowmode

let mapleader = ","
nmap <leader>ne :NERDTree<cr>
let g:NERDTreeWinPos = "right" " Make nerdtree open on right

if has('gui_macvim')
  set lines=999 columns=9999
endif

set gfn=Monaco:h12

noremap <silent> <Space> :silent noh<Bar>echo<CR>
nnoremap - :Switch<CR>

我做错了什么?

Terminal vim或gvim?我使用的是MVIM,但在iterm2终端中,vim也会出现同样的情况。您使用的是哪个插件以及您在查看wiki上的哪个页面。我没有看到这个插件中的映射。编辑:我感觉github项目上的wiki已经过时了。我正在使用并查看这个页面,这个插件vim textobj rubyblock与vim ruby有什么关系?