Re: Multitasking in vim - is that exists?

2012-05-23 Thread Joan Miquel Torres Rigo
2012/5/23 t0d0r todor.drag...@gmail.com I use vim a lot and now I'm starting to love using tabs (:tabnew, :tabfirst...),but I found that execution of the external command in one tab blocks the whole vim process. This is my personal trick (from my ~/.vimrc): F12 - Attached Screen session:

Re: shell for vim

2012-03-07 Thread Joan Miquel Torres Rigo
2012/3/5 Eduardo Costa edu50...@gmail.com: The :shell command does not work very well. It keeps inserting control chars into the output. (Partially off-topic) If you are using the shell frequently, then you will probably appreciate the ability of switching between vim and your shell

Re: shell for vim

2012-03-07 Thread Joan Miquel Torres Rigo
on vim exit. Regards. 2012/3/7 Joan Miquel Torres Rigo joanmiq...@mallorcaweb.net: 2012/3/5 Eduardo Costa edu50...@gmail.com: The :shell command does not work very well. It keeps inserting control chars into the output. (Partially off-topic) If you are using the shell frequently

Re: Can't write to ntfs file system

2012-01-04 Thread Joan Miquel Torres Rigo
2012/1/4 Bram Moolenaar b...@moolenaar.net: One suggestion I haven't heard yet: Try changing the 'backupcopy' setting. Vim has some protection against doing bad things with root permission, that might interfere with what you are doing. If I understood well, vim is executed as non

Re: Can't write to ntfs file system

2012-01-04 Thread Joan Miquel Torres Rigo
2012/1/4 Marty Fried ma...@leftcoast-usa.com: I'm surprised to hear this - it seems to go against the philosophy that someone with root permission should know what they are doing, and is working  without protection on purpose. That's not exact: Root account should NEVER been used in

Re: Can't write to ntfs file system

2012-01-03 Thread Joan Miquel Torres Rigo
2012/1/3 Graham Lawrence gl00...@gmail.com: I thank you all for your help, but I really can't use your recommendations without screwing up something else on my system.  I have a script which runs automatically on system startup which immediately references this ntfs drive, so I must have this

Re: Can't write to ntfs file system

2012-01-03 Thread Joan Miquel Torres Rigo
2012/1/3 Marty Fried ma...@leftcoast-usa.com: I checked this on my Ubuntu 11.10 system with the default version of Vim that comes with it.  It looked exactly like your setup... [...] I was able to edit this file with vim/gvim with no problem, either with editing nor with creating the temp

Re: Can't write to ntfs file system

2012-01-02 Thread Joan Miquel Torres Rigo
2012/1/2 Graham Lawrence gl00...@gmail.com: Sorry, should have been more emphatic, I have the ntfs-3g driver.  Vim is the *only* app that has a problem writing to this device, all others do so freely.  I have to keep windows to run my printer and tv, but virtually all the files on this ntfs

Re: swap files reverting my work erroneously

2011-08-03 Thread Joan Miquel Torres Rigo
2011/8/2 David Ohlemacher dohlemac...@scisol.com: So once you have a swap file from a crash its there forever.   That is until you delete the swp manually.   And if you hit recover, your newer file contents will be wiped out by an older swap file's contents? I assumed (word chosen carefully),

Re: Vim: Warning: Input is not from a terminal

2011-04-24 Thread Joan Miquel Torres Rigo
2011/4/22 Gary Johnson garyj...@spocom.com: The point is that there is no functional reason that Vim has to use - to mean that its buffer contents are coming from stdin.  My guess is that Vim's use of - is another quirk resulting from its historical connections to vi, ex and ed. Then, how

Re: Way to clear line without removing the line?

2011-03-30 Thread Joan Miquel Torres Rigo
2011/3/31 Ben Schmidt D is quicker ;) Depends on your keyboard and skills with the shift key. ;-) Returning to original question, to clear whole line, ccESC doesn't need any skill with shift key in almost all keyboards and I dare to say is more kick than 0D. Specially if you have CapsLock and

Re: HowTo delete all lines ending in a certain string?

2011-03-13 Thread Joan Miquel Torres Rigo
2011/3/10 Christian Brabandt cbli...@256bit.org: :g/\.\.\?$/d Technically this will also delete other file names if ends in a dot (not a recommendable name, but possible at all). This other one will avoid it: :g/\(\s\.\|\/\.\)\.\?$/d Regards. -- Joan Miquel

Re: Remove trailing spaces

2011-02-07 Thread Joan Miquel Torres Rigo
2011/2/8 Michael(Xi Zhang) michaelxm...@gmail.com: Hi  , I wrote a function , it will read lines from a file, each line is a directory, after got the line, I will add filetype filter at the end of it. If user put some spaces at end of the line, it will cause error. Is there any way to

Re: Manpage inside Vim

2011-02-03 Thread Joan Miquel Torres Rigo
2011/2/3 Marco net...@lavabit.com: Anyway, in this case, if TERM is set to xterm, then less will think that terminal is fully functional. This is one of the reasons for which I dislike gvim. Fore example: :!TERM=xterm man ls Doesn't work, either. Ok. But try now with 'dumb'. Same

Re: Manpage inside Vim

2011-02-02 Thread Joan Miquel Torres Rigo
2011/2/2 Marco net...@lavabit.com: On 2011-02-02 Daniel Corrêa dnlcor...@gmail.com wrote: Try:      :tabnew | silent !man thing If i execute !man ls I get the message: WARNING: terminal is not fully functional and the displayed man page looks distorted in gvim. Why? This is not

Re: Manpage inside Vim

2011-02-02 Thread Joan Miquel Torres Rigo
2011/2/2 Marco net...@lavabit.com: On 2011-02-02 Joan Miquel Torres Rigo joanmiq...@mallorcaweb.net wrote: Gvim isn't terminal application and you probably did'nt call it from terminal Yes, I did call it from gnome-terminal, urxvt and xterm. aren't terminals and doesn't export any value

Re: caps lock invert in insert mode? (Fortran 77 editing)

2010-11-22 Thread Joan Miquel Torres Rigo
2010/11/22 Rob r0...@yahoo.co.uk: Check :help inoremap For e.g, :inoremap a A :inoremap A a Thanks, but I can't get this to work.  Am I correct in thinking that having done this, typing 'a' in insert mode should insert 'A' and vice versa? I would need to setup 52 inoremaps and possibly

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: delete only the short sentences

2010-10-31 Thread Joan Miquel Torres Rigo
2010/11/1 AMDx64BT amdx6...@gmail.com: And to keep only the sentences in the range 40-60 characters long and delete the rest? :g/^.\{,39\}$/d and :g/\(^.\{,39\}$\)\|\(^.\{61,\}$\)/d should work. On Nov 1, 4:32 am, AMDx64BT amdx6...@gmail.com wrote: I want to delete all the lines with

Re: Copying and replacing chars of a line through a regex

2010-10-26 Thread Joan Miquel Torres Rigo
2010/10/26 Fernando Basso fernandobasso...@gmail.com: However, I don't understand where in that regex line it is implied to paste line 9 to line 10. Moreover, what if I wanted to make it paste above (in line 8)? If I understood well your question, I think the answer is in :help :t... I

Re: How to execute commands at vim exiting?

2010-10-10 Thread Joan Miquel Torres Rigo
2010/10/2 ZyX zyx@gmail.com: To execute something just before vim exists, you can use `VimLeave` autocommand, [...] About capturing vim's pid: use ``let g:vimpid=system('echo -n $PPID')+0'' Thanks again for your help. I got it working, but I had a new idea: I added a dialog call to

Re: How to execute commands at vim exiting?

2010-10-10 Thread Joan Miquel Torres Rigo
, attach the screen helping user to propperly close windows and running proceses. 2010/10/10 Joan Miquel Torres Rigo joanmiq...@mallorcaweb.net: 2010/10/2 ZyX zyx@gmail.com: To execute something just before vim exists, you can use `VimLeave` autocommand, [...] About capturing vim's pid: use

Re: How to execute commands at vim exiting?

2010-10-05 Thread Joan Miquel Torres Rigo
2010/10/2 ZyX zyx@gmail.com: Ответ на сообщение How to execute commands at vim exiting?, присланное в 17:09:18 02 октября 2010, Суббота. Отправитель: Joan Miquel Torres Rigo: To execute something just before vim exists, you can use `VimLeave` autocommand, like that: autocmd

Re: How to execute commands at vim exiting?

2010-10-05 Thread Joan Miquel Torres Rigo
2010/10/5 ZyX zyx@gmail.com: From :help VimLeave: Before exiting Vim, just after writing the .viminfo file.  Executed only once, like VimLeavePre.  To detect an abnormal exit use v:dying.  When v:dying is 2 or more this event is not triggered. Note the second sentence. True. I got

Re: paste in vim creates stupid result

2010-10-05 Thread Joan Miquel Torres Rigo
2010/10/5 Alexander Dietz alexanderdie...@googlemail.com: Removing ':set paste' does not solve this problem. Did you try to explicitly execute ':set paste' JUST BEFORE pasting the text? Now I cannot paste text at all !!! What? The result that you pasted before is what must happen when

Re: paste in vim creates stupid result

2010-10-05 Thread Joan Miquel Torres Rigo
2010/10/5 Alexander Dietz alexanderdie...@googlemail.com: Hi, On Tue, Oct 5, 2010 at 16:00, Joan Miquel Torres Rigo joanmiq...@mallorcaweb.net wrote: you mean to type the command in vim the way you type a search command? The way you type any command. In normal mode, simply type ':set

Re: paste in vim creates stupid result

2010-10-05 Thread Joan Miquel Torres Rigo
2010/10/5 Alexander Dietz alexanderdie...@googlemail.com: Hi, 1. In your first post you said that you have :set paste in your ~/.vimrc that obviously not working. Then, if you want to solve the problem (only if you want, of course) you need to make some tests to diagnose the cause. Why

How to execute commands at vim exiting?

2010-10-02 Thread Joan Miquel Torres Rigo
Hi, Does anybody know if there is some way to execute commands at vim exiting? I have the following in my ~/.vimrc to make F-12 key switch between auto-created screen session associated to current buffer file name (future file directory, but I must deal with path slashes before):

Re: Can anybody please explain me about Mapeom

2010-09-15 Thread Joan Miquel Torres Rigo
2010/9/15 vicky b vickyb2...@gmail.com: Maybe. -- Joan Miquel Torres__ Linux Registered User #164872 http://www.mallorcaweb.net/joanmiquel BULMA: http://bulma.net http://breu.bulma.net/?l2301 -- You received this message from the vim_use maillist. Do not

Re: Silly question maybe: What's the purpose of color schemes

2010-08-20 Thread Joan Miquel Torres Rigo
2010/8/20 Steve Hall digit...@dancingpaper.com: From: Jeri Raye, Fri, August 20, 2010 11:09 am Why do you use several different color schemes? What does it help you? Why for example do you prefer dark color schemes (black/grey brackground, soft letter colors). Color schemes are helpful to

Re: PHP trick/tips solicited

2010-08-15 Thread Joan Miquel Torres Rigo
2010/8/14 Joan Miquel Torres Rigo joanmiq...@mallorcaweb.net: 2010/8/13 Joan Miquel Torres Rigo joanmiq...@mallorcaweb.net: [...] ...you can introduce as much indentation levels as you need. This way, Obviously I would meant FOLDING levels, of course ;-) Cheers. -- Joan Miquel

Re: PHP trick/tips solicited

2010-08-13 Thread Joan Miquel Torres Rigo
2010/8/13 caruso_g peppecar...@gmail.com: On Aug 12, 12:58 am, Tim Johnson t...@johnsons-web.com wrote: I've used vim for years for other programming languages other than PHP. Now I'm starting to learn PHP. I have downloaded the *piv*

Re: PHP trick/tips solicited

2010-08-13 Thread Joan Miquel Torres Rigo
2010/8/13 Joan Miquel Torres Rigo joanmiq...@mallorcaweb.net: set foldmethod=marker               Lets me to group code by functionality and abstraction level. (see example below). Finally I forginven the example... (I also add below a few extraction of the ~/.vimrc in my personal machine

Re: Reindenting an empty line using cindent and cinkeys?

2010-08-12 Thread Joan Miquel Torres Rigo
2010/8/4 John itc@gmail.com: Thanks Ivan, reading the help I'm unsure whether or not it was meant to act this way, but 'cc' does indeed work perfectly!  Brilliant! Thanks so much! Another solution: If I underestood you correctly, 'ddko' does exactly what you want. Regards. -- Joan

Re: folding question

2010-08-10 Thread Joan Miquel Torres Rigo
2010/8/9 Jeri Raye jeri.r...@gmail.com: Hi, I'm trying to make a fold region that looks for the following - when a line contains the word foo that's the start of the fold - when one or more lines later the word end is found that should close the line - or when the words end with one or more

Re: Shortcuts for Save File

2010-07-08 Thread Joan Miquel Torres Rigo
2010/7/8 d4567 d4...@gmx.net: Hello, I face trouble at the moment defining a proper shortcut to save my file. I use: imap C-S ESC:wCRa map  C-S :wCR which does save the file, but it also moves the cursor as a side effect. What is the problem with 'i' command? This is especially

Re: Advice for easily switching ~/.vim?

2010-06-14 Thread Joan Miquel Torres Rigo
2010/6/14 Nathan Neff nathan.n...@gmail.com: On Mon, Jun 14, 2010 at 11:33 AM, AK andrei@gmail.com wrote: [...] I just set the same thing up yesterday. I have a ~/.bvimrc, and ~/.testvim/, I run gvim -u ~/.bvimrc, and in .bvimrc I have this: set

Re: show what I type in another window

2010-06-14 Thread Joan Miquel Torres Rigo
GNU Screen is for you. http://www.gnu.org/software/screen/manual/ Look for the '-x' option (man screencr/-x). But be carefull because this way all clients could write to your terminal. I know there is another application that do the same but in read-only mode, but I don't remember its name

Re: How to map CTRL-F5

2010-04-03 Thread Joan Miquel Torres Rigo
2010/4/2 Tony Mechelynck antoine.mechely...@gmail.com C-F5 is the correct Vim syntax, but on Linux, KDE uses Ctrl-Fn to switch to the n-th virtual desktop. These are the defaults but, In general, all KDE shortcuts are configurable, tipically in control panel - keyboard sortcuts (I don't know

Re: No more 8-character limit?

2010-03-29 Thread Joan Miquel Torres Rigo
2010/3/28 Benjamin R. Haskell v...@benizi.com Are there any systems in common, current use for which this causes problems? (Why would people be using Vim in DOS emulators?) Why would people be using Windows on servers? But there is. And there is some privative DOS applications with no

Re: Open big file in Gvim

2010-03-24 Thread Joan Miquel Torres Rigo
2010/3/24 Christian Brabandt cbli...@256bit.org On Wed, March 24, 2010 2:23 pm, lmhelp2 wrote: For the moment, I am just trying to view the file's contents... some other program is supposed to perform things afterwards I haven't yet faced that matter. I think less and probably also

Re: Print via vim

2010-02-11 Thread Joan Miquel Torres Rigo
2010/2/11 Anand V Looks like the only way out is to cut the file into different smaller files (as suggested by sc) and take printouts separately and then look at them placed in order.Too much work :) For one-time printings, other option (to avoid creation garbage files) is to select

Re: filelist window ?

2009-12-29 Thread Joan Miquel Torres Rigo
2009/12/29 Ramagudi Naziir nazi...@gmail.com Hi! I really really want something like taglist but for files: A window that will show me the list of files in my project, in which i can easily find my files. E.g., a user can type the name or part of the file name he is looking for, the the

Re: Moving curso to next ;

2009-11-23 Thread Joan Miquel Torres Rigo
2009/11/23 epanda callingel...@hotmail.fr Hi, I would like to move curso in normal mode to next ; character. How can I do ? Shorter than /;intro? Maybe remapping some key to this command I think... -- Joan Miquel Torres__ Linux Registered User

Re: sql commands from Vim

2009-11-18 Thread Joan Miquel Torres Rigo
2009/11/18 epanda callingel...@hotmail.fr Hi, I am searching for some utility that enable to do sql command from within GVim under XP. Simply write query, select it and do !your_sql_interpreter param. Vim mantains command history and then, next times you only need to go up and down into

Re: How to get the screen of the previous command that was executed?

2009-11-16 Thread Joan Miquel Torres Rigo
2009/11/16 Peng Yu pengyu...@gmail.com [...] I think he is talking about: when the command returns and he's back in vim, how to see the command output Yes. This is what I mean. I have a similar problem, but I partially solve it by using command filtering. In my case, what I want to do