go to end after join

This commit is contained in:
Christoph J. Scherr 2023-09-08 16:25:02 +02:00
parent fe23da711a
commit 769858aaf1
1 changed files with 3 additions and 1 deletions

View File

@ -120,8 +120,10 @@ map('n', 'o', 'o', { desc = 'Insert newline below' })
map('i', '<S-Return>', '<C-o>o', { desc = 'Start Newline' }) map('i', '<S-Return>', '<C-o>o', { desc = 'Start Newline' })
-- Split and join lines -- Split and join lines
map('n', '<leader>jj', ':join<CR>', { desc = 'Join lines', silent = true }) map('n', '<leader>jj', ':join<CR>g$', { desc = 'Join lines', silent = true })
map('n', '<leader>jJ', 'k:join<CR>j', { desc = 'Join lines', silent = true })
map('n', '<leader>ss', 'i<CR><ESC>', { desc = 'Split lines', silent = true }) map('n', '<leader>ss', 'i<CR><ESC>', { desc = 'Split lines', silent = true })
map('n', '<leader>sS', 'i<CR><ESC>k', { desc = 'Split lines', silent = true })
-- Re-select blocks after indenting in visual/select mode -- Re-select blocks after indenting in visual/select mode
map('x', '<', '<gv', { desc = 'Indent Right and Re-select' }) map('x', '<', '<gv', { desc = 'Indent Right and Re-select' })