Working with markdown and tex
45ab76f237fa9197f473e19441c36936b53e350c
1 parent
b62263bb
.vim/ftplugin/markdown.vim
added
+6 -0
| 1 | + | setlocal autoindent |
|
| 2 | + | setlocal linebreak |
|
| 3 | + | setlocal nonumber |
|
| 4 | + | setlocal shiftwidth=4 |
|
| 5 | + | setlocal tabstop=4 |
|
| 6 | + | setlocal wrap |
.vim/ftplugin/tex.vim
added
+6 -0
| 1 | + | setlocal autoindent |
|
| 2 | + | setlocal linebreak |
|
| 3 | + | setlocal nonumber |
|
| 4 | + | setlocal shiftwidth=4 |
|
| 5 | + | setlocal tabstop=4 |
|
| 6 | + | setlocal wrap |
.vimrc
+4 -1
| 120 | 120 | au FileType txt setlocal noai nocin nosi inde= wrap linebreak |
|
| 121 | 121 | au FileType pandoc setlocal nonumber |
|
| 122 | 122 | au FileType markdown setlocal nonumber |
|
| 123 | 123 | au FileType fountain setlocal nonumber noai nocin nosi inde= wrap linebreak |
|
| 124 | 124 | ||
| 125 | - | au BufRead,BufNewFile *.txt setf markdown |
|
| 125 | + | au BufRead,BufNewFile *.txt, *.md setf markdown |
|
| 126 | + | au BufRead,BufNewFile *.tex setf tex |
|
| 126 | 127 | ||
| 127 | 128 | " Remove trailing whitespace on save |
|
| 128 | 129 | autocmd BufWritePre * call s:StripTrailing() |
|
| 129 | 130 | function! s:StripTrailing() |
|
| 130 | 131 | let l = line(".") |
| 277 | 278 | ||
| 278 | 279 | call plug#begin() |
|
| 279 | 280 | ||
| 280 | 281 | Plug 'tpope/vim-fugitive' |
|
| 281 | 282 | Plug 'tpope/vim-commentary' |
|
| 283 | + | Plug 'tpope/vim-markdown' |
|
| 282 | 284 | Plug 'mileszs/ack.vim' |
|
| 283 | 285 | Plug 'eagletmt/neco-ghc' |
|
| 284 | 286 | Plug 'shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } |
|
| 285 | 287 | Plug 'bronson/vim-visual-star-search' |
|
| 286 | 288 | Plug 'ndmitchell/ghcid', { 'rtp': 'plugins/nvim' } |
| 292 | 294 | Plug 'vim-scripts/fountain.vim' |
|
| 293 | 295 | Plug 'vimwiki/vimwiki' |
|
| 294 | 296 | Plug 'fatih/vim-go' |
|
| 295 | 297 | Plug 'exu/pgsql.vim' |
|
| 296 | 298 | Plug 'hail2u/vim-css3-syntax' |
|
| 299 | + | Plug 'lervag/vimtex' |
|
| 297 | 300 | ||
| 298 | 301 | call plug#end() |
|
| 299 | 302 | ||
| 300 | 303 | " Use custom colors. |
|
| 301 | 304 | " This has to go after plugin initialization. |