Drukob

joined 10 months ago
 

I'm using the following snipped in my .vimrc to restore the cursor position when closing and opening a file:

au BufReadPost * \ if line("'"") > 0 && line("'"") <= line("$") && &filetype != "gitcommit" | \ execute("normal `"") | \ endif

This works fine in regular vim, but not when using sudoedit, which I just got myself used to using when editing root files. I understand it is because sudoedit creates temporary files and therefore will not restore the position because it sees it as a different file, but is there any workaround? Or should i just use sudo -E instead as it works fine there?

1
submitted 10 months ago* (last edited 10 months ago) by [email protected] to c/[email protected]
 

The contribution would be used to combat climate change and inequality and would help to ensure that European citizens pay their fair share towards achieving these objectives.

The minimum threshold of signatories is only required a quarter of the EU countries, so in 7 of 27. France is already at 188% of the required threshold, Denmark at 88% and Germany at 80%

 

The contribution would be used to combat climate change and inequality and would help to ensure that European citizens pay their fair share towards achieving these objectives.

The minimum threshold of signatories is only required a quarter of the EU countries, so in 7 of 27. France is already at 188% of the required threshold, Denmark at 88% and Germany at 80%