Re: Clear an environment variable

2009-07-22 Thread _sc_
On Wednesday 22 July 2009 9:53 pm, Chris Sutcliffe wrote: > > >> Is it possible to clear an environment variable via vim script?  I've > >> tried: > >> > >> let $MvVar = > >> > >> but vim complains.  I've also tried: > >> > >> unlet $MyVar > >> > >> with no success. > > > > did you define MyVar

Re: Clear an environment variable

2009-07-22 Thread _sc_
On Wednesday 22 July 2009 8:20 pm, Chris Sutcliffe wrote: > > Is it possible to clear an environment variable via vim script? I've tried: > > let $MvVar = > > but vim complains. I've also tried: > > unlet $MyVar > > with no success. did you define MyVar with a dollar sign? or are you suff

Re: Problem with VIM-7.2 install

2009-07-17 Thread _sc_
On Friday 17 July 2009 8:50 am, MSW wrote: > > Ran configure then make test. Get this same message when running > from the src directory: did you run make by itself to build vim? sc --~--~-~--~~~---~--~~ You received this message from the "vim_use" maillist. F

Re: Why does formatoptions flag "l" keep getting set with .conf files?

2009-07-02 Thread _sc_
On Thursday 02 July 2009 4:29 pm, Jeffery wrote: > > The :verbose output. > > > formatoptions=tcql > Last set from /usr/share/vim/vim70/scripts.vim > > > Thanks! That sure looks like a solid hint. > > > About netrw. I had to google what "netrw" was. I am fairly > certain I'm no

Re: Why does formatoptions flag "l" keep getting set with .conf files?

2009-07-02 Thread _sc_
On Thursday 02 July 2009 2:28 pm, Jeffery wrote: > > The formatoptions=tcql when I open .conf files. The "l" is the > problem. From the vim online help: > > > "l" Only break a line if it was not longer than 'textwidth' when the > insert > started. > > > This is kind of annoying, and I

Re: mapping to cycle colorschemes?

2009-07-01 Thread _sc_
On Wednesday 01 July 2009 2:40 pm, Keith Kaple wrote: > > Anyone have a script that can be mapped to perhaps a function key > that will cycle all available colorschemes? you'll get a lot of responses to that :) my favorite is one that started with a thread on this very list: http://home.sw

Re: Anyshortcut for going back to previous searches?

2009-07-01 Thread _sc_
On Wednesday 01 July 2009 11:52 am, googler wrote: > > Suppose I am editing/viewing a file and searching for different > regular expressions in the file, for example, issuing commands "/ > abcd", "/efgh", "/ijkl" and "/mnop". Since my last search was for > "mnop", that's what I have highlighted c

Re: Vim tabs and buffers

2009-06-30 Thread _sc_
On Sunday 28 June 2009 4:28 pm, Jason Axelson wrote: > > Personally, I prefer to use :set confirm cool option -- i like it -- thanx for pointing it out sc --~--~-~--~~~---~--~~ You received this message from the "vim_use" maillist. For more information, visit h

Re: Hijacked threads

2009-06-10 Thread _sc_
On Wednesday 10 June 2009 1:17 pm, Raúl Núñez de Arenas Coronado wrote: > > Saluton Teemu :) > > On Wed 10 Jun 2009 19:59 +0200, Teemu Likonen dixit: > > On 2009-06-10 12:58 (-0400), Charles Campbell wrote: > > > >> So, an unrelated topic, no semantics in transition, no acknowledgement > >> of

Re: after quitting vim, show no tilde lines on console

2009-06-09 Thread _sc_
On Tuesday 09 June 2009 4:52 pm, Matt Wozniski wrote: > > On Tue, Jun 9, 2009 at 5:00 PM, Florian Breitwieser wrote: > > Thanks for the fast answers. I reread the :help xterm-screens. As I > > understand it, xterm|rxvt has a main and alternate screen. If your terminal > > supports it, and you wan

Re: Hello,Every one,I can use the "textwidth" option !

2009-06-05 Thread _sc_
On Friday 05 June 2009 11:37 am, Ben Fritz wrote: > > Pan Xiaoku wrote: > > Thanks! with you help, I have found the problem: > > the option "formatoption" is set to "croql" ,in which the "l" means that > > long lines are not broken in insert model . > > > > The "c" (and lack of a "t") also mean

Re: Open directly through ftp with macro or similar

2009-05-27 Thread _sc_
On Wednesday 27 May 2009 9:22 am, alberto wrote: > Thank you Charles, > > but it is not what I need. That's why what I want is avoid browsing, the > code is in a lot of different directories but I have the list of the source > code I must modify. > I don't know if it's possible to set up a map k

Re: Netrw command move is not executable

2009-05-24 Thread _sc_
On Sunday 24 May 2009 9:46 pm, wilson.m@convergys.com wrote: > I am using Vim 7.2 on Windows. When I use netrw.vim to move a file, first > mt to specify the target, > mf to mark the file and mm to move the file, an error message shows like > "Netrw command(move) is not executable". > I do n

Re: Announcement: Vim Recipes - Free Cookbook

2009-05-18 Thread _sc_
On Monday 18 May 2009 3:24 pm, Gene Kwiecinski wrote: > > Am I the only one who uses 'ZZ' to write/quit? maybe -- ZZ, which is formed with shift-z, is way too close to ctrl-z, which does mysterious things to my session -- i avoid it like the plague > 2 adjacent keys, > > > > vs > >

Re: gvim opens a file in directory window

2009-05-16 Thread _sc_
On Saturday 16 May 2009 4:10 am, Sabo wrote: > how can i prevent that gvim opens a file in directory window ? > > if i show directory and i doubleclick a file. this file is opened in > directory window. > Is it possible with a setting that this file is opened in an another window ? if i unders

Re: How to save recordings in vimrc

2009-05-14 Thread _sc_
On Thursday 14 May 2009 1:29 am, Jason Axelson wrote: > > On Wed, May 13, 2009 at 8:19 PM, _sc_ wrote: > > to access them, read up on "redir" -- save the output of > > > >:reg > > > > using redir, then make a module to be sourced that contai

Re: How to save recordings in vimrc

2009-05-13 Thread _sc_
On Thursday 14 May 2009 12:51 am, Aman Jain wrote: > > Is there a way to save recordings, as I often need to retype all the > useful recordings(e.g commenting a line) whenever I open a vim > session. there may be other ways, but one thing i like to do is to create modules for specific purposes

Re: gVim Find & Replace shortcut keys

2009-05-10 Thread _sc_
On Sunday 10 May 2009 5:53 pm, Alain Forget wrote: > > I've been using gVim in Windows for a year now, but there is one thing I've > been unable to do (or figure out via Googling): > > How can I set the shortcut key Ctrl-F to display the Edit->Find... dialog > box, and Ctrl-H to display the Edit

Re: Balking on Backspace

2009-05-07 Thread _sc_
On Thursday 07 May 2009 5:47 pm, Tim Chase wrote: > > > I am running Windows 7 RC and when I have a vimrc file the > > backspace stops working for me. I get the following message > > regardless of what mode I'm in: > > > > "E319: Sorry, the command is not avialabe in this version" > > Your cu

Re:

2009-05-07 Thread _sc_
On Thursday 07 May 2009 5:10 pm, Steven Schermerhorn wrote: > I am running Windows 7 RC and when I have a vimrc file the > backspace stops working for me. I get the following message > regardless of what mode I'm in: > > "E319: Sorry, the command is not avialabe in this version" > > Any ideas?

Re: Upgraded Ubuntu and perl-support.vim no longer works.

2009-05-03 Thread _sc_
On Sunday 03 May 2009 8:07 pm, Bill Moseley wrote: > > On Sun, May 03, 2009 at 08:33:45PM -0400, Matt Wozniski wrote: > > Things to check: > > > > Does > > :map \rs > > show some map bound to that combination? If not, something must be > > installed wrong (or your has changed). > > Says "No

Re: vim sets wrong colors when choosing colorscheme

2009-04-27 Thread _sc_
On Monday 27 April 2009 11:55 am, Charles Campbell wrote: > > Torsten A. wrote: > > Hello everyone, > > > > I checked at vim color scheme test for different color schemes and > > downloaded a few. But when ever I choose some color scheme it doesn't > > look even close to whatever scheme I just do

Re: lcd function and netrw

2009-04-25 Thread _sc_
On Saturday 25 April 2009 2:57 pm, _sc_ wrote: > > the reason i recommend an upgrade is that very recently there was a > bugfix to netrw that addressed the autochdir option -- i had turned > 'autochdir' on, and it was causing problems for me in netrw -- i > started usin

Re: lcd function and netrw

2009-04-25 Thread _sc_
On Saturday 25 April 2009 1:50 pm, Manfred Lotz wrote: > > Hi, > I had > autocmd BufEnter * lcd %:p:h > in my ~/.vimrc > > However, when using netrw this yields an error. > > > > My workaround is: > > function Lcd() > let b = bufname("%") > let pat = ":\/\/" > > if ! (b =~

Re: customize netrw, remove info header

2009-04-22 Thread _sc_
On Wednesday 22 April 2009 2:38 pm, Charles Campbell wrote: > > Brendon Gleeson wrote: > > how do i hide this part of the nerw file browser?: > > > > < HIDE > > > " > > > > " Netrw Directory Listing > > (netrw v114) > >

Re: Cycle easily through custom schemes ...

2009-04-19 Thread _sc_
On Sunday 19 April 2009 1:25 pm, Kiffin Gish wrote: > > Elegant scripting! However, I was hoping more for some kind of hot key > from within vim that I could hit in series viewing the color schemes > quickly. i got this from this very list, and i *think* it is enshrined somewhere as a tip: nnor

Re: Difference behavior with my own help filetype and the offical one's of tag.

2009-04-13 Thread _sc_
On Monday 13 April 2009 11:41 pm, Tony Mechelynck wrote: > > On 14/04/09 06:30, _sc_ wrote: > > > > On Monday 13 April 2009 10:01 pm, Yue Wu wrote: > >> > >> On Tue, 14 Apr 2009 10:13:38 +0800, Tony Mechelynck wrote: > > By using "gvim ver

Re: Difference behavior with my own help filetype and the offical one's of tag.

2009-04-13 Thread _sc_
On Monday 13 April 2009 10:01 pm, Yue Wu wrote: > > On Tue, 14 Apr 2009 10:13:38 +0800, Tony Mechelynck wrote: > > >> > >> afaik all help files specify its own modeline. try :help > >> and go to the last line, you see: > >> > >> vim:tw=78:fo=tcq2:isk=!-~,^*,^\|,^\":ts=8:ft=help:norl: > >> > >> S

Re: Difference behavior with my own help filetype and the offical one's of tag.

2009-04-13 Thread _sc_
On Monday 13 April 2009 5:02 pm, Yue Wu wrote: > > Ben Fritz, Tony Mechelynck: > > After I check, you are right, it's an iskeyword issue, but I don't know > why my > help file has the different settings for iskeyword? It's a file not > located in > $runtimepath/doc, it's in other dir. now I

Re: trying to re-map CTRL-w_= for "vertical resize"

2009-04-11 Thread _sc_
On Saturday 11 April 2009 5:11 pm, Michael R. Hines wrote: > > Greetings, > > I'm trying to remap the key sequence Contrl + W + = (as it says in the > vim documentation) for automatically resizing all of the split > windows. > > I've tried: > > map <=> > > But when I press F2 this simply mov

Re: Changing title of a konsole and back again

2009-04-07 Thread _sc_
On Tuesday 07 April 2009 11:33 am, Henry Bush wrote: > > I want to save the title of the konsole window when i enter vim, then > return it back afterwards. The code in my .vimrc atm looks like: > > let $ORIGKONSOLETITLE = system("dcop $KONSOLE_DCOP_SESSION sessionName") > autocmd BufReadPost

Re: Finding the length of a buffer in a script

2009-04-02 Thread _sc_
On Thursday 02 April 2009 5:43 pm, Spiros Bousbouras wrote: > > How can you find from within a script how many lines > the current buffer has ? One solution is > len(getbufline(bufname('%') , 1 , '$')) > but this seems wasteful. one way would be to let l = line('$') sc --~--~-~-

Re: buffer or tab list in quick fix or location list?

2009-03-31 Thread _sc_
On Tuesday 31 March 2009 1:38 pm, Brian Dunn wrote: > > hi list. > is there a way to get a quick fix type window with links to all of my > tabs or buffers? > run :ls to list the buffers, > remembering the number, > run :b with the number, > just seems like too many steps. the easiest, leanest me

Re: The list policy, AGAIN

2009-03-29 Thread _sc_
On Sunday 29 March 2009 1:36 pm, Tony Mechelynck wrote: > Maybe emails would be more homogeneously formatted if we systematically > gave scathing dessing-downs to anyone deviating from the rules. But do > we want to? I mean, what do we prefer? Civilized language or adherence > to the rules? I'

Re: Save and quit all gvim sessions and restore them all on startup

2009-03-14 Thread _sc_
On Saturday 14 March 2009 5:59 pm, ggrothendieck wrote: > > One thing I really like about Firefox is that one can save and quit so > that when one > restarts firefox after rebooting, say, one is returned to the exact > same set of tabs one > had before. > > I often have many gvim processes going

Re: can I display metadata next to each line based on line contents?

2009-03-11 Thread _sc_
On Wednesday 11 March 2009 12:33 pm, Rahul wrote: > > Is there a way in vim to somehow display metadata next to a line. Just > the way, say, set nu displays line-numbers next to a line? This is > useful info. but not a part of the file contents. > > Goal: My files have blocks of atom positions l

Re: how to automagically run a "syn off" the moment I start "editing" a file.

2009-03-10 Thread _sc_
On Tuesday 10 March 2009 1:51 am, RPN wrote: > > On Mar 9, 5:43 pm, "Charles E. Campbell, Jr." > wrote: > > > > You could use InsertEnter and InsertLeave autocmds.Won't affect normal > > mode changes, though. > > Thanks Charles. That just might work. > You mean to say commands like "dd" e

Re: Save compiler output from :make to a file

2009-02-26 Thread _sc_
On Thursday 26 February 2009 11:46 am, Gary Johnson wrote: > > On 2009-02-26, Ben Fritz wrote: > > I would like to call :make from Vim and view the errors in the > > quickfix window, but also have the output saved for later use. Is > > there a way to do this? > > Following the examples in ":help

Re: Vim Tips Wiki - Remove author?

2009-02-24 Thread _sc_
On Tuesday 24 February 2009 2:34 am, Tom wrote: > > > I wrote a hackish ruby script that converts the xml dump to a > > tagged help file. > > The script can be downloaded from here if somebody is interested. The > output isn't perfect but it's okay for me. > http://github.com/tomtom/vimtlib/blob

Re: EOL vs lbr when writing prose

2009-02-23 Thread _sc_
On Monday 23 February 2009 11:35 am, Tom wrote: [...] > Does somebody know if the breakindent patch is included in the > vim_extended git repo? no at the moment it includes: feat/rel-line-numbers feat/float-point-ext feat/lua feat/code-check feat/var-tabstops feat/emb-c

Re: Using GVim instead of Vim on Windows

2009-02-21 Thread _sc_
On Saturday 21 February 2009 6:31 pm, John Little wrote: > > On Feb 21, 12:02 am, Tony Mechelynck > wrote: > > So the > > criminal offence, if any (which remains to be seen), might be _teaching_ > > COBOL or _requiring_ its use, but not _using_ it. > > Normal coding is not use in isolation, one

Re: vim file lock

2009-02-21 Thread _sc_
On Saturday 21 February 2009 7:30 am, Alexander Schrijver wrote: > > Hi, > > Vim doesn't seem to do file locking. What is the reason for this? > > I also noticed this on the/a todo list (from 2004): > > 8 Add file locking. Lock a file when starting to edit it with flock() > or > fcntl()

Re: whichwrap h and k are "not recommended"?

2009-02-18 Thread _sc_
On Wednesday 18 February 2009 8:39 pm, Ben Fritz wrote: > > On Feb 18, 4:14 pm, Wincent Colaiuta wrote: > > I'm fairly new to Vim and I just found out about the "whichwrap" > > setting. > > > > In the help it says that adding "h" and "l" to the list is "not > > recommended". [...] > wrapping to

Re: E806: Using Float as String

2009-02-16 Thread _sc_
On Monday 16 February 2009 9:24 am, Maxim Kim wrote: > > On 16 фев, 18:13, "Agathoklis D. Hatzimanikas" > wrote: [...] > BTW how can I find out patch level of my vim? > I can't see it in :version output. it's there if you have any in mine for example the first few lines look like: VIM - Vi I

Re: How long is too long for .vimrc?

2009-02-08 Thread _sc_
On Sunday 08 February 2009 12:57 pm, R. Hicks wrote: > > I am not running into problems at all. I was just curious. I am a basic > user of Vim and my .vimrc is 305 lines long (including comments and > blank lines). Is there a point where you modularize it? I am not sure I > see the point there

Re: Vim Tutorial

2009-02-02 Thread _sc_
On Monday 02 February 2009 1:18 pm, Garrett Whelan wrote: > I would like to create an interactive vim tutorial using vim script to > introduce the main concepts(modes, regular expresssions, etc.). I read > somewhere that vim comes with a tutorial, but I can't find anything. Typing > > :help t

Re: Navigating complicated file hierarchies

2009-01-20 Thread _sc_
On Tuesday 20 January 2009 12:37 pm, Matt Wozniski wrote: > > On Tue, Jan 20, 2009 at 1:03 PM, Ben Fritz wrote: > > > > On Jan 8, 1:19 pm, itai wrote: > > > >> 4. The vim help files seem to recommend against using 'autuchdir'. I > >> use the following: > >> autocmd BufEnter * lcd %:p:h > > >

Re: top/bottom posting [Re: an independent Chinese IME is available]

2009-01-06 Thread _sc_
> > I have not used any standalone mail client for years. I read this > thread on firefox, by the way. > > To reply, I simply did copy/paste to vim, from where I did another > copy/paste back to browser. > > Among other things, I have never lost my typing :) you might want to check out the "It

Re: Navigating complicated file hierarchies

2009-01-05 Thread _sc_
On Monday 05 January 2009 1:29 pm, _sc_ wrote: > if you have the benefit of konsole supplying your bash > shell, you can have many shells open in the same window, > each with its own path -- ctrl-shift-n will open new shells, > and shift-cursor-left or shift-cursor-right will navigate

Re: How to subscribe to vim-dev mailing list?

2009-01-05 Thread _sc_
On Monday 05 January 2009 6:02 pm, anhnmncb wrote: > > > > >> vim-dev-subscr...@vim.org > > > > I also tried it, but got no any response :( it may take some time to percolate through -- did you try waiting a day or two? sc --~--~-~--~~~---~--~~ You received t

Re: How to subscribe to vim-dev mailing list?

2009-01-05 Thread _sc_
On Monday 05 January 2009 5:31 pm, anhnmncb wrote: > > I have tried sent mails to vim_dev{-,_,+}subscr...@googlegroups.com via > opera's mail client but failed always, must I have a gmail account to > subscribe it? i don't believe it's necessary to have a google account to subscribe to vim-

Re: Navigating complicated file hierarchies

2009-01-05 Thread _sc_
On Monday 05 January 2009 5:01 am, Per Thulin wrote: as i attempt to respond to this post no-one else has yet posted a reply -- i am sure this will change, and others' replies may be more to your liking, but here goes > I use vim for all my coding and text editing needs. Until now I've > only u

Re: vim without esc and control keys

2008-12-31 Thread _sc_
On Wednesday 31 December 2008 5:14 pm, anhnmncb wrote: > > On 2008-12-31, Ben Kim wrote: > > > > > > Dear Vimmers, > > > > I use putty to ssh into my machine from a windows mobile device (wing). It > > doesn't have esc and control keys. I'd like to know whether anyone used > > vim without esc a