Re: Automatically insert something when open a file

2011-09-15 Thread Tim Chase
On 09/15/11 08:25, Stanley Rice wrote: I have write some code that can change the modified data. I search for the first 10 line of the current file, and search for the key word Modified: , and then replace the content after the keyword with current time stamp each time I save the file. I thought

Re: Automatically insert something when open a file

2011-09-15 Thread Ben Fritz
On Sep 15, 8:32 am, Tim Chase v...@tim.thechases.com wrote: On 09/15/11 08:25, Stanley Rice wrote: I have write some code that can change the modified data. I search for the first 10 line of the current file, and search for the key word Modified: , and then replace the content after

Re: gvim unhighlight last search

2011-09-15 Thread Martin Lange
On Thu, 15 Sep 2011 00:45:48 +0200 Gelonida N gelon...@gmail.com wrote: What would be this command or the shortest sequence? I've mapped noremap f6 :set invhlsearchCR See :he set-inv -- it's a toogle for some options. I like :set invoption more than :set nooption, because I can switch the

Interrupt a while as CTRL_C

2011-09-15 Thread niva
Hi, I am running this script and would like to interrupt it from a call feedkeys(\C-c) but it does not work. while 1 calll system(myexe) sleep 1000m redraw endwhile When I type CTRL + C on my keyboard, it works and stop the while loop. When I click on amenu icon that execute :call

Re: Interrupt a while as CTRL_C

2011-09-15 Thread Tony Mechelynck
On 15/09/11 20:19, niva wrote: Hi, I am running this script and would like to interrupt it from a call feedkeys(\C-c) but it does not work. while 1 calll system(myexe) sleep 1000m redraw endwhile When I type CTRL + C on my keyboard, it works and stop the while loop. When I click on amenu

vim and tmux

2011-09-15 Thread meino . cramer
Hi, I currently exploring tmux. tmux uses C-b as prefix to its commands. Unfortunately everything gets confused, when I run vim inside a tmuxified terminal session, since vim catches tmuxes command sequences (NO! CRITISM OR FAILURE REPORT against VIM or TMUX!!!). Before fighting long fights

Re: Automatically insert something when open a file

2011-09-15 Thread Stanley Rice
I am sorry that I didn't fully express my question. In short, all I want to do it to insert a string , i.e.Modified: in the first line of a newly open file. Is that possible? On Sep 15, 10:52 pm, Ben Fritz fritzophre...@gmail.com wrote: On Sep 15, 8:32 am, Tim Chase v...@tim.thechases.com

Re: Automatically insert something when open a file

2011-09-15 Thread Gary Johnson
On 2011-09-15, Stanley Rice wrote: I am sorry that I didn't fully express my question. In short, all I want to do it to insert a string , i.e.Modified: in the first line of a newly open file. Is that possible? au BufNewFile *.txt put! ='Modified:' where you should change the file