chore(vim): split file into smaller parts

This commit is contained in:
Stefan Imhoff
2021-12-09 16:22:17 +01:00
parent 2d1d355358
commit 36f95d7f46
10 changed files with 236 additions and 240 deletions

20
nvim/functions.vim Normal file
View File

@@ -0,0 +1,20 @@
" *** *** *** Functions *** *** ***
" *********************************
" Toggle between soft wrap and no wrap
nnoremap <leader>tw :call ToggleWrap()<CR>
function! ToggleWrap()
if &wrap
echo "Wrap OFF"
set nowrap
set nolinebreak
set virtualedit=all
else
echo "Wrap ON"
set wrap
set linebreak
set virtualedit=
setlocal display+=lastline
endif
endfunction