paste

Paste multiple times

荒凉一梦 提交于 2019-12-02 14:07:49
What is the best way replace multiple lines with the contents of the clipboard? The problem I'm having is when I yank a line and paste it over another line the "yank" is replaced with the line I just replace. Now, if I want to replace another line with the same line I have to go back up and yank it again. There's got to be a better way to do this. I have this in my .vimrc: xnoremap p pgvy (note: this will work only with the default register, but this mapping is easy to remember). Writing a more elaborate version would be possible. Also, you still can use P to get the old behaviour. "0 should

why there is a gap in the file name created using paste?

爱⌒轻易说出口 提交于 2019-12-02 13:35:43
I was trying to write a file using R and in order to distinguish each file, i tried to add a different suffix each time in a function. For example...... counts <- function(counts_file) { .............................. .............................. name <- substr(counts_file,1,5) file <- paste(name,".cpm.csv") write.csv(countpermillion, file) } But when i run the function counts("JKNC1.bam.tsv") , the output file created is like this JKNE3 .cpm.csv i.e there is a gap between the JKNEE3 and .cpm.csv . What am i doing wrong here? Thanks Upendra The default separator is a space. paste(name,".cpm

How to detect multiline paste in RichTextBox

我怕爱的太早我们不能终老 提交于 2019-12-02 12:59:23
问题 At the moment I'm working on a simple syntax highlighter and I have couple of problems. Could you help me out? I have a class library with a component class in it. Everything is in VB.NET. It's only one file so you can see it here https://gist.github.com/2366507 . On line 92, there is the OnTextChanged Sub. I was thinking about adding ProcessAllLines() (as on line 128) to the end of that Sub, and it worked. However when I was typing in code to the RichTextBox (source which I used is here

Issue with pasting 5 columns groups in R

岁酱吖の 提交于 2019-12-02 10:06:28
问题 I have a data table like below. All columns are in characters. Table: V29 V30 V31 V32 V33 V34 V35 V36 V37 V38 .... V69 044 N 005 E 026 044 N 006 E 011 I want to paste them in 5 column groups starting from V29. For example I want to obtain an output column in Table as shown below. Table: V29 V30 V31 V32 V33 V34 V35 V36 V37 V38 .... V69 Output 044 N 005 E 026 044 N 006 E 011 044N005E026-044N006E011- How can I achieve this in R. Any help is appreciated. Thanks. 回答1: Using DF defined in the Note

Trouble pasting row to table

ⅰ亾dé卋堺 提交于 2019-12-02 09:36:58
For every cell that is not blank in column "Transition" of table "TableQueue", I want to: 1)Copy from table "TableQueue" the entire table row that contains that cell, 2)Paste that row to the bottom of table "TableNPD", 3)Delete the row from table "TableQueue" I've gotten everything except the copy/paste/delete to work. See my note halfway down the code below to see where my problem begins. I am new to vba and, although I can find plenty of info on copying and pasting to the bottom of a table, its all slightly different from each other and different from how I've already set up the top half of

Issue with pasting 5 columns groups in R

空扰寡人 提交于 2019-12-02 07:23:05
I have a data table like below. All columns are in characters. Table: V29 V30 V31 V32 V33 V34 V35 V36 V37 V38 .... V69 044 N 005 E 026 044 N 006 E 011 I want to paste them in 5 column groups starting from V29. For example I want to obtain an output column in Table as shown below. Table: V29 V30 V31 V32 V33 V34 V35 V36 V37 V38 .... V69 Output 044 N 005 E 026 044 N 006 E 011 044N005E026-044N006E011- How can I achieve this in R. Any help is appreciated. Thanks. Using DF defined in the Note at the end create a sprintf formatting string fmt and then run it. If there are NA's in DF then they will

How to detect multiline paste in RichTextBox

会有一股神秘感。 提交于 2019-12-02 02:49:37
At the moment I'm working on a simple syntax highlighter and I have couple of problems. Could you help me out? I have a class library with a component class in it. Everything is in VB.NET. It's only one file so you can see it here https://gist.github.com/2366507 . On line 92, there is the OnTextChanged Sub. I was thinking about adding ProcessAllLines() (as on line 128) to the end of that Sub, and it worked. However when I was typing in code to the RichTextBox (source which I used is here https://gist.github.com/2366526 ) after each text change it was checking and processing ALL the lines. So I

C#: Paste RTF in RichTextBox but keep coloring and formatting (i.e: bold, underline, etc)

房东的猫 提交于 2019-12-02 01:46:01
问题 Is it possible to paste text into a Rich Text Box, while keeping the font being used in the Rich Text Box for the pasted content ? In other words, I'd like to copy something from Word that is formated (i.e: a text that uses a font X and is underlined and in blue), and then paste it in my RichTextBox. I would like the pasted content to have the same font as that of my RichTextBox but keep its original coloring and underlining. Is such a thing possible ? I use winforms. Thanks 回答1: This is not

Capture CTRL+V or paste in a textbox in .NET

六月ゝ 毕业季﹏ 提交于 2019-12-02 00:35:47
问题 VB.NET 2010 - I have a RichTextbox in which the user can manually enter data or copy/paste from another source. After the data is complete he hits go and a few key words are highlighted. My issue is that if he copy/pastes from another source the formatting also gets copied. Well sometimes the outside source has a white font and my textbox has a white background so it appears like he pasted nothing and he does it again and again. What I'm looking for is a way to intercept the paste action into

paste column values to another column

房东的猫 提交于 2019-12-01 22:54:31
问题 I have a simple questions that possibly can be solved with paste My data frame looks like this: x<-c(3,6,7) y<-c(0.25,0.35,0.62) dta1<-data.frame(x,y) x y 1 3 0.25 2 6 0.35 3 7 0.62 I want to paste these values together in one column. And add or remove some characters at the same time. it will looks like this : x 1 3(.25) 2 6(.35) 3 7(.62) 回答1: You could use paste or paste0 , but I find sprintf easier to read sprintf("%i(.%i)", dta1$x, round(100*dta1$y)) where %i marks integer numbers given