Re: Right click = toggle fold
I just wanted to share this little mapping I've come up with: :map RightMouse LeftMouseza I find using the keyboard more useful, so I use the space bar to toggle the opening/closing of the folds: :map space za So, it becomes 'j/k/c-f/c-b', space (expand), read, space (collapse), j/k some more... Best, Swaroop
Re: How to write a map for gcc?
I am a beginner user of vim and I use it to write my C/C++ code in Ubuntu. Every time I finished a C code and I want to compile it, I have to type: :gcc -o mycfile.out mycfile.c How can I map this command to a shortcut key like F12? See `:help :make` and `:help compiler-select` and `:help :map`
Re: Getting vimscripts
Is there a way to use wget or curl to get scripts off the Vim site? Use `wget http://www.vim.org/scripts/download_script.php?src_id=$id -O foo` ? Best, Swaroop
Re: Is it possible to do spelling check for comments only?
When programming, I have to turn the spelling check off. Or it will show a lot of spelling mistakes in the code. I'd like to apply spelling check for sentences within the comment blocks only. Is it possible to configure VIM to do this? See :help spell-syntax Best, Swaroop --- www.ion.co.in
Re: tips project
Ok everyone, the project's created: * http://code.google.com/p/vimtips/ I think there's a major disadvantage in using the code.google.com wiki - it only allows people who have been added to the project to edit the wiki via the web interface (please correct me if I'm wrong). At least if it allows editing by anyone with a google id, that would be reasonable enough for anyone to contribute and it'll avoid spam, but if only people added to the project can edit the wiki, it'll become a bottleneck and will discourage anyone who wants to contribute, I don't think many people will go through that much trouble (at least going by the number of 'anonymous' tip notes). Just my 2 cents, Swaroop
Re: tips project
Fantastic! I pasted this as-is into the wiki and here are the results: * http://code.google.com/p/vimtips/wiki/1504_External_commands_on_Windows We need to replace the code tags with triple braces as a start. Also, we may want to add bullet points to the metadata fields. Here's a reference to the wiki markup: * http://code.google.com/p/support/wiki/WikiSyntax Please note that they don't use HTML markup. Instead, they use a markup language that seems to be a simplified mixture of MoinMoin and Mediawiki markup. Please see the latest version: http://www.swaroopch.info/files/200702/scrape_tip.py.txt http://www.swaroopch.info/files/200702/fetch_tips.py.txt Just run 'python fetch_tips.py 1504' and it'll all dump all the 1504 tips in text files in the Google Code wiki syntax :) Thanks, Swaroop
Re: scripts repository
On 2/23/07, Simon Jackson [EMAIL PROTECTED] wrote: in debian based linux distros, you can type the following.. apt-get install program ...and the system will download the appropriate files to install that program does vim offer anything like this? if not how hard would this be to implement? http://vim.sourceforge.net/scripts/script.php?script_id=642
Re: question about auto indenting tab width
Hi Shawn, I think set shiftwidth=4 is what you're looking for. HTH, Swaroop On 2/21/07, shawn bright [EMAIL PROTECTED] wrote: lo there all. i found where i can set my tab stop in .vimrc to 4, but i can't seem to find where to set it to 4 when i have an auto indent. for example, in python, if i do a for x in range(20): it auto indents 8 spaces and i need it to auto indent 4 any tips are appreciated. thanks -- If I had eight hours to chop down a tree, I'd spend six hours sharpening my axe -- Abraham Lincoln
Re: tips project
On 2/21/07, Tom Purl [EMAIL PROTECTED] wrote: * We can host the scripts necessary to convert the tips there * We can post examples of how the tips might look so we can gain feedback * We can take the name before some nefarious person decides to Google-squat :) So yeah, what do you guys think? Tom, please do get started! I can pitch in some help. -- Swaroop
Re: Help needed to : Start on the line where I left when I opened the file last time
Let say the file is good.text. I open the file and goto 66 line and come out by typing :wq in escape mode. Now, when I open it again, my cursor is placed in line 0. I want it to be placed in line 66. Can you please help me what configuration do I need to change to enable this feature. [I have tried Google search and could not get useful links]. Maybe http://tech.groups.yahoo.com/group/vim/message/77644 can help you. HTH, Swaroop
Re: tips project
On 2/21/07, Tom Purl [EMAIL PROTECTED] wrote: The next step is to see some conversion script ideas. If you're the type of person who can write a script like this in 15 minutes, then by all means do so and send it to me. Otherwise, we can discuss it on the mailing list unless people think its too OT. So if you're interested in helping, start scraping vim.org/tips and let us know what works for you. I've thrown a quick script together, it's not perfect but it gets all the basic details such as the tip number, author, version and content : http://pastebin.com/886040 We could enhance it to fetch additional notes as well and then just loop it from 1 to 1504 I guess :) -- Swaroop
Re: Fresh builds for Windows
On 12/17/06, Meino Christian Cramer wrote: where can I get recent builds (vim-7.0.178) for Windows ? http://sourceforge.net/project/showfiles.php?group_id=43866package_id=39721
Vim Online Error ?
Hello all, When I visit the link http://www.vim.org/scripts/script.php?script_id=273 , I see the following error : script:Can't open file: 'vs_scripts.MYI' (errno: 145) , is anybody else facing the same issue? Thanks!