Update .vimrc for markdown
5fe7e56c57223bf802deeb85b1bf16250bef0c83
1 parent
630c909b
.vimrc
+8 -3
| 85 | 85 | ||
| 86 | 86 | let mapleader = "\<Space>" |
|
| 87 | 87 | ||
| 88 | 88 | let g:signify_vcs_list = ['git'] |
|
| 89 | 89 | ||
| 90 | + | " Markdown |
|
| 91 | + | let g:vim_markdown_auto_insert_bullets = 0 |
|
| 92 | + | let g:vim_markdown_new_list_item_indent = 2 |
|
| 93 | + | let g:vim_markdown_no_default_key_mappings = 1 |
|
| 94 | + | ||
| 90 | 95 | " inccommand |
|
| 91 | 96 | if has("nvim") |
|
| 92 | 97 | set inccommand=nosplit |
|
| 93 | 98 | endif |
|
| 94 | 99 |
| 111 | 116 | au FileType vim,ruby setlocal number sts=2 sw=2 expandtab |
|
| 112 | 117 | au FileType help setlocal number ts=4 sw=4 noexpandtab |
|
| 113 | 118 | au FileType rust setlocal number signcolumn=yes nowrap |
|
| 114 | 119 | au FileType plain setlocal nonumber noai nocin nosi inde= wrap linebreak textwidth=80 |
|
| 115 | 120 | au FileType pandoc setlocal nonumber |
|
| 116 | - | au FileType markdown setlocal nonumber |
|
| 121 | + | au FileType markdown setlocal nonumber conceallevel=2 |
|
| 117 | 122 | au FileType rst setlocal nonumber sw=2 expandtab wrap linebreak textwidth=80 |
|
| 118 | 123 | au FileType fountain setlocal nonumber noai nocin nosi inde= wrap linebreak |
|
| 119 | 124 | au FileType tex setlocal |
|
| 120 | 125 | ||
| 121 | 126 | au BufRead,BufNewFile *.md setf markdown |
| 294 | 299 | endfunction |
|
| 295 | 300 | ||
| 296 | 301 | if has("nvim") |
|
| 297 | 302 | call plug#begin() |
|
| 298 | 303 | ||
| 299 | - | Plug 'tpope/vim-fugitive' |
|
| 300 | 304 | Plug 'tpope/vim-commentary' |
|
| 301 | - | Plug 'tpope/vim-markdown' |
|
| 305 | + | Plug 'godlygeek/tabular' |
|
| 306 | + | Plug 'plasticboy/vim-markdown' |
|
| 302 | 307 | Plug 'mileszs/ack.vim' |
|
| 303 | 308 | Plug 'bronson/vim-visual-star-search' |
|
| 304 | 309 | Plug 'ndmitchell/ghcid', { 'rtp': 'plugins/nvim' } |
|
| 305 | 310 | Plug 'cloudhead/neovim-fuzzy' |
|
| 306 | 311 | Plug 'cloudhead/shady.vim' |