mapping a function with key

2013-02-08 Thread rudrab
I am trying to put insrt_frame at the current cursor position when F12 is pressed what should i do? map F12: call insrt_frame() fun! insrt_frame() :put='\begin{frame}' :put='\frametitle{Motivation}' :put='\end{frame}' endf -- -- You received this message from the vim_use maillist. Do

Re: mapping a function with key

2013-02-08 Thread Rudra Banerjee
So, now it looks like map F12 :execute Insrt_frame() function! Insrt_frame() :0put='\begin{frame}' :put='\frametitle{Motivation}' endfunction and still not working. On Fri, 2013-02-08 at 15:12 +, Rudra Banerjee wrote: Thanks for your reply. I use vim-Latex suite On Fri, 2013-02-08 at

Re: Omnicomplete shows strange behavior when preview window is enabled

2013-02-08 Thread Ben Fritz
On Thursday, February 7, 2013 12:24:25 PM UTC-6, Ben Fritz wrote: get rid of scrolloff option for certain buffers like the quickfix and preview windows autocmd BufEnter * \ if (ft=='qf' || previewwindow || (bufname('%') ==# __Tag_List__ ||

Re: mapping a function with key

2013-02-08 Thread rudrab
Ah...I managed to fix it almost with nmap in place of map. But one problem is still there: it inserts the lines at the top of the file. How can I make it insert at the cursor position? -- -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text

vim: is there an easy way to visual select the just pasted texts?

2013-02-08 Thread ping
On 2/7/2013 3:39 PM, ping wrote: this is a small feature I constantly wanted to have but failed, I thought it hardly , and my idea is: use a function or new map, to make sure before paste, recording the positions/marks of the 2 lines that the new texts are going to be inserted into, say

Re: vim: is there an easy way to visual select the just pasted texts?

2013-02-08 Thread Nicolas Dermine
On Fri, Feb 8, 2013 at 5:45 PM, ping songpingem...@gmail.com wrote: On 2/7/2013 3:39 PM, ping wrote: this is a small feature I constantly wanted to have but failed, I thought it hardly , and my idea is: use a function or new map, to make sure before paste, recording the positions/marks of

Visual Mode Selection in Windows 7

2013-02-08 Thread Roy Fulbright
I am using gvim 7.3 on Windows 7. I need to select the four x's in the following sample text. I positioned the cursor on the upper left 'x', then typed 'v' to enter visual mode. So far so good, but when I move the cursor to the lower right 'x' I lose the selection. How do I designate the

Re: Visual Mode Selection in Windows 7

2013-02-08 Thread David Fishburn
On Fri, Feb 8, 2013 at 1:19 PM, Roy Fulbright rfulb...@hotmail.com wrote: I am using gvim 7.3 on Windows 7. I need to select the four x's in the following sample text. I positioned the cursor on the upper left 'x', then typed 'v' to enter visual mode. So far so good, but when I move the

Re: mapping a function with key

2013-02-08 Thread Marcin Szamotulski
On 15:29 Fri 08 Feb , Rudra Banerjee wrote: So, now it looks like map F12 :execute Insrt_frame() function! Insrt_frame() :0put='\begin{frame}' :put='\frametitle{Motivation}' endfunction and still not working. Functions should be called not executed: map f12 :call Insrt_fram()

Re: Visual Mode Selection in Windows 7

2013-02-08 Thread Dan Wierenga
On Fri, Feb 8, 2013 at 10:19 AM, Roy Fulbright rfulb...@hotmail.com wrote: I am using gvim 7.3 on Windows 7. I need to select the four x's in the following sample text. I positioned the cursor on the upper left 'x', then typed 'v' to enter visual mode. So far so good, but when I move the

Re: Visual Mode Selection in Windows 7

2013-02-08 Thread Chris Collision
On Fri, Feb 8, 2013 at 10:56 AM, Dan Wierenga dwiere...@gmail.com wrote: On Fri, Feb 8, 2013 at 10:19 AM, Roy Fulbright rfulb...@hotmail.comwrote: I am using gvim 7.3 on Windows 7. I need to select the four x's in the following sample text. I positioned the cursor on the upper left 'x',

Re: Script to send selected text from Vim to R in Ubuntu

2013-02-08 Thread Josef Montag
On Thursday, February 7, 2013 12:54:26 AM UTC+1, toothpik wrote: On Tue, Feb 05, 2013 at 08:45:10AM -0800, Josef Montag wrote: Hi all, I have started using Ubuntu and try to figure out ways and tools for a simple script. I use Vim to write code for R and need a script that

RE: Visual Mode Selection in Windows 7

2013-02-08 Thread Roy Fulbright
Date: Fri, 8 Feb 2013 13:39:25 -0500 Subject: Re: Visual Mode Selection in Windows 7 From: dfishburn@gmail.com To: vim_use@googlegroups.com On Fri, Feb 8, 2013 at 1:19 PM, Roy Fulbright rfulb...@hotmail.com wrote: I am using gvim 7.3 on Windows 7. I need to select the four x's

RE: Visual Mode Selection in Windows 7

2013-02-08 Thread Roy Fulbright
Date: Fri, 8 Feb 2013 11:01:19 -0800 Subject: Re: Visual Mode Selection in Windows 7 From: cfcollis...@gmail.com To: vim_use@googlegroups.com On Fri, Feb 8, 2013 at 10:56 AM, Dan Wierenga dwiere...@gmail.com wrote: On Fri, Feb 8, 2013 at 10:19 AM, Roy Fulbright rfulb...@hotmail.com

Re: vim: is there an easy way to visual select the just pasted texts?

2013-02-08 Thread Chris Lott
re: Selecting pasted text. If you do a search for re-selecting block in different buffer you will see some more advice on this topic. c -- Chris Lott ch...@chrislott.org -- -- You received this message from the vim_use maillist. Do not top-post! Type your reply below the text you are replying

RE: mapping a function with key

2013-02-08 Thread John Beckett
rudrab wrote: I am trying to put insrt_frame at the current cursor position when F12 is pressed what should i do? map F12: call insrt_frame() fun! insrt_frame() :put='\begin{frame}' :put='\frametitle{Motivation}' :put='\end{frame}' endf Here is the complete code. In normal mode,

RE: Visual Mode Selection in Windows 7

2013-02-08 Thread John Beckett
Roy Fulbright wrote: I tried hjkl, but they lose the selection the same as the arrow keys. Please delete excessive text when replying. Don't quote a chain of previous messages, and make sure to delete email addresses. David Fishburn mentioned the two alternatives: (1) Press v then move cursor

Re: Getting gf to support custom remote paths similar to scp://

2013-02-08 Thread David Barnett
On Thursday, December 6, 2012 7:45:16 AM UTC-8, Charles Campbell wrote: Check out how netrw does it -- see netrwPlugin.vim . Essentially, it involves making an appropriate autocmd. Nope, I already made the necessary autocmd (as I mentioned above), but it turns out it's a limitation of vim

Re: Omnicomplete shows strange behavior when preview window is enabled

2013-02-08 Thread Benjamin Fritz
The attached vimrc.vim file (when used as the .vimrc, with no non-standard plugins), can reproduce the issue on the attached test.c file with the attached tags file. Open the test.c file, go to line 62 (return 3), and insert a new line above it. Type foo=FunC-XC-O to get the completion menu. Then

Re: Omnicomplete shows strange behavior when preview window is enabled

2013-02-08 Thread Benjamin Fritz
On Fri, Feb 8, 2013 at 9:32 PM, Benjamin Fritz fritzophre...@gmail.com wrote: The attached vimrc.vim file (when used as the .vimrc, with no non-standard plugins), can reproduce the issue on the attached test.c file with the attached tags file. gmail is being a huge pain. tags file

Re: Omnicomplete shows strange behavior when preview window is enabled

2013-02-08 Thread Ben Fritz
On Friday, February 8, 2013 9:37:18 PM UTC-6, Ben Fritz wrote: On Fri, Feb 8, 2013 at 9:32 PM, Benjamin Fritz fritzophre...@gmail.com wrote: The attached vimrc.vim file (when used as the .vimrc, with no non-standard plugins), can reproduce the issue on the attached test.c file with

ios vim and plugins

2013-02-08 Thread Bee
There is a version of vim for the ios (iphone, ipad). It has a .vim directory, I can move files into it, but can not create new directories. Is it possible to use plugins without them being in the standard 'plugin' directory? Bill -- -- You received this message from the vim_use maillist. Do

Re: ios vim and plugins

2013-02-08 Thread Marcin Szamotulski
You can source them: :so[urce] {file} If you have there a .vimrc file then you could write autocommands to do that. This way you can emulate ftplugin directory. Vim also has the autoload directory, and I thing sourcing files inside them should also work. Marcin On 19:46 Fri 08 Feb , Bee