Re: How to open the previous tag or windows ?

2010-08-28 Thread coolesting
The answer in this link http://vim.1045645.n5.nabble.com/Save-session-and-view-td1178657.html , maybe help someone in the future. -- View this message in context: http://vim.1045645.n5.nabble.com/How-to-open-the-previous-tag-or-windows-tp2795479p2795780.html Sent from the Vim - General mailin

Writing a configuration file in vim script

2010-08-28 Thread Gusman
Dear All, Currently I try to make my custom function in Vim, in this case I need to create/write/read/delete a configuration file contains the global variable value. This is my question: "Can I create/write/read/delete file using vim script as other programming language do?" Thank you for you re

Re: Preventing accidental command-line pastes from destroying the universe

2010-08-28 Thread Ben Fritz
On Aug 27, 10:05 pm, Tony Mechelynck wrote: > > Huh? q: means "open the command-line history window", it has nothing to > do with pasting. What do I miss? > Marc was suggesting to use the command-line window instead of the normal command-line, allowing pasting into a semi-normal Vim buffer (whi

Re: [patch] fixed grammatical errors in vim help files using LanguageTool

2010-08-28 Thread Xell Liu
Thanks very much for your work. BTW, in my case I just download the openoffice extension oxt and unzip it to get the binary; there is no need to build it if you don't want to. And I hope some improvements could be made to the plugin such as hitting enter key to jump to the error line. Regards, Xe

Re: Run lgrep then immediately open Location list

2010-08-28 Thread BC
On Aug 28, 3:50 pm, Britton Kerin wrote: > This command might work for you: > >      :command! -nargs=+ MyLgrep execute 'silent lgrep! ' | lopen 42 > That command looked so nifty that I thought adapting it to :helpgrep might work well: :command! -nargs=+ MyHelp execute 'silent lhelpgrep ' |

Re: [patch] fixed grammatical errors in vim help files using LanguageTool

2010-08-28 Thread Jakson A. Aquino
2010/8/28 Dominique Pellé : > Bram Moolenaar wrote: > >>> Although it gives many false positives when checking Vim help files, >>> it's still useful. Perhaps someone better than I am in vim script >>> could come up with a useful Vim plugin to integrate languagetool >>> in Vim? >> >> The Vim spell c

Re: Netrw and new file through ftp connection

2010-08-28 Thread Charles E Campbell Jr
epanda wrote: now I am using a .netrc encrypted and I have done a func to decrypt it before using your script. Just last bugs, I see 2 blank lines with v141a (little bug). In my experience this was due to hiding ./ and ../ from the listing; I put a command to remove any and all blank lines

Re: How to open the previous tag or windows ?

2010-08-28 Thread Tony Mechelynck
On 28/08/10 18:32, coolesting wrote: Hi, how to open the previous tag or windows when the vim start without existing process or windows of vim . such as , i quit the vim when i have the tag windows , test1.html, test2.html, test3.html . so, after a moment, i restart the vim that will be aut

Re: Run program with spaces in path

2010-08-28 Thread Tony Mechelynck
On 28/08/10 18:23, Jakson A. Aquino wrote: Hi! How can a Vim script run a program which has spaces in its path? For example, the following "system" command fails with the message "'C:\Program' is not recognized as an internal or external command, operable program or batch file": let rcmd = '"C:

Re: vim can't display characters properly(in other languages besides english).....

2010-08-28 Thread Tony Mechelynck
On 28/08/10 21:43, BC wrote: On Aug 28, 1:17 am, aksr wrote: windows xp sp2 latest vim (7.3) --- when i change the language for my keyboard(to serbian latin): if i put ":set encoding=latin1" then i get this: for chars(č,ć,š,đ,ž) i get(c,c,BS,d,BS): č-c, ć-c, š-(black square), đ- d, ž-(bla

Re: Netrw and new file through ftp connection

2010-08-28 Thread Charles E Campbell Jr
epanda wrote: let g:netrw_ftp_cmd= "ftp -s:".$home.".netrc" When you use it, try :eftp://ftpperso.free.fr/whatever/path Regards, Chip Campbell Ok it works but there is a confusion due to the help that is not updated yet. if the user is under windows, the netrc's content should be l

Re: Run lgrep then immediately open Location list

2010-08-28 Thread Oivvio Polite
On Sat, Aug 28, 2010 at 12:50:38PM -0700, Britton Kerin wrote: > :command! -nargs=+ MyLgrep execute 'silent lgrep! ' | lopen 42 Thank you Britton! This bit of magic works remarkably well. Unfortunatly I've just realized that vimgrep/lgrep don't play well with my newfound love NERDTree. Oivv

Re: [patch] fixed grammatical errors in vim help files using LanguageTool

2010-08-28 Thread Dominique Pellé
Bram Moolenaar wrote: >> Although it gives many false positives when checking Vim help files, >> it's still useful. Perhaps someone better than I am in vim script >> could come up with a useful Vim plugin to integrate languagetool >> in Vim? > > The Vim spell checker is purely word based.  A gramm

Re: Error running Windows gvim.exe from Cygwin

2010-08-28 Thread Tony Mechelynck
On 26/08/10 19:06, Gary Johnson wrote: I can run Vim 7.3f from a Cygwin 1.5 bash prompt like this: $ /cygdrive/c/Program\ Files/Vim/vim73f/gvim.exe but when I try to run Vim 7.3.2 from a Cygwin 1.7 bash prompt the same way, i.e., $ /cygdrive/c/Program\ Files/Vim/vim73/gvim.exe I get

Re: Run program with spaces in path

2010-08-28 Thread Marc Weber
Excerpts from Jakson A. Aquino's message of Sat Aug 28 19:08:20 +0200 2010: > I solved the problem with the following workaround: The usual way is by escaping. See :h shellescape() Marc Weber -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the te

Re: Fwd: gvim window auto shrinks in openSUSE

2010-08-28 Thread Daniel Nelson
On Friday 27 August 2010 8:52:49 pm member thudfoo wrote: > On Fri, Aug 27, 2010 at 5:52 PM, Daniel Nelson wrote: > > On Friday 27 August 2010 7:35:53 am Vivek Bhat wrote: > >> Hasn't any one else faced this problem... ? > > > > This seems to only be an issue with certain window managers. It loo

Re: Info command in vim

2010-08-28 Thread Britton Kerin
On Fri, Aug 27, 2010 at 5:06 AM, robert song wrote: > Hi, Britton. > >> This seems to work nicely to do something I've wanted for a while. >> I have to admit I don't quite see why it works.  What's giving us >> the new window rather than just dumping the info command output >> into the current buf

Re: Run lgrep then immediately open Location list

2010-08-28 Thread Britton Kerin
On Fri, Aug 27, 2010 at 6:13 AM, Oivvio Polite wrote: > I'm moving on from vim basics to the fun stuff. Just found out about vimgrep > et. al. > I've set grepprg to ack-grep and after executing :lgrep I'd like to go > immediately to the "Location list" buffer, without having to press enter > afte

Re: vim can't display characters properly(in other languages besides english).....

2010-08-28 Thread BC
On Aug 28, 1:17 am, aksr wrote: > windows xp sp2 > latest vim (7.3) > --- > when i change the language for my keyboard(to serbian latin): > > if i put ":set encoding=latin1" > then i get this: > for chars(č,ć,š,đ,ž) i get(c,c,BS,d,BS): č-c, ć-c, š-(black square), đ- > d, ž-(black square) > ..

Re: vim can't display characters properly(in other languages besides english).....

2010-08-28 Thread BC
On Aug 28, 1:17 am, aksr wrote: > in other programs for text editing(notepad, notepad++,PSPad, > UltraEdit) everything works as it should... > -- > when i change the language to greek every char is displayed as > questionmark > every language is displayed bad, only english is displayed properly..

Re: Netrw and new file through ftp connection

2010-08-28 Thread epanda
now I am using a .netrc encrypted and I have done a func to decrypt it before using your script. Just last bugs, I see 2 blank lines with v141a (little bug). Major bug, when I click on a binary jpeg or whatever file, the double left mouse mapping seems to fails. I cannot return to the upper dir

Re: Netrw and new file through ftp connection

2010-08-28 Thread epanda
> >   let g:netrw_ftp_cmd= "ftp -s:".$home.".netrc" > > When you use it, try > >   :eftp://ftpperso.free.fr/whatever/path > > Regards, > Chip Campbell Ok it works but there is a confusion due to the help that is not updated yet. if the user is under windows, the netrc's content should be like th

Re: Netrw and new file through ftp connection

2010-08-28 Thread Charles E Campbell Jr
epanda wrote: Anyway, if g:netrw_ftp_cmd has -s: in it (or -S:), it will assume that its got login information like a .netrc. I was able to avoid manual entry of the userid+password that way. Hum, I have tested v141a with this line in my _vimrc let g:netrw_ftp_cmd= "ftp -s:" . $home .

Re: Run program with spaces in path

2010-08-28 Thread Jakson A. Aquino
On Sat, Aug 28, 2010 at 1:23 PM, Jakson A. Aquino wrote: > Hi! > > How can a Vim script run a program which has spaces in its path? For > example, the following "system" command fails with the message > "'C:\Program' is not recognized as an internal or external command, > operable program or batch

Re: Controlling the cusor in the file browser

2010-08-28 Thread jyk271
Many thanks Chip Campbell , I had tried Ctrl+^ , but that of course only takes one to the top of the list . ` :Rex ` is great - Long Live The King ! All the best , yjk271 On Aug 26, 10:46 pm, Charles Campbell wrote: > jyk271 wrote: > > > From the command line I enter `vim`. > > I am greeted

How to open the previous tag or windows ?

2010-08-28 Thread coolesting
Hi, how to open the previous tag or windows when the vim start without existing process or windows of vim . such as , i quit the vim when i have the tag windows , test1.html, test2.html, test3.html . so, after a moment, i restart the vim that will be automatically open the tag as test1.html

Run program with spaces in path

2010-08-28 Thread Jakson A. Aquino
Hi! How can a Vim script run a program which has spaces in its path? For example, the following "system" command fails with the message "'C:\Program' is not recognized as an internal or external command, operable program or batch file": let rcmd = '"C:\Program files\R\R-2.11.1\bin\Rcmd.exe" BATCH

Re: How to get Windows registry key value? Perl?

2010-08-28 Thread Jakson A. Aquino
On Sat, Aug 28, 2010 at 8:47 AM, Jakson A. Aquino wrote: > Hi, > > I'm unsuccessfully trying to retrieve a value ("InstallPath") from > Windows XP registry. Is it possible to use vimscript for this? The > code below doesn't work: > > perl << EOF > sub getrpath > { >  use Win32::Registry; >  my ($r

Re: vim can't display characters properly(in other languages besides english).....

2010-08-28 Thread John Matthewman
On 8/28/10, aksr wrote: > windows xp sp2 > latest vim (7.3) > --- > when i change the language for my keyboard(to serbian latin): > > if i put ":set encoding=latin1" > then i get this: > for chars(č,ć,š,đ,ž) i get(c,c,BS,d,BS): č-c, ć-c, š-(black square), đ- > d, ž-(black square) > ..and if i

Re: Using vim as Python-IDE

2010-08-28 Thread Reid Thompson
On 8/28/2010 11:03 AM, Jeffrey 'jf' Lim wrote: On Sat, Aug 14, 2010 at 4:58 AM, Reid Thompson wrote: On Fri, 2010-08-13 at 22:53 +0200, Marc Weber wrote: Excerpts from meino.cramer's message of Fri Aug 13 21:15:13 +0200 2010: Hi, for developing python scripts I want to "convert" my vim into

Re: Using vim as Python-IDE

2010-08-28 Thread Jeffrey 'jf' Lim
On Sat, Aug 14, 2010 at 4:58 AM, Reid Thompson wrote: > On Fri, 2010-08-13 at 22:53 +0200, Marc Weber wrote: >> Excerpts from meino.cramer's message of Fri Aug 13 21:15:13 +0200 2010: >> > Hi, >> > >> > for developing python scripts I want to "convert" my vim into a >> > a Python IDE. > > google p

Re: Spawning a new instance of Vim via OLE

2010-08-28 Thread Jeenu
On Aug 28, 5:34 pm, David Fishburn wrote: > [...] > My plugin, OutlookVim, creates a number of different public functions.   > When I want VB to do something it calls a pulic function. > > In Vim the public function checks if this Vim instance is the correct   > one. If so, continues. If not use

Re: Spawning a new instance of Vim via OLE

2010-08-28 Thread David Fishburn
On Aug 28, 2010, at 4:16 AM, Jeenu wrote: On May 7, 11:53 pm, David Fishburn wrote: I was reading :hole-interface. Is there anyway to spawn a new instance of Vim viaOLE, through some command (or anything)?OLEautomatically picks up the first already running Vim instance which supportsO

Re: Fwd: gvim window auto shrinks in openSUSE

2010-08-28 Thread Vivek Bhat
On Saturday, August 28, 2010 08:22:49 am member thudfoo wrote: > On Fri, Aug 27, 2010 at 5:52 PM, Daniel Nelson wrote: > > On Friday 27 August 2010 7:35:53 am Vivek Bhat wrote: > >> Hasn't any one else faced this problem... ? > > > > This seems to only be an issue with certain window managers. I

[SOLVE] Re: internal vim command to check file existence ?

2010-08-28 Thread Aaron Lewis
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Working fine with filereadable() and filewritable() Thanks Tom , and also Christian ;-) - -- Best Regards, Aaron Lewis - PGP: 0x4A6D32A0 FingerPrint EA63 26B2 6C52 72EA A4A5 EB6B BDFE 35B0 4A6D 32A0 irc: A4R0NL3WI5 on freenode -

How to get Windows registry key value? Perl?

2010-08-28 Thread Jakson A. Aquino
Hi, I'm unsuccessfully trying to retrieve a value ("InstallPath") from Windows XP registry. Is it possible to use vimscript for this? The code below doesn't work: perl << EOF sub getrpath { use Win32::Registry; my ($rkey); my ($var); my ($p) = "HKEY_LOCAL_MACHINE\\SOFTWARE\\R-core\\R";

Re: History doesn't work !

2010-08-28 Thread Christian Brabandt
Hi Tintin72! On Fr, 27 Aug 2010, Tintin72 wrote: > >Did you use sudo vim instead of sudo -e ? > > Yes I did. I don't know sudo -e. What it's about ? I think the problem originally was, that sudo preserved your $HOME environment variable, which may or may not be what you want but this lead to

Re: internal vim command to check file existence ?

2010-08-28 Thread Christian Brabandt
Hi Aaron! On Sa, 28 Aug 2010, Aaron Lewis wrote: > Is there any commands can be used to check if a file exists ? > command `exists` seems to be function related. > > I could not open this thread "Re: check if a file exists in vim script" > on mail-archive.com" in browser .. so

Re: internal vim command to check file existence ?

2010-08-28 Thread Tom Link
>         Is there any commands can be used to check if a file exists ? In many cases, you can use filereadable() or filewritable(). Cheers, Tom -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, v

Re: More information about the strange clipboard behaviour

2010-08-28 Thread Yue Wu
On Sat, Aug 28, 2010 at 04:24:34AM +0200, Tony Mechelynck wrote: > On 23/08/10 14:58, Raúl Núñez de Arenas Coronado wrote: > > Hi all :) > > > > A time ago I posted a message about a problem I was having with the > > clipboard and Vim 7.2. After updating to 7.3 I checked to see if the > > problem h

internal vim command to check file existence ?

2010-08-28 Thread Aaron Lewis
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, Is there any commands can be used to check if a file exists ? command `exists` seems to be function related. I could not open this thread "Re: check if a file exists in vim script" on mail-archive.com" in browser .. so plz

Spawning a new instance of Vim via OLE

2010-08-28 Thread Jeenu
(Tried to reply to http://groups.google.com/group/vim_use/browse_thread/thread/106db49151e51161/, but didn't work. And by mistake I pressed 'a' thinking it'd be "Reply to All" as in Gmail and I think it went to Dave directly. Apologies for that. I'll try to match what I wrote in my original mail)

Re: Netrw and new file through ftp connection

2010-08-28 Thread epanda
Anyway, if g:netrw_ftp_cmd has -s: > in it (or -S:), it will assume that its got login information like a > .netrc.  I was able to avoid manual entry of the userid+password that > way. Hum, I have tested v141a with this line in my _vimrc let g:netrw_ftp_cmd= "ftp -s:" . $home . "/.netrc ftpperso.f