mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-12-23 00:10:23 -05:00
Prevent wrapping from breaking words in vimpager
This commit is contained in:
parent
37da2ea46c
commit
0f2b687d84
1 changed files with 3 additions and 3 deletions
|
@ -19,7 +19,7 @@ if !exists("g:disablelinebreaks")
|
||||||
let g:disablelinebreaks=1
|
let g:disablelinebreaks=1
|
||||||
endif
|
endif
|
||||||
if (g:disablelinebreaks == 1)
|
if (g:disablelinebreaks == 1)
|
||||||
autocmd VimEnter * set tw=0 nolinebreak
|
autocmd VimEnter * set tw=0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
"enable omnicompletion for any filetype without that has syntax highlighting
|
"enable omnicompletion for any filetype without that has syntax highlighting
|
||||||
|
@ -41,8 +41,8 @@ endif
|
||||||
autocmd BufEnter,BufRead PKGBUILD setlocal iskeyword-=.
|
autocmd BufEnter,BufRead PKGBUILD setlocal iskeyword-=.
|
||||||
|
|
||||||
"filtype specific settings
|
"filtype specific settings
|
||||||
autocmd FileType gitcommit,notes,mail,notmuch,mkd,text,taskreport setlocal nonumber spell nolist wrap linebreak breakat&vim "some defautls for word processing
|
autocmd FileType gitcommit,notes,mail,notmuch,text,taskreport setlocal nonumber spell nolist wrap linebreak breakat&vim "some defautls for word processing
|
||||||
autocmd Filetype mkd,mkdc setlocal breakat-=* "prevent breaking *s from words to linewrap in markdown
|
autocmd Filetype mkd,mkdc setlocal nonumber spell nolist wrap linebreak breakat&vim breakat-=* breakat-=. "set some defaults for markdown
|
||||||
autocmd FileType help* wincmd L "help windows always open vertically
|
autocmd FileType help* wincmd L "help windows always open vertically
|
||||||
autocmd FileType help* vertical resize 80 "set the window size to 80 cols
|
autocmd FileType help* vertical resize 80 "set the window size to 80 cols
|
||||||
autocmd FileType help* setlocal nocursorline "remove the horizontal cursor line
|
autocmd FileType help* setlocal nocursorline "remove the horizontal cursor line
|
||||||
|
|
Loading…
Reference in a new issue