我已经使用Pathogen安装了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>
我做错了什么?