Re: Tips for advance use of Vim

2006-08-13 Thread 4mir Salihefendic

I am a lead developer of a Python CMS that could act as a wiki. The
system is quite dynamic and very easy to use. Info and a demo can be
found here: http://orangoo.com/skeletonz/

I could help customize the Vim wiki system to fit the needs of the community.
Something like:
* Vim syntax highlighting
* Develop some specific plugins (so it would be very easy to add tip content)
* Integrate so vim.org logins are used
* etc.

The system requires MySQL and Python 2.4

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
4mir - http://amix.dk
---
/(bb|[^b]{2})/ that is the Question


Source directory

2006-08-12 Thread 4mir Salihefendic

Hi group

Is there a neat way to source vim files in a directory?
Currently I use following solution that relies on "ls" - it's not
feasible on other than Unix systems.

function! SourceFile(path, file)
let path_file = a:path . '/' . a:file
exe "source " . path_file
endfunction

function! SourceDir(path)
let files = system("ls " . a:path)
let pattern = '[A-Za-z0-9-_]\+.vim'
while match(files, pattern) != -1
 let file = matchstr(files, pattern)
 let files = substitute(files, pattern . '\n', '', '')
 call SourceFile(a:path, file)
endwhile
endfunction

"Source files frenzy
call SourceDir("~/vim_local/plugin")

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
4mir - http://amix.dk
---
/(bb|[^b]{2})/ that is the Question


Re: Tips for advance use of Vim

2006-08-10 Thread 4mir Salihefendic

I don't think this should replace vim.org but it might link to the tips/ 
scripts there
Benefits: Its easier to keep it up to date (on vim.org you'll get
still outdated matches..


IMO this is an excellent idea. I am a web developer and willing to help.

4mir

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
4mir - http://amix.dk
---
/(bb|[^b]{2})/ that is the Question


Re: Tips for advance use of Vim

2006-08-10 Thread 4mir Salihefendic

I tried adding this as comment but the autoformatting feature i annoying when
trying to post vim commands.
I was to lazy to look for a description how to do pre formatting.. (That's the
downside on wikis.. You have to find out how to do something again and again)


I added it for you. AmiFormat is used as formatting language, check
out a simple reference here:
http://orangoo.com/labs/AmiNation/AmiFormat/online%20reference/

Thanks for the excellent comment! I didn't know about the glob pattern
- - nor did I check out MRU plugin :) I am definitely going to check
those out and see how I can use them :)

4mir

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
4mir - http://amix.dk
---
/(bb|[^b]{2})/ that is the Question


Tips for advance use of Vim

2006-08-09 Thread 4mir Salihefendic

Hi

I will in the upcoming days post one post pr. day on advance usage of
the Vim editor. I have been a Vim user for some years now and I know
some tricks :) The tips are meant for people that are already
comfortable with Vim.

The first in a series of 5 is named:
"Workspace efficiency - Vim tip 1 of 5" and can be read here:
http://amix.dk/index.py/permanentLink?id=159

Are there better ways to do it than how I describe? Then comment on it
:) I would REALLY like to know how to get most efficiency - - and
frankly, I don't think I am alone on this one.

Kind regards
4mir Salihefendic


Re: Vim 7 - a little graphical introduction

2006-05-09 Thread 4mir Salihefendic

Hi Hari

I just posted a comment on how I created them (since some people have
asked the same question). It's made on Mac OS X, but I am pretty sure
the same trick can be used on Windows or Linux.

Kind regards
4mir

On 5/9/06, Hari Krishna Dara <[EMAIL PROTECTED]> wrote:


On Tue, 9 May 2006 at 2:18pm, David Fishburn wrote:

>
>
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
> > 4mir Salihefendic
> > Sent: Tuesday, May 09, 2006 1:08 PM
> > To: vim@vim.org
> > Subject: Vim 7 - a little graphical introduction
> >
> > I just did a little blog post highlighting the new stuff in Vim 7.
> > I did this with a little twist - there is animation of the
> > new features. The link:
> > http://amix.dk/index.py/permanentLink?id=130
> >
> > Could be useful if you are trying to hype vim 7 to friends ;-)
>
> Those are nice.
>
> Maybe you should add one for the new Tab support.
>
> Dave
>

Right, I was going to suggest the same.

Amix, I was impressed to see that you actually used animated gifs to
show them in a very compact filesize. Are you willing to share on how
you created them? Did you actually take individual screenshots and
assemble them?

--
Thanks,
Hari

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com




--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
4mir - http://amix.dk
---
/(bb|[^b]{2})/ that is the Question


Re: Vim 7 - a little graphical introduction

2006-05-09 Thread 4mir Salihefendic

Damn it, I forgot that ;)
Thanks David.

On 5/9/06, David Fishburn <[EMAIL PROTECTED]> wrote:



> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
> 4mir Salihefendic
> Sent: Tuesday, May 09, 2006 1:08 PM
> To: vim@vim.org
> Subject: Vim 7 - a little graphical introduction
>
> I just did a little blog post highlighting the new stuff in Vim 7.
> I did this with a little twist - there is animation of the
> new features. The link:
> http://amix.dk/index.py/permanentLink?id=130
>
> Could be useful if you are trying to hype vim 7 to friends ;-)

Those are nice.

Maybe you should add one for the new Tab support.

Dave





--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
4mir - http://amix.dk
---
/(bb|[^b]{2})/ that is the Question


Vim 7 - a little graphical introduction

2006-05-09 Thread 4mir Salihefendic

I just did a little blog post highlighting the new stuff in Vim 7.
I did this with a little twist - there is animation of the new
features. The link:
http://amix.dk/index.py/permanentLink?id=130

Could be useful if you are trying to hype vim 7 to friends ;-)

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
4mir - http://amix.dk
---
/(bb|[^b]{2})/ that is the Question