I am trying to write command in Vim which can delete 9 and 11 symbols in third line.
I did this 3s/9, 11///
but nothing happened as I expected it to be.
It would be grateful to do this with your suggestions.
To be more precise:
I want to remove 9th symbol and 11th symbol in third line.
For example I have three lines
- three metres above the sea
- three metres below the sea
- need some help in vim
So I want to delete 9th symbol in third line which is "e" letter in word "some" and 11th symbol which is letter "h" in word "help".
9, 11
on line 3. (Or it would without the extra/
at the end.) It is not very clear what you are trying to achieve here. Pleas show some example input and desired output. Are you trying to delete the first 9 characters on line 3 or minimum 9 maximum 11 characters? If so based on what? Or do you want to remove the first or all occurrences of the strings "9" and "11"? Please update your question to be more precise.