1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-04-13 13:29:11 +08:00

Remove set textwidth for text filetype (#1931)

* Remove set textwidth for text filetype

* Update following HEAD page
This commit is contained in:
Wang Shidong 2018-07-11 20:34:08 +08:00 committed by GitHub
parent d0c7c389ff
commit c86fc67180
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,6 @@ function! SpaceVim#autocmds#init() abort
autocmd BufNewFile,BufEnter * set cpoptions+=d " NOTE: ctags find the tags file from the current path instead of the path of currect file
autocmd BufEnter * :syntax sync fromstart " ensure every file does syntax highlighting (full)
autocmd BufNewFile,BufRead *.avs set syntax=avs " for avs syntax file.
autocmd FileType text setlocal textwidth=78 " for all text files set 'textwidth' to 78 characters.
autocmd FileType c,cpp,cs,swig set nomodeline " this will avoid bug in my project with namespace ex, the vim will tree ex:: as modeline.
autocmd FileType c,cpp,java,javascript set comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,f://
autocmd FileType cs set comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,f:///,f://

View File

@ -25,6 +25,7 @@ The next release is v0.9.0.
- Allow customization of vimfiler_quick_look_command ([#1889](https://github.com/SpaceVim/pull/1889))
- Change the option name `enable_statusline_display_mode` to `enable_statusline_mode` ([#1843](https://github.com/SpaceVim/SpaceVim/pull/1843))
- Recover spell and list option in go layer ([#1872](https://github.com/SpaceVim/SpaceVim/pull/1872))
- Remove textwidth option in autocmd ([#1931](https://github.com/SpaceVim/SpaceVim/pull/1931))
### Fixed