Re: copying from gvim to other editor.

2010-11-17 Thread John Little
On Nov 17, 7:41 pm, joy c cjjoy1...@gmail.com wrote:   I am having problem selecting a text from gvim and pasting into other edition like gedit... This is governed in gvim by the 'guioptions' option. See :help guioptions Mine includes 'a', called autoselect, which does (for me) what you

Re: Apply function before pasting

2010-11-17 Thread Joan Miquel Torres Rigo
2010/11/16 statquant2 statqu...@gmail.com: Hi guys, thank you very much for the answer, however this is not working because I forgot to mention that I paste from the mouse, basically I hit the middle button and It paste what is in the mouse. Your stuff are working for (from what I

Re: Empty lines in clipboard

2010-11-17 Thread Bram Moolenaar
Rameo wrote: Thank you AK, it resolved my question. Thank you Javier, I will remove the mappings. John, I used Yankring before but the plugin doesn't work anymore with the latest windows patch of Bram, 7.3.46 It crashes Vim. Is this reproducible? -- TERRY GILLIAM PLAYED: PATSY

Re: a few questions

2010-11-17 Thread Jürgen Krämer
Hi, Martin Knappe wrote: I am a VIM newbie with few questions regarding vim usage. I hope this is not too much. How can I achieve the following behaviour easily: 1) Indentation should always be four spaces. set shiftwidth=4 2) No line may ever be longer than 80 characters. If a

Re: a few questions

2010-11-17 Thread Tim Chase
On 11/17/2010 06:11 AM, Jürgen Krämer wrote: 1) Indentation should always be four spaces. set shiftwidth=4 You might also have to set 'expandtab' and 'tabstop' if you're pressing the tab key and expecting spaces. When coding Python where the project-standard is 4-spaces, I usually use

Re: Empty lines in clipboard

2010-11-17 Thread rameo
On Nov 17, 12:29 pm, Bram Moolenaar b...@moolenaar.net wrote: Rameo wrote: Thank you AK, it resolved my question. Thank you Javier, I will remove the mappings. John, I used Yankring before but the plugin doesn't work anymore with the latest windows patch of Bram, 7.3.46 It crashes

Re: Empty lines in clipboard

2010-11-17 Thread Ben Fritz
On Nov 16, 12:30 pm, rameo rai...@gmail.com wrote: Hi, I often cut text in one part of a file (using d or ctrl-x) and before to move to where I want to paste this text, I reorder the lines around where I did cut the text removing one or more empty lines (using dd). When I'm finally ready

Re: Writing files without EOL

2010-11-17 Thread Ben Fritz
This is slightly off-topic, but do people actually work at a place where someone would get upset about adding a single invisible character with no negative impact on anything at all to the end of a file, when the file is being changed already anyway? I work at a company with a fairly strict change

Re: a few questions

2010-11-17 Thread Ben Fritz
On Nov 17, 2:57 am, Martin Knappe martin.kna...@gmail.com wrote: hi I am a VIM newbie with few questions regarding vim usage. I hope this is not too much. How can I achieve the following behaviour easily: 3) If while wrapping around I am typing within a string (started by a -character),

'formatexpr' in the sandbox

2010-11-17 Thread Ben Fritz
The :help says that the 'formatexpr' option may be evaluated in the sandbox. It seems to me that formatexpr would be fairly useless in the sandbox, since you cannot change buffer text in the sandbox. Am I missing something? I do notice that it is not ALWAYS evaluated in the sandbox, only when

Re: a few questions

2010-11-17 Thread Martin Knappe
I actually wasn't aware (or had forgotten) that C code automatically concatenates strings like that...if it works, that's pretty cool. Is that standard C or some compiler-specific thing? Might be a GNU C enhancement, but then, GNU C pretty much is the standard, isnt it? -- You received

Re: a few questions

2010-11-17 Thread Benjamin R. Haskell
On Wed, 17 Nov 2010, Martin Knappe wrote: I actually wasn't aware (or had forgotten) that C code automatically concatenates strings like that...if it works, that's pretty cool. Is that standard C or some compiler-specific thing? Might be a GNU C enhancement Nope. ANSI C. , but

Re: copying from gvim to other editor.

2010-11-17 Thread joy c
Thanks Jon, I had my guioptions set as below : set guioptions-=m remove menu bar set guioptions-=T remove toolbar set guioptions-=r remove right-hand scroll bar After including the below options, i am now able to paste into other applications. set guioptions+=a Thanks Joy. On Wed, Nov

Saving global variables in session files

2010-11-17 Thread Tim Johnson
Using vim 7.2 on ubuntu 10.04, huge version. If I execute the following: :let g:viewFolder = /path/to/project/application/views and save the session, I note that the value of g:viewFolder is not stored in the session file. What else do I need to do? -

Re: Saving global variables in session files

2010-11-17 Thread Tim Johnson
* Tim Johnson t...@johnsons-web.com [101117 15:36]: Using vim 7.2 on ubuntu 10.04, huge version. If I execute the following: :let g:viewFolder = /path/to/project/application/views and save the session, I note that the value of g:viewFolder is not stored in the session file. What else do

Re: Saving global variables in session files

2010-11-17 Thread Tom Link
  :) but you're not off the hook yet. Anyone have a better way or   any caveats? Two alternatives come to mind: Under the assumption that your sessions correspond to projects, you could use the localvimrc[1] plugin (or something similar) to set the variables to project-specific values. Such