Added no line break to wrap toggle
This commit is contained in:
4
.vimrc
4
.vimrc
@@ -257,8 +257,8 @@ map <leader>g :GFiles<CR>
|
||||
" 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>
|
||||
|
||||
" Toggle wrapping with <leader>w
|
||||
nnoremap <leader>w :set wrap!<CR>
|
||||
" Toggles line wrapping with linebreak enabled when wrapping is turned on with <leader>w
|
||||
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/)
|
||||
|
||||
Reference in New Issue
Block a user