Saturday, December 14, 2019

Re: How to join a paragraph in normal mode?

@Johannes, I also see no other better way then remapping.

To have the same logic with 'join' as other commands like
'delete', 'yang', 'go upper case' etc I should change my .vimrc to:

" join current line
nnoremap JJ J

" join also a paragraph
nnoremap Jap vapJ

" join inner paragraph
nnoremap Jip vipJ

" join also a sentence
nnoremap Jas vasJ

" join inner sentence
nnoremap Jis visJ

" join to the end of buffer
nnoremap JG vGJ

" join to the beginning of the buffer
nnoremap Jgg vggJ

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/07ac2094-0bb2-4fe9-8b9d-348eb8d3b347%40googlegroups.com.

No comments:

Post a Comment