Updates to .vimrc

799c18d82030f6ac9345f9904bbf8de70ce9b9de
Alexis Sellier committed ago 1 parent 0526b4e6
.vimrc +11 -1
16 16
set ruler
17 17
set showmatch
18 18
set wildmenu
19 19
set wildmode=list,full
20 20
set nowrap
21 +
set breakindent                     " Preserve indentation when wrapping
21 22
set hidden
22 23
set modeline
23 24
set hlsearch
24 25
set incsearch
25 26
set autoread                        " Auto-reload modified files (with no local changes)
114 115
au FileType c,cpp       setlocal       sw=4 noexpandtab
115 116
au FileType lua         setlocal       sw=2 expandtab
116 117
au FileType sh,zsh      setlocal ts=2  sw=2 noexpandtab
117 118
au FileType vim,ruby    setlocal sts=2 sw=2 expandtab
118 119
au FileType help        setlocal ts=4  sw=4 noexpandtab
119 -
au FileType txt         setlocal noai nocin nosi inde=
120 +
au FileType txt         setlocal noai nocin nosi inde= wrap linebreak
121 +
au FileType pandoc      setlocal nonumber
122 +
au FileType markdown    setlocal nonumber
123 +
au FileType fountain    setlocal nonumber noai nocin nosi inde= wrap linebreak
124 +
125 +
au BufRead,BufNewFile *.txt setf markdown
120 126
121 127
" Remove trailing whitespace on save
122 128
autocmd BufWritePre * call s:StripTrailing()
123 129
function! s:StripTrailing()
124 130
    let l = line(".")
278 284
Plug 'eagletmt/neco-ghc'
279 285
Plug 'shougo/deoplete.nvim'
280 286
Plug 'bronson/vim-visual-star-search'
281 287
Plug 'ndmitchell/ghcid', { 'rtp': 'plugins/nvim' }
282 288
Plug 'cloudhead/neovim-fuzzy'
289 +
Plug 'tikhomirov/vim-glsl'
290 +
Plug 'vim-pandoc/vim-pandoc-syntax'
291 +
Plug 'junegunn/goyo.vim'
292 +
Plug 'vim-scripts/fountain.vim'
283 293
284 294
call plug#end()