Thread: [Vim-latex-devel] Problem pasting between files
Brought to you by:
srinathava,
tmaas
From: David W. <da...@da...> - 2013-02-09 06:44:04
|
When I copy lines from one tex file, open a different one and paste I'm not getting a proper paste. Instead it pastes what looks like an escape sequence ^[. On testing it does paste into a filetype other than tex, so the yank line is working, just not the paste. What can I do to paste properly between tex files? -- When all you have is a Swiss Army Knife, every problem looks like email. -- Peter da Silva |
From: Devendra G. <dev...@gm...> - 2013-02-09 07:14:18
|
Try :set paste and once done pasting, :set nopaste Devendra On 02/09/2013 10:55 AM, David Woodfall wrote: > When I copy lines from one tex file, open a different one and paste > I'm not getting a proper paste. Instead it pastes what looks like an > escape sequence ^[. On testing it does paste into a filetype other > than tex, so the yank line is working, just not the paste. > > What can I do to paste properly between tex files? > |
From: David W. <da...@da...> - 2013-02-09 07:28:38
|
On (09/02/13 12:44), Devendra Ghate <dev...@gm...> put forth the proposition: >Try > >:set paste > >and once done pasting, > >:set nopaste Tried that first. No luck I'm afraid. >On 02/09/2013 10:55 AM, David Woodfall wrote: >> When I copy lines from one tex file, open a different one and paste >> I'm not getting a proper paste. Instead it pastes what looks like an >> escape sequence ^[. On testing it does paste into a filetype other >> than tex, so the yank line is working, just not the paste. >> >> What can I do to paste properly between tex files? |
From: David W. <da...@da...> - 2013-02-09 08:18:57
|
On (09/02/13 07:27), David Woodfall <da...@da...> put forth the proposition: >On (09/02/13 12:44), Devendra Ghate <dev...@gm...> put forth the proposition: >>Try >> >>:set paste >> >>and once done pasting, >> >>:set nopaste > >Tried that first. No luck I'm afraid. > >>On 02/09/2013 10:55 AM, David Woodfall wrote: >>> When I copy lines from one tex file, open a different one and paste >>> I'm not getting a proper paste. Instead it pastes what looks like an >>> escape sequence ^[. On testing it does paste into a filetype other >>> than tex, so the yank line is working, just not the paste. >>> >>> What can I do to paste properly between tex files? I've noticed that it works when using a split window, but not when closing vim and opening the second file, if that's any clue. |
From: Bodo G. <ma...@bo...> - 2013-02-09 19:53:27
Attachments:
signature.asc
|
Indeed I'm using Gentoo linux and the rather old vim-latex version 1.8.23.20110214. Could very well be that this is a known and fixed issue. Btw. only the "* register is affected, not the "+ one. Bodo Am Sat, 9 Feb 2013 20:41:12 +0100 schrieb Alessandro Pezzoni <ale...@la...>: | 2013/2/9 Bodo Graumann <ma...@bo...>: | > I can confirm something like this. | > Usually if I select some text anywhere (in any application), then | > open gvim, open a file, I can paste the original selection right | > into it. But not so with .tex-files. When those are opened, the | > copy-paste-buffer is overwritten with the content of the file. So | > when it’s a new .tex file a single empty line would be pasted. | | I can't reproduce this here (on ArchLinux). Both "* and "+ registers | are set to the current clipboard values when opening both tex and | non-tex files with gvim. Does this happen with any tex file? I gather | you are using Linux? If so, which distribution? | | Alessandro | | | ------------------------------------------------------------------------------ | Free Next-Gen Firewall Hardware Offer | Buy your Sophos next-gen firewall before the end March 2013 | and get the hardware for free! Learn more. | http://p.sf.net/sfu/sophos-d2d-feb | _______________________________________________ | Vim-latex-devel mailing list | Vim...@li... | https://lists.sourceforge.net/lists/listinfo/vim-latex-devel | |
From: David W. <da...@da...> - 2013-02-09 20:18:40
|
On (09/02/13 20:53), Bodo Graumann <ma...@bo...> put forth the proposition: >Indeed I'm using Gentoo linux and the rather old vim-latex version >1.8.23.20110214. Could very well be that this is a known and fixed >issue. Btw. only the "* register is affected, not the "+ one. > >Bodo Slackware here. Vim 7.3.645 vim-latex-1.8.23-20121116.784-git1c17b37.tar.gz >Am Sat, 9 Feb 2013 20:41:12 +0100 >schrieb Alessandro Pezzoni <ale...@la...>: > >| 2013/2/9 Bodo Graumann <ma...@bo...>: >| > I can confirm something like this. >| > Usually if I select some text anywhere (in any application), then >| > open gvim, open a file, I can paste the original selection right >| > into it. But not so with .tex-files. When those are opened, the >| > copy-paste-buffer is overwritten with the content of the file. So >| > when it’s a new .tex file a single empty line would be pasted. >| >| I can't reproduce this here (on ArchLinux). Both "* and "+ registers >| are set to the current clipboard values when opening both tex and >| non-tex files with gvim. Does this happen with any tex file? I gather >| you are using Linux? If so, which distribution? >| >| Alessandro |
From: Gerd W. <ger...@ma...> - 2013-02-11 07:36:44
|
Hi, I can't reproduce this behaviour. All registers ("", "*, "+) are not affected by opening a new (g)vim session (with or without latex-suite). I'm using my own version of latex-suite (https://github.com/gerw/vim-latex-suite). Regards Gerd On 02/09/2013 09:18 PM, David Woodfall wrote: > On (09/02/13 20:53), Bodo Graumann <ma...@bo...> put forth the proposition: >> Indeed I'm using Gentoo linux and the rather old vim-latex version >> 1.8.23.20110214. Could very well be that this is a known and fixed >> issue. Btw. only the "* register is affected, not the "+ one. >> >> Bodo > > Slackware here. > > Vim 7.3.645 > vim-latex-1.8.23-20121116.784-git1c17b37.tar.gz > >> Am Sat, 9 Feb 2013 20:41:12 +0100 >> schrieb Alessandro Pezzoni <ale...@la...>: >> >> | 2013/2/9 Bodo Graumann <ma...@bo...>: >> | > I can confirm something like this. >> | > Usually if I select some text anywhere (in any application), then >> | > open gvim, open a file, I can paste the original selection right >> | > into it. But not so with .tex-files. When those are opened, the >> | > copy-paste-buffer is overwritten with the content of the file. So >> | > when it’s a new .tex file a single empty line would be pasted. >> | >> | I can't reproduce this here (on ArchLinux). Both "* and "+ registers >> | are set to the current clipboard values when opening both tex and >> | non-tex files with gvim. Does this happen with any tex file? I gather >> | you are using Linux? If so, which distribution? >> | >> | Alessandro > > ------------------------------------------------------------------------------ > Free Next-Gen Firewall Hardware Offer > Buy your Sophos next-gen firewall before the end March 2013 > and get the hardware for free! Learn more. > http://p.sf.net/sfu/sophos-d2d-feb > _______________________________________________ > Vim-latex-devel mailing list > Vim...@li... > https://lists.sourceforge.net/lists/listinfo/vim-latex-devel > |
From: Rohit P. <kn...@ya...> - 2013-03-11 22:48:36
|
This problem suddenly cropped up after a OS reinstall (and obviously a clean install of vim and the latex-suite). `a now expands to `a\alpha `b to `b\beta even the custom maps expand with the map keys ahead of the expanded text. This has obviously made vim-latex entirely useful for me and is an emergency situation since I'm having to use alternate text editor which is an unfathomable pain for me!!! Thanks in advance for the help. Quick resolution will be immensely helpful. |
From: Rohit P. <kn...@ya...> - 2013-03-11 23:13:36
|
The problem has been solved. It occurred because backspacing was not allowed over the start of the insert. It would appear that latex suite goes into insert then backspaces over the typed stuff and then replaces it with the new text which caused the problem since it wasn't able to delete the shortcut keys and simply added the new text causing it to appear as it did. The following line in .vimrc solved the problem set backspace=2 ________________________________ From: Rohit Patel <kn...@ya...> To: "vim...@li..." <vim...@li...> Sent: Monday, 11 March 2013 5:48 PM Subject: [Vim-latex-devel] Weird shortcut problem This problem suddenly cropped up after a OS reinstall (and obviously a clean install of vim and the latex-suite). `a now expands to `a\alpha `b to `b\beta even the custom maps expand with the map keys ahead of the expanded text. This has obviously made vim-latex entirely useful for me and is an emergency situation since I'm having to use alternate text editor which is an unfathomable pain for me!!! Thanks in advance for the help. Quick resolution will be immensely helpful. ------------------------------------------------------------------------------ Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the endpoint security space. For insight on selecting the right partner to tackle endpoint security challenges, access the full report. http://p.sf.net/sfu/symantec-dev2dev _______________________________________________ Vim-latex-devel mailing list Vim...@li... https://lists.sourceforge.net/lists/listinfo/vim-latex-devel |
From: Alessandro P. <ale...@la...> - 2013-02-09 10:41:28
|
>>>On 02/09/2013 10:55 AM, David Woodfall wrote: >>>> When I copy lines from one tex file, open a different one and paste >>>> I'm not getting a proper paste. Instead it pastes what looks like an >>>> escape sequence ^[. On testing it does paste into a filetype other >>>> than tex, so the yank line is working, just not the paste. >>>> >>>> What can I do to paste properly between tex files? > > I've noticed that it works when using a split window, but not when > closing vim and opening the second file, if that's any clue. When you yank some text in vim, it puts it in a register which gets cleared when you close vim. You can do one of two things: either open both files in the same session of vim, e.g. with split windows or tags, or prepend "* to your yanking command, so that vim puts the yanked text in a register shared with the system clipboard. For more information on this, have a look look at the relevant help page [1]. Alessandro [1] http://vimdoc.sourceforge.net/htmldoc/gui_x11.html#x11-selection |
From: David W. <da...@da...> - 2013-02-09 10:47:58
|
tOn (09/02/13 11:41), Alessandro Pezzoni <ale...@la...> put forth the proposition: >>>>On 02/09/2013 10:55 AM, David Woodfall wrote: >>>>> When I copy lines from one tex file, open a different one and paste >>>>> I'm not getting a proper paste. Instead it pastes what looks like an >>>>> escape sequence ^[. On testing it does paste into a filetype other >>>>> than tex, so the yank line is working, just not the paste. >>>>> >>>>> What can I do to paste properly between tex files? >> >> I've noticed that it works when using a split window, but not when >> closing vim and opening the second file, if that's any clue. > >When you yank some text in vim, it puts it in a register which gets >cleared when you close vim. You can do one of two things: either open >both files in the same session of vim, e.g. with split windows or >tags, or prepend "* to your yanking command, so that vim puts the >yanked text in a register shared with the system clipboard. For more >information on this, have a look look at the relevant help page [1]. > >Alessandro > >[1] http://vimdoc.sourceforge.net/htmldoc/gui_x11.html#x11-selection Thanks Alessandro. It's a bit strange how it works with other files without need to add "*, but at least I know how now. |
From: Alessandro P. <ale...@la...> - 2013-02-09 12:39:20
|
> Thanks Alessandro. It's a bit strange how it works with other files > without need to add "*, but at least I know how now. The first thing I can think of is that if you select text with your mouse in X11 it usually gets copied to the clipboard right away. Note that this works for vim (in a terminal), but not for gvim, so one possible explanation would be if you are used to edit files with vim, but edit tex files from gvim (which I do). Alessandro |
From: David W. <da...@da...> - 2013-02-09 13:02:32
|
On (09/02/13 13:39), Alessandro Pezzoni <ale...@la...> put forth the proposition: >> Thanks Alessandro. It's a bit strange how it works with other files >> without need to add "*, but at least I know how now. > >The first thing I can think of is that if you select text with your >mouse in X11 it usually gets copied to the clipboard right away. Note >that this works for vim (in a terminal), but not for gvim, so one >possible explanation would be if you are used to edit files with vim, >but edit tex files from gvim (which I do). No, I'm using only vim commands d and p |
From: David W. <da...@da...> - 2013-02-09 13:04:52
|
On (09/02/13 13:02), David Woodfall <da...@da...> put forth the proposition: >On (09/02/13 13:39), Alessandro Pezzoni <ale...@la...> put forth the proposition: >>> Thanks Alessandro. It's a bit strange how it works with other files >>> without need to add "*, but at least I know how now. >> >>The first thing I can think of is that if you select text with your >>mouse in X11 it usually gets copied to the clipboard right away. Note >>that this works for vim (in a terminal), but not for gvim, so one >>possible explanation would be if you are used to edit files with vim, >>but edit tex files from gvim (which I do). > >No, I'm using only vim commands d and p Make that y and p |
From: Alessandro P. <ale...@la...> - 2013-02-09 16:19:56
|
2013/2/9 David Woodfall <da...@da...>: > On (09/02/13 13:02), David Woodfall <da...@da...> put forth the proposition: >>On (09/02/13 13:39), Alessandro Pezzoni <ale...@la...> put forth the proposition: >>>> Thanks Alessandro. It's a bit strange how it works with other files >>>> without need to add "*, but at least I know how now. >>> >>>The first thing I can think of is that if you select text with your >>>mouse in X11 it usually gets copied to the clipboard right away. Note >>>that this works for vim (in a terminal), but not for gvim, so one >>>possible explanation would be if you are used to edit files with vim, >>>but edit tex files from gvim (which I do). >> >>No, I'm using only vim commands d and p > > Make that y and p Ok, so if I understand you correctly, usually if you yank (y) some text from a file, close vim, then open it on a different file, you can paste (p) it back, without using the "* or "+ registers? That sounds odd... Alessandro |
From: Devendra G. <dev...@gm...> - 2013-02-09 18:06:36
|
On 02/09/2013 09:49 PM, Alessandro Pezzoni wrote: > 2013/2/9 David Woodfall <da...@da...>: >> On (09/02/13 13:02), David Woodfall <da...@da...> put forth the proposition: >>> On (09/02/13 13:39), Alessandro Pezzoni <ale...@la...> put forth the proposition: >>>>> Thanks Alessandro. It's a bit strange how it works with other files >>>>> without need to add "*, but at least I know how now. >>>> The first thing I can think of is that if you select text with your >>>> mouse in X11 it usually gets copied to the clipboard right away. Note >>>> that this works for vim (in a terminal), but not for gvim, so one >>>> possible explanation would be if you are used to edit files with vim, >>>> but edit tex files from gvim (which I do). >>> No, I'm using only vim commands d and p >> Make that y and p > Ok, so if I understand you correctly, usually if you yank (y) some > text from a file, close vim, then open it on a different file, you can > paste (p) it back, without using the "* or "+ registers? That sounds > odd... > > Alessandro I found out about this from David's email today and it works fine for me for .tex files. Devendra > > ------------------------------------------------------------------------------ > Free Next-Gen Firewall Hardware Offer > Buy your Sophos next-gen firewall before the end March 2013 > and get the hardware for free! Learn more. > http://p.sf.net/sfu/sophos-d2d-feb > _______________________________________________ > Vim-latex-devel mailing list > Vim...@li... > https://lists.sourceforge.net/lists/listinfo/vim-latex-devel |
From: Bodo G. <ma...@bo...> - 2013-02-09 17:40:16
Attachments:
signature.asc
|
I can confirm something like this. Usually if I select some text anywhere (in any application), then open gvim, open a file, I can paste the original selection right into it. But not so with .tex-files. When those are opened, the copy-paste-buffer is overwritten with the content of the file. So when it’s a new .tex file a single empty line would be pasted. Hope this helps tracking the issue. best regards, Bodo Am Sat, 9 Feb 2013 17:19:48 +0100 schrieb Alessandro Pezzoni <ale...@la...>: | 2013/2/9 David Woodfall <da...@da...>: | > On (09/02/13 13:02), David Woodfall <da...@da...> put forth | > the proposition: | >>On (09/02/13 13:39), Alessandro Pezzoni | >><ale...@la...> put forth the proposition: | >>>> Thanks Alessandro. It's a bit strange how it works with other | >>>> files without need to add "*, but at least I know how now. | >>> | >>>The first thing I can think of is that if you select text with your | >>>mouse in X11 it usually gets copied to the clipboard right away. | >>>Note that this works for vim (in a terminal), but not for gvim, so | >>>one possible explanation would be if you are used to edit files | >>>with vim, but edit tex files from gvim (which I do). | >> | >>No, I'm using only vim commands d and p | > | > Make that y and p | | Ok, so if I understand you correctly, usually if you yank (y) some | text from a file, close vim, then open it on a different file, you can | paste (p) it back, without using the "* or "+ registers? That sounds | odd... | | Alessandro | | | ------------------------------------------------------------------------------ | Free Next-Gen Firewall Hardware Offer | Buy your Sophos next-gen firewall before the end March 2013 | and get the hardware for free! Learn more. | http://p.sf.net/sfu/sophos-d2d-feb | _______________________________________________ | Vim-latex-devel mailing list | Vim...@li... | https://lists.sourceforge.net/lists/listinfo/vim-latex-devel | |
From: Alessandro P. <ale...@la...> - 2013-02-09 19:41:20
|
2013/2/9 Bodo Graumann <ma...@bo...>: > I can confirm something like this. > Usually if I select some text anywhere (in any application), then open > gvim, open a file, I can paste the original selection right into it. > But not so with .tex-files. When those are opened, the copy-paste-buffer > is overwritten with the content of the file. So when it’s a new .tex > file a single empty line would be pasted. I can't reproduce this here (on ArchLinux). Both "* and "+ registers are set to the current clipboard values when opening both tex and non-tex files with gvim. Does this happen with any tex file? I gather you are using Linux? If so, which distribution? Alessandro |