mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-22 03:34:10 -05:00
Fix text wrapping for applicable filetypes, and don't wrap text in markdown
This commit is contained in:
parent
42138932e9
commit
bcc825b538
1 changed files with 3 additions and 3 deletions
|
@ -27,7 +27,7 @@ autocmd FileChangedRO * nested set noreadonly
|
||||||
autocmd BufEnter * :syntax sync fromstart
|
autocmd BufEnter * :syntax sync fromstart
|
||||||
|
|
||||||
"disable automatic line breaks
|
"disable automatic line breaks
|
||||||
autocmd VimEnter * set textwidth=0
|
set textwidth=0
|
||||||
|
|
||||||
"set filetypes for various file extensions
|
"set filetypes for various file extensions
|
||||||
autocmd BufNewFile,BufRead *.aspx,*.asmx,*.ascx,*.master setlocal ft=aspnet
|
autocmd BufNewFile,BufRead *.aspx,*.asmx,*.ascx,*.master setlocal ft=aspnet
|
||||||
|
@ -39,8 +39,8 @@ autocmd FileChangedRO * nested set noreadonly
|
||||||
|
|
||||||
"filtype specific settings
|
"filtype specific settings
|
||||||
autocmd BufEnter,FileType sh setlocal iskeyword-=.
|
autocmd BufEnter,FileType sh setlocal iskeyword-=.
|
||||||
autocmd Filetype text,markdown,gitcommit,mail setlocal nonumber spell nolist linebreak textwidth=80 tabstop=2 shiftwidth=2 breakat&vim breakat-=* breakat-=. breakat-=/ breakat-=? breakat-=, breakat-=: breakat-=; breakat-=! "set some defaults for word processing
|
autocmd Filetype markdown,text,gitcommit,mail setlocal nonumber spell tabstop=2 shiftwidth=2 "word processing defaults
|
||||||
autocmd Filetype text,gitcommit,mail setlocal wrap
|
autocmd Filetype text,gitcommit,mail setlocal wrap nolist textwidth=80 linebreak breakat&vim breakat-=* breakat-=. breakat-=/ breakat-=? breakat-=, breakat-=: breakat-=; breakat-=! "configure text wrapping for applicable filetypes
|
||||||
autocmd FileType tmux setlocal commentstring=#\ %s "set the comment string to #
|
autocmd FileType tmux setlocal commentstring=#\ %s "set the comment string to #
|
||||||
autocmd FileType scss setlocal iskeyword+=$
|
autocmd FileType scss setlocal iskeyword+=$
|
||||||
autocmd Filetype markdown setlocal iskeyword+=-
|
autocmd Filetype markdown setlocal iskeyword+=-
|
||||||
|
|
Loading…
Reference in a new issue