Added no line break to wrap toggle

This commit is contained in:
2025-04-14 12:56:37 -04:00
parent 0793816ad0
commit 750376d311

4
.vimrc
View File

@@ -257,8 +257,8 @@ map <leader>g :GFiles<CR>
" https://github.com/junegunn/fzf.vim/issues/1235#issuecomment-773726008 " https://github.com/junegunn/fzf.vim/issues/1235#issuecomment-773726008
nnoremap <leader>f :call fzf#run(fzf#vim#with_preview(fzf#wrap({'source': 'find . \( -name .git -o -name .stversions \) -prune -o -print -iname "*'.expand("<cword>").'*"', 'sink': 'e', 'options': '--query="'.expand("<cword>").'"'})))<CR> nnoremap <leader>f :call fzf#run(fzf#vim#with_preview(fzf#wrap({'source': 'find . \( -name .git -o -name .stversions \) -prune -o -print -iname "*'.expand("<cword>").'*"', 'sink': 'e', 'options': '--query="'.expand("<cword>").'"'})))<CR>
" Toggle wrapping with <leader>w " Toggles line wrapping with linebreak enabled when wrapping is turned on with <leader>w
nnoremap <leader>w :set wrap!<CR> nnoremap <leader>w :execute "if &wrap\n set nowrap\nelse\n set wrap linebreak\nendif"<CR>
" --------------------------------------------------------------------------------------------------------------------- " ---------------------------------------------------------------------------------------------------------------------
" ==> Keymaps: Text bubbling (http://vimcasts.org/episodes/bubbling-text/) " ==> Keymaps: Text bubbling (http://vimcasts.org/episodes/bubbling-text/)