slimのsyntax highlightをonにするべくNeoBundle 'slim-template/vim-slim
を書き込み、:NeoBundleInstall
を行いましたがslimのsyntax highlightが全く適用されません。「indentの設定が問題ではないか」という内容の記事を多く見かけましたがindentの記述をコメントアウトしても一向に適用できません。何か気づくことがあれば教えていただけると幸いです。
if 0 | endif if has('vim_starting') if &compatible set nocompatible " Be iMproved endif set runtimepath+=~/.vim/bundle/neobundle.vim endif syntax on syntax enable filetype off call neobundle#begin(expand('~/.vim/bundle/')) NeoBundle 'Shougo/neobundle.vim' NeoBundle 'Shougo/vimproc', { \ 'build' : { \ 'windows' : 'make -f make_mingw32.mak', \ 'cygwin' : 'make -f make_cygwin.mak', \ 'mac' : 'make -f make_mac.mak', \ 'unix' : 'make -f make_unix.mak', \ }, \ } NeoBundle 'VimClojure' NeoBundle 'Shougo/vimshell' NeoBundle 'Shougo/unite.vim' NeoBundle 'Shougo/neocomplcache' NeoBundle 'jpalardy/vim-slime' NeoBundle 'scrooloose/syntastic' NeoBundle 'Shougo/vimfiler.vim' NeoBundle 'itchyny/lightline.vim' NeoBundle 't9md/vim-textmanip' NeoBundle 'Shougo/unite.vim' NeoBundle 'slim-template/vim-slim' filetype plugin indent on call neobundle#end() set clipboard=unnamed,autoselect set expandtab set tabstop=2 set softtabstop=2 set shiftwidth=2 set cursorline set number set laststatus=2 set rtp+=~/.vim/bundle/powerline/powerline/bindings/vim set noswapfile let g:Powerline_symbols = 'fancy' set t_Co=256 let g:Powerline_symbols = 'compatible' set mouse=a set noshowmode set guifont=Ricty\ Discord:h12 set guifontwide=Ricty\ Discord:h12 set tabstop=2 "set fileencoding=utf-8 set encoding=utf-8 set fileencodings=utf-8,iso-2022-jp,euc-jp,sjis set fileformats=unix,dos,mac set nowrap let g:netrw_liststyle = 3 let g:netrw_list_hide = 'CVS,\(^\|\s\s\)\zs\.\S\+' let g:netrw_altv = 1 let g:netrw_alto = 1 let g:Powerline_colorscheme='my' let complcache_enable_at_startup = 1 let g:vimfiler_as_default_explorer = 1 let g:vimfiler_safe_mode_by_default=0 let g:netrw_liststyle=3 autocmd VimEnter * VimFiler -split -simple -winwidth=40 -no-quit autocmd BufRead,BufNewFile * VimFiler -split -simple -winwidth=40 -no-quit """"""""""""""""""""""Maping"""""""""""""""""""""" map <C-l> gt map <C-h> gT inoremap { {}<LEFT> inoremap [ []<LEFT> inoremap ( ()<LEFT> inoremap " ""<LEFT> inoremap ' ''<LEFT> vnoremap { "zdi^V{<C-R>z}<ESC> vnoremap [ "zdi^V[<C-R>z]<ESC> vnoremap ( "zdi^V(<C-R>z)<ESC> vnoremap " "zdi^V"<C-R>z^V"<ESC> vnoremap ' "zdi'<C-R>z'<ESC> noremap <C-a> ^ noremap <silent> <C-p> "0p<CR> noremap mc :'s,'ey<CR> noremap md :'s,'ed<CR> noremap wq :r! good bye!<CR>,wq<CR> noremap <C-t> :tabnew_cdl<CR> noremap <C-n> :let g:vimfiler_edit_action = 'open'<CR> nnoremap <silent> <C-C> :CoffeeCompile vert <CR><C-w>h """""""""""""""""""""""autocmd""""""""""""""""""""" autocmd QuickFixCmdPost * nested cwindow | redraw! autocmd BufNewFile,BufRead *.slim set ft=slim """"""""""""""""""""""""tab"""""""""""""""""""""""""" " Anywhere SID. function! s:SID_PREFIX() return matchstr(expand('<sfile>'), '<SNR>\d\+_\zeSID_PREFIX$') endfunction " Set tabline. function! s:my_tabline() "{{{ let s = '' for i in range(1, tabpagenr('$')) let bufnrs = tabpagebuflist(i) let bufnr = bufnrs[tabpagewinnr(i) - 1] " first window, first appears let no = i " display 0-origin tabpagenr. let mod = getbufvar(bufnr, '&modified') ? '!' : ' ' let title = fnamemodify(bufname(bufnr), ':t') let title = '[' . title . ']' let s .= '%'.i.'T' let s .= '%#' . (i == tabpagenr() ? 'TabLineSel' : 'TabLine') . '#' let s .= no . ':' . title let s .= mod let s .= '%#TabLineFill# ' endfor let s .= '%#TabLineFill#%T%=%#TabLine#' return s endfunction "}}} let &tabline = '%!'. s:SID_PREFIX() . 'my_tabline()' set showtabline=2 " 常にタブラインを表示 " The prefix key. nnoremap [Tag] <Nop> nmap t [Tag] " Tab jump for n in range(1, 9) execute 'nnoremap <silent> [Tag]'.n ':<C-u>tabnext'.n.'<CR>' endfor map <silent> [Tag]n :tabnext<CR>
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/08/01 06:43
2016/08/01 07:13
2016/08/01 07:39
2016/08/01 08:14