made navigating long lines nice again and made word wrap more readable in text documents

This commit is contained in:
Warwick 2021-09-09 14:02:54 +01:00
parent 5ffa94ae86
commit e7073ec5a7
2 changed files with 3 additions and 2 deletions

View file

@ -66,7 +66,7 @@ function! s:on_lsp_buffer_enabled() abort
nmap <buffer> gr <plug>(lsp-references) nmap <buffer> gr <plug>(lsp-references)
nmap <buffer> gi <plug>(lsp-implementation) nmap <buffer> gi <plug>(lsp-implementation)
nmap <buffer> gt <plug>(lsp-type-definition) nmap <buffer> gt <plug>(lsp-type-definition)
nmap <buffer> gj <plug>(lsp-document-diagnostics) nmap <buffer> gx <plug>(lsp-document-diagnostics)
nmap <buffer> <leader>rn <plug>(lsp-rename) nmap <buffer> <leader>rn <plug>(lsp-rename)
nmap <buffer> [g <Plug>(lsp-previous-diagnostic) nmap <buffer> [g <Plug>(lsp-previous-diagnostic)
nmap <buffer> ]g <Plug>(lsp-next-diagnostic) nmap <buffer> ]g <Plug>(lsp-next-diagnostic)

1
vimrc
View file

@ -39,6 +39,7 @@ augroup vimrcEx
" For all text files set 'textwidth' to 78 characters. " For all text files set 'textwidth' to 78 characters.
"autocmd FileType text setlocal textwidth=78 "autocmd FileType text setlocal textwidth=78
autocmd FileType dotoo,org,tex,text setlocal textwidth=80 autocmd FileType dotoo,org,tex,text setlocal textwidth=80
autocmd FileType dotoo,org,tex,text setlocal linebreak
autocmd FileType dotoo,org,tex,text setlocal spell spelllang=en_gb autocmd FileType dotoo,org,tex,text setlocal spell spelllang=en_gb