mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
chore(vim): split file into smaller parts
This commit is contained in:
20
nvim/functions.vim
Normal file
20
nvim/functions.vim
Normal 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
|
||||
Reference in New Issue
Block a user