Better paste indentation support #447
Replies: 2 comments 2 replies
-
Looks interesting, thanks for suggestion! On one hand, looking at implementation it might indeed be a good fit for 'mini.misc'. On the other, I personally need more convincing to override such basic mappings as Also, you can achieve a very similar functionality by tweaking nnoremap <Leader>o o<Space><BS><Esc>
nnoremap <Leader>O O<Space><BS><Esc> These variants will create new line below/above current line with "correct" indentation and ending up in Normal mode. After that, doing |
Beta Was this translation helpful? Give feedback.
-
Hmmm, I think this would work for my usecase but I can't seem to get it to work:
This creates a new line with proper indentation but then just types "r". If I do the keystrokes myself it works - pasting in the content with the proper indentation. Any ideas? |
Beta Was this translation helpful? Give feedback.
-
Perhaps a good misc addition or a separate module altogether?
https://github.com/ku1ik/vim-pasta
Beta Was this translation helpful? Give feedback.
All reactions