mirror of
https://github.com/amix/vimrc
synced 2025-06-23 06:35:01 +08:00
Updated plugins
This commit is contained in:
@ -14,7 +14,7 @@ Syntax highlighting, matching rules and mappings for [the original Markdown](htt
|
||||
|
||||
## Installation
|
||||
|
||||
If you use [Vundle](https://github.com/gmarik/vundle), add the following line to your `~/.vimrc`:
|
||||
If you use [Vundle](https://github.com/gmarik/vundle), add the following lines to your `~/.vimrc`:
|
||||
|
||||
```vim
|
||||
Plugin 'godlygeek/tabular'
|
||||
|
@ -151,10 +151,20 @@ let b:fenced_block = 0
|
||||
let b:front_matter = 0
|
||||
let s:vim_markdown_folding_level = get(g:, "vim_markdown_folding_level", 1)
|
||||
|
||||
if !get(g:, "vim_markdown_folding_disabled", 0)
|
||||
setlocal foldexpr=Foldexpr_markdown(v:lnum)
|
||||
setlocal foldmethod=expr
|
||||
if get(g:, "vim_markdown_folding_style_pythonic", 0) && get(g:, "vim_markdown_override_foldtext", 1)
|
||||
setlocal foldtext=Foldtext_markdown()
|
||||
endif
|
||||
endif
|
||||
function! s:MarkdownSetupFolding()
|
||||
if !get(g:, "vim_markdown_folding_disabled", 0)
|
||||
setlocal foldexpr=Foldexpr_markdown(v:lnum)
|
||||
setlocal foldmethod=expr
|
||||
if get(g:, "vim_markdown_folding_style_pythonic", 0) && get(g:, "vim_markdown_override_foldtext", 1)
|
||||
setlocal foldtext=Foldtext_markdown()
|
||||
endif
|
||||
endif
|
||||
endfunction
|
||||
call s:MarkdownSetupFolding()
|
||||
augroup Mkd
|
||||
" These autocmds need to be kept in sync with the autocmds calling
|
||||
" s:MarkdownRefreshSyntax in ftplugin/markdown.vim.
|
||||
autocmd BufWinEnter,BufWritePost <buffer> call s:MarkdownSetupFolding()
|
||||
autocmd InsertEnter,InsertLeave <buffer> call s:MarkdownSetupFolding()
|
||||
autocmd CursorHold,CursorHoldI <buffer> call s:MarkdownSetupFolding()
|
||||
augroup END
|
||||
|
@ -780,6 +780,8 @@ function! s:MarkdownClearSyntaxVariables()
|
||||
endfunction
|
||||
|
||||
augroup Mkd
|
||||
" These autocmd calling s:MarkdownRefreshSyntax need to be kept in sync with
|
||||
" the autocmds calling s:MarkdownSetupFolding in after/ftplugin/markdown.vim.
|
||||
autocmd! * <buffer>
|
||||
autocmd BufWinEnter <buffer> call s:MarkdownRefreshSyntax(1)
|
||||
autocmd BufUnload <buffer> call s:MarkdownClearSyntaxVariables()
|
||||
|
@ -4,6 +4,8 @@ set rtp+=../build/tabular/
|
||||
set rtp+=../build/vim-toml/
|
||||
set rtp+=../build/vim-json/
|
||||
set rtp+=../build/vader.vim/
|
||||
set rtp-=~/.vim
|
||||
set rtp-=~/.vim/after
|
||||
let $LANG='en_US'
|
||||
filetype on
|
||||
filetype plugin on
|
||||
|
Reference in New Issue
Block a user