Re: redir and glob

2013-03-18 Thread Gary Johnson
On 2013-03-19, Nazri Ramliy wrote: > Also you may be able to simplify your BuildFileList() using globpath() > instead: > > let files = globpath('dir1,dir2,dir3', '*.[ch]') Even more so by also using writefile(): call writefile(split(globpath('dir1,dir2,dir3', '**/*.[hc]')), 'cscope.files

Re: redir and glob

2013-03-18 Thread Nazri Ramliy
On Tue, Mar 19, 2013 at 6:39 AM, FlashBurn wrote: > Obviously there is something wrong with the way I use redir and glob, > but I can't get my finger on it. Does anybody know what am I doing > wrong? To redir to the s:output_file variable do this: redir => s:output_file Also you may be able t

Re: redir and glob

2013-03-18 Thread Salman Halim
On Monday, March 18, 2013, FlashBurn wrote: > I want to create a list of files that my project is using. This list will > be stored in a file and subsequently will be used by cscope. > > Here is what I have so far: > > function! BuildFileList() > s:dir_list = ['dir1', 'dir2', 'dir3'] > s:outpu

redir and glob

2013-03-18 Thread FlashBurn
I want to create a list of files that my project is using. This list will be stored in a file and subsequently will be used by cscope. Here is what I have so far: function! BuildFileList() s:dir_list = ['dir1', 'dir2', 'dir3'] s:output_file = 'cscope.files' redir! > s:output_file for dir

Re: Vim on the iPad

2013-03-18 Thread MickMcQ
I'd like to add that I use Vim in two main ways on the iPad 3. Most often, I log into a remote Mac using either iSSH or iTeleport. No iPad text editor conserves keystrokes the way Vim does, so that's my main motivation. iSSH has the option of a translucent keyboard so that I can see a much large

Re: Aligning slowing down (:1,$Align |)

2013-03-18 Thread Philip Rhoades
DrChip, On Friday, 15 March 2013 01:59:25 UTC+11, DrChip wrote: > tooth pik wrote: > > > On Thu, Mar 14, 2013 at 01:48:05PM +1100, Philip Rhoades wrote: > > >> People, > > >> I have been using this plugin for some time now and it has been > > >> exactly what I wanted. One thing I use it for

Re: Aligning slowing down (:1,$Align |)

2013-03-18 Thread Philip Rhoades
On Thursday, 14 March 2013 14:33:12 UTC+11, toothpik wrote: > On Thu, Mar 14, 2013 at 01:48:05PM +1100, Philip Rhoades wrote: > > > People, > > > > > I have been using this plugin for some time now and it has been > > > exactly what I wanted. One thing I use it for is to align text that > >

Add extensions to sintax highlight - .qml

2013-03-18 Thread Marcos Souza
Hi guys! I use vim for write C/C++, python, html and others file formats. But, a few days ago I started to work with Qt Framework, and use QML file format. This file extension is very similiar to Javascript (we can write js scripts inside it), and I want to know if there is a way to add this f

Re: Why is Vimscript/VimL much slower than Python when traversing long lists?

2013-03-18 Thread Marc Weber
Excerpts from Vlad Irnov's message of Mon Mar 18 11:16:51 +0100 2013: > On 3/15/13, Marc Weber wrote: > > VimL is known to be slow. > Saying that VimL is slow is pointless without explaining exactly what is > slow(er) and by how much. I've tried hacking a delphi completion once. Even though using

Re: "Focus mode" plugin that only shows one function in a buffer?

2013-03-18 Thread Ethan Hereth
I think Christian Brabandt's Narrow Region might be what you are looking for? https://github.com/chrisbra/NrrwRgn http://www.vim.org/scripts/script.php?script_id=3075 On Mon, Mar 18, 2013 at 6:04 AM, Hwee-Boon Yar wrote: > Is there a plugin or way for me to just display and edit a single func

Re: Save all buffers on SIGTERM

2013-03-18 Thread Thiago Padilha
thanks for the tip, Tony. On Sun, Mar 17, 2013 at 4:09 AM, Tony Mechelynck wrote: > On 16/03/13 18:44, Thiago Padilha wrote: >> >> Is it possible to configure vim to write all buffers when it receives >> SIGTERM? I use vim inside multiple tmux sessions and sometimes I >> forget to save something

"Focus mode" plugin that only shows one function in a buffer?

2013-03-18 Thread Hwee-Boon Yar
Is there a plugin or way for me to just display and edit a single function in a buffer? I'm been using MacVim for a few years now and have been mostly working with ObjC, Python and Ruby which all has the concept of a function. Lately I've been yearning for a way (from my Smalltalk roots[1]) to j

Re: Why is Vimscript/VimL much slower than Python when traversing long lists?

2013-03-18 Thread Vlad Irnov
On 3/15/13, Marc Weber wrote: > VimL is known to be slow. Saying that VimL is slow is pointless without explaining exactly what is slow(er) and by how much. I am not aware of any actual comparisons of VimL performance vs other scripting languages. My own conclusion from very few crude tests is th

Re: Why is Vimscript/VimL much slower than Python when traversing long lists?

2013-03-18 Thread Vlad Irnov
On 3/15/13, Salman Halim wrote: ... > It's entirely possible that the loop in question was simply left out as a > compiler optimization. Modern compilers can detect no-op loops and > unchanging assignments and take these things out of the compiled code. > > Salman > > > -- > سلمان حلیم This is no