diff --git a/README.md b/README.md index 4e46ffc..3d22e71 100644 --- a/README.md +++ b/README.md @@ -368,6 +368,10 @@ files contain key mappings as well (TODO: probably will move them out to skwp-ke * Cmd-/ - toggle comments (usually gcc from tComment) * gcp (comment a paragraph) + **Wrapping** + + * :Wrap - wrap long lines (e.g. when editing markdown files). + * Cmd-[j, k, $, 0, ^] - navigate display lines. ### Included vim plugins diff --git a/vim/plugin/settings/yadr-wrapping.vim b/vim/plugin/settings/yadr-wrapping.vim new file mode 100644 index 0000000..d1ade1e --- /dev/null +++ b/vim/plugin/settings/yadr-wrapping.vim @@ -0,0 +1,19 @@ +" http://vimcasts.org/episodes/soft-wrapping-text/ +function! SetupWrapping() + set wrap linebreak nolist + set showbreak=… +endfunction + +command! -nargs=* Wrap :call SetupWrapping() + +vmap gj +vmap gk +vmap g$ +vmap g^ +vmap g^ +nmap gj +nmap gk +nmap g$ +nmap g^ +nmap g^ +