New answers tagged

1 vote
Accepted

Would a carriage return ^M in SSH key make a difference?

No carriage returns are allowed so use substitution to remove them: :%s/^M//g Don't just copy the above; to insert the control character ^M you have to press Ctrl+V and then Ctrl+M (otherwise if you ...
user avatar
  • 126
1 vote

How to change the name of a vim buffer

If you are trying to do that from a vim function using a variable, you can do like that: function! MyFunc() let file_name = 'Some data here' execute 'file ' . file_name endfunction
user avatar

Top 50 recent answers are included