New answers tagged

0 votes
Accepted

Indentation is messed up when pasting code

Found myself implementing the code. It first pastes then fixes the indentation correctly as far as I could see. function! PasteFormat(x) let l=@+ let l=len(split(l,"\n"))-1 ...
user avatar
  • 1,114
2 votes
Accepted

Is it possible to keep folds saved when I copy from one file to another?

Probably :set[local] foldmethod=marker is the most portable in that it actually denotes folds in the file using special (and customizable) markers. Even programs other than vim can be told (or taught) ...
user avatar
  • 20.5k

Top 50 recent answers are included