Results 1 to 5 of 5
I'm using ubuntu and i'm editing in Vim.
I wonder if there is a command which permently delete a word or a line.... ( d,x,.. are just similar to cut)
...
- 05-31-2011 #1Just Joined!
- Join Date
- May 2011
- Posts
- 4
Copy and paste issue in Vim
I'm using ubuntu and i'm editing in Vim.
I wonder if there is a command which permently delete a word or a line.... ( d,x,.. are just similar to cut)
Because sometimes i want to cut something and leave them in the buffer for later use and continue editing, but how can i delete words, line..etc... without losing my previous cut in the buffer ?
- 05-31-2011 #2
- 05-31-2011 #3Just Joined!
- Join Date
- May 2011
- Posts
- 4
thanks 4 your reply
unfortunately there's no shortcut
- 05-31-2011 #4
If you have text you wish to save for future use without the risk of it being overwritten, you can specify a buffer to put it into and then paste it back out of that buffer.
For example, if you have the string "Here is some text", you can delete and save the word "text" by moving your cursor onto the first letter of that word and typinga is just a random character; you could use any letter.Code:"adw
Then you can do other deletions using the default delete buffer. They won't overwrite your saved text. Finally, to get that text back, type:
This doesn't quite answer your question but it is a possible workaround for your problem.Code:"ap
"I'm just a little old lady; don't try to dazzle me with jargon!"
- 06-01-2011 #5Just Joined!
- Join Date
- May 2011
- Posts
- 4
Wow that's great =)) That's mean i can store many things for future use since there are so many register a-z =)))) thanks ^^


Reply With Quote