Re: pulling text to the right?

2007-02-27 Thread Kim Schulz
is: int foo; uint8_t bar; TIME baz; int hello=world; -- Kim Schulz| Private : http://www.schulz.dk [EMAIL PROTECTED] | Business: http://www.devteam.dk +45 5190 4262 | Sparetime: http://www.fundanemt.com

Re: pulling text to the right?

2007-02-27 Thread Kim Schulz
rather like a declaration set. There's a map specifically supporting that: \adec seems like the script wasn't loaded propertly. After restarting gvim, both \tsp and \adec worked (the latter one having the best result). great script which I am sure I will get to use alot. -- Kim Schulz

Re: tips project

2007-02-23 Thread Kim Schulz
at every comment and see if they're useful or not. What are your ideas? I think that we should move all comments. it is easier to remove the useless ones later than it is to add a missing comment later on. -- Kim Schulz| Private : http://www.schulz.dk [EMAIL PROTECTED] | Business: http

Re: The Seven Habits Of Effective Text Editing 2

2007-02-19 Thread Kim Schulz
in a portable format and put it on the Vim ftp server. http://www.schulz.dk/vim/7HabitsForEffectiveT.avi -- Kim Schulz| Private : http://www.schulz.dk [EMAIL PROTECTED] | Business: http://www.devteam.dk +45 5190 4262 | Sparetime: http://www.fundanemt.com

Re: tips project

2007-02-16 Thread Kim Schulz
it. That the main problem I encounter with wiki pages. Another thing is that we most likely will encounter even more spam than now by moving to a wiki (spambots are getting through, even when you have captcha and user login). just my 5cents -- Kim Schulz| Private : http://www.schulz.dk [EMAIL PROTECTED

Re: vim paste buffer

2007-02-08 Thread Kim Schulz
? Regards, Guillaume just yank it into the + register. This is the same as your clipboard. -- Kim Schulz

Re: CTRL-S functionality to a letter combo like i.e. cs

2007-02-01 Thread Kim Schulz
? ( Is this possible without using the Function Keys F1 till F12? get the vim setup called cream. http://cream.sf.net -- Kim Schulz| Private : http://www.schulz.dk [EMAIL PROTECTED] | Business: http://www.devteam.dk +45 5190 4262 | Sparetime: http://www.fundanemt.com

problems with vim.org/scripts

2007-01-22 Thread Kim Schulz
=ratingdirection=descendingsearch=search There might be a problem with the site. -- Kim Schulz| Private : http://www.schulz.dk [EMAIL PROTECTED] | Business: http://www.devteam.dk +45 5190 4262 | Sparetime: http://www.fundanemt.com

Re: problems with vim.org/scripts

2007-01-22 Thread Kim Schulz
On Mon, 22 Jan 2007 23:04:14 +0100 Bram Moolenaar [EMAIL PROTECTED] wrote: I broke it and now fixed it. Sorry for the inconvenience! No problem... thanks for the info. -- Kim Schulz| Private : http://www.schulz.dk [EMAIL PROTECTED] | Business: http://www.devteam.dk +45 5190 4262

Re: Spam in Tips in Vim's website

2007-01-17 Thread Kim Schulz
Arenas Coronado having RSS feeds of the tips being added makes it easy to catch the spam just after it has been added without having to go to the homepage all the time. -- Kim Schulz| Private : http://www.schulz.dk [EMAIL PROTECTED] | Business: http://www.devteam.dk +45 5190 4262

other function keywords than range and dict

2007-01-06 Thread Kim Schulz
hi Is there any other function keywords besids range and dict? I mean the ones you can add after the argument list in a function decleration: function MyFoo(arg1,arg2) keyword echo foo endfunction -- Kim Schulz| Private : http://www.schulz.dk [EMAIL PROTECTED] | Business: http

dictionary fun makes gvim crash

2007-01-04 Thread Kim Schulz
/i386-linux/auto/DynaLoader/DynaLoader.a -L/usr/lib/perl5/5.8.8/i386-linux/CORE -lperl -lutil -lc -L/usr/lib/python2.5/config -lpython2.5 -lutil -Xlinker -export-dynamic -L/usr/lib -ltcl8.4 -lieee -lm -- Kim Schulz| Private : http://www.schulz.dk [EMAIL PROTECTED] | Business: http

Re: your best vim scripting tip

2006-12-07 Thread Kim Schulz
[snip] Great input Luc! thanks.

Re: your best vim scripting tip

2006-12-04 Thread Kim Schulz
On Mon, 04 Dec 2006 00:40:53 +0100 A.J.Mechelynck [EMAIL PROTECTED] wrote: Kim Schulz wrote: Hi, It you should give one (or more) tips to a person who was going to start creating scripts for vim, then what would it be? (besides know your :help :-) ) ideas could be: Do's

Re: your best vim scripting tip

2006-12-03 Thread Kim Schulz
tons of bad scripting. What I am asking for i what would you do different if you should redo one of your first scripts - programming-wise not functionallity! -- Kim Schulz| Private : http://www.schulz.dk [EMAIL PROTECTED] | Business: http://www.devteam.dk +45 5190 4262 | Sparetime: http

Re: C++ refactoring tool

2006-11-26 Thread Kim Schulz
-- Kim Schulz| Private : http://www.schulz.dk [EMAIL PROTECTED] | Business: http://www.devteam.dk +45 5190 4262 | Sparetime: http://www.fundanemt.com

formatexpr examples

2006-11-23 Thread Kim Schulz
Hi, I have been looking for formatexpr examples that show how to write a simple formatting function. Especially how the v:char is supposed to be used since this is not that well described in the docs. Does anyone have such example and can help me? -- Kim Schulz| Private : http

running a function only once over visual selected lines.

2006-11-15 Thread Kim Schulz
let pre = pre . '0' endif call setline(ending, pre . difsize . \t . getline(ending)) let ending=ending-1 let difsize=difsize-1 endwhile endfunction :vmap :call Listing2()cr I would prefer not to use a global counter. -- Kim Schulz| Private : http://www.schulz.dk [EMAIL

Re: vim.org refreshed mockup

2006-11-08 Thread Kim Schulz
features while still maintaining a professional, easy to overlook, information packed page for those just coming for the download and docs. -- Kim Schulz| Private : http://www.schulz.dk [EMAIL PROTECTED] | Business: http://www.devteam.dk +45 5190 4262 | Sparetime: http://www.fundanemt.com

inserting tabs in foldtext

2006-10-30 Thread Kim Schulz
Hi Is there a way to have tab chars in foldtext? I have tried with set foldtext=getline(v:foldstart).'^I^I'.v:foldstart but with no luck. Have also tried with \t and Tab so is this possible and how? -- Kim Schulz| Private : http://www.schulz.dk [EMAIL PROTECTED] | Business: http

Re: REQ: gq and swap file stuff?

2006-10-21 Thread Kim Schulz
to the bottom of the file before adding contents. this way this annoyance isn't activated as often. Would be super to get rid of this annoyance which I tend consider a bug - even though it probably has its roots in some line-editing ideas from old days. -- Kim Schulz| Private : http://www.schulz.dk

Re: locked window

2006-10-19 Thread Kim Schulz
it gives you a superb overview of the code when reading through it. -- Kim Schulz| Private : http://www.schulz.dk [EMAIL PROTECTED] | Business: http://www.devteam.dk +45 5190 4262 | Sparetime: http://www.fundanemt.com

Re: locked window

2006-10-19 Thread Kim Schulz
. absolutely perfect. this er very close to what I had in mind. Except that I would really like this window to be locked (hence the question which started this thread). -- Kim Schulz| Private : http://www.schulz.dk [EMAIL PROTECTED] | Business: http://www.devteam.dk +45 5190 4262 | Sparetime: http

locked window

2006-10-18 Thread Kim Schulz
Hi I was wondering if there is a way to lock a window such that the content can only be changed by scripting/commands. Like a preview window or somthing like that. is that possible to make in Vim or should I make a feature request to get it :-) -- Kim Schulz| Private : http

Re: Planet Vim

2006-10-12 Thread Kim Schulz
to be negative - I just wanted to save you some time if the functionality that I described is what you require. You are right. I have another idea :-) Lets just mention all vim related blogs in this thread and then people can add them to their rss aggregators themself. -- Kim Schulz| Private

tags - alternative ways to use them

2006-10-06 Thread Kim Schulz
Hi, Most of you probably know about using tags, tagfiles and the taglist plugin, but I am courious if anyone has used the tags functionality in interesting alternative ways? maybe in plugins or simple macros - I want to know it all :-) So let me know what neat ideas you have. -- Kim Schulz

Re: tags - alternative ways to use them

2006-10-06 Thread Kim Schulz
On Fri, 6 Oct 2006 13:32:53 -0500 Aaron Griffin [EMAIL PROTECTED] wrote: You could probably use C tags from a header file (with the arguments turned on) to generate a skeleton .c file just an idea. not a bad idea. Wonder if anyone has done this already. -- Kim Schulz| Private

Re: tags - alternative ways to use them

2006-10-06 Thread Kim Schulz
On Fri, 6 Oct 2006 11:48:42 -0700 Max Dyckhoff [EMAIL PROTECTED] wrote: Hari's new plugin LookupFile is a great use of tags, I use it dozens of times a day! http://www.vim.org/scripts/script.php?script_id=1581 ahh lovely. Didn't know that one. -- Kim Schulz| Private : http

Re: abbreviations + indent + movement commands

2006-09-25 Thread Kim Schulz
I tried was: :iabbrev for( for (!cursor!;+++;+++){\n+++\n}C-R=search('!cursor!',b)crc/+/ecr but this inserts the linenumber where it finds the placeholder. I would rather like it ro remove the placeholder and move the cursor there. any ideas? -- Kim Schulz| Private : http://www.schulz.dk

abbreviations + indent + movement commands

2006-09-23 Thread Kim Schulz
. is there a way to go to that place ? I guess it is in the mark for place of last change, but I just cant get iabbrev to execute my movement command (other than using left right up down). Is there any way to do this? -- Kim Schulz| Private : http://www.schulz.dk [EMAIL PROTECTED] | Business

Re: placeholders

2006-09-21 Thread Kim Schulz
that there's at least something within (the 1 bit), but that you don't swallow multiple tags if they occur on the same line. Just a few ideas, thanks. works like a charm. -- Kim Schulz| Private : http://www.schulz.dk [EMAIL PROTECTED] | Business: http://www.devteam.dk +45 5190 4262

Re: placeholders

2006-09-21 Thread Kim Schulz
On Thu, 21 Sep 2006 23:36:19 +0200 Luc Hermitte [EMAIL PROTECTED] wrote: Hello, * On Thu, Sep 21, 2006 at 10:43:54PM +0200, Kim Schulz [EMAIL PROTECTED] wrote: I want to add placeholders to some templates I have like +TITLE+ +DATE+ etc. I then want to map a keyboard shortcut to do

Re: Thank you for Vim7 scripting improvements

2006-09-03 Thread Kim Schulz
programming language. for (x =0; xmax; x++){ here you could have written for (x =0; xmax; x+=1){ The smart part is when it is as a pre-increment for (x=0;xmax; ++x) now you cant use your x+=1 anymore (at least not directly). -- Kim Schulz| Private : http://www.schulz.dk [EMAIL

Re: Vim BOF session

2006-09-03 Thread Kim Schulz
it must be possible to do natively in vim too. A large modification - probably, but I am sure that will be af great help for many programmers using Vim. -- Kim Schulz| Private : http://www.schulz.dk [EMAIL PROTECTED] | Business: http://www.devteam.dk +45 5190 4262 | Sparetime: http

Re: ANN: perforce 4.1 release

2006-09-03 Thread Kim Schulz
of Emacs. -- Kim Schulz| Private : http://www.schulz.dk [EMAIL PROTECTED] | Business: http://www.devteam.dk +45 5190 4262 | Sparetime: http://www.fundanemt.com

Re: Vim BOF session

2006-09-02 Thread Kim Schulz
or more easily available. -- Kim Schulz| Private : http://www.schulz.dk [EMAIL PROTECTED] | Business: http://www.devteam.dk +45 5190 4262 | Sparetime: http://www.fundanemt.com

Re: Vim BOF session

2006-09-02 Thread Kim Schulz
: hi Pmenu guibg=DarkRed I agree, the pink is heinous :) sure, but it is default and what most users see and use. -- Kim Schulz| Private : http://www.schulz.dk [EMAIL PROTECTED] | Business: http://www.devteam.dk +45 5190 4262 | Sparetime: http://www.fundanemt.com

Re: locked indents like emacs

2006-08-24 Thread Kim Schulz
On Thu, 24 Aug 2006 10:46:26 +0200, A.J.Mechelynck [EMAIL PROTECTED] wrote: Kim Schulz wrote: Hi is there a way to make indentation in Vim lock like in emacs so that if I press tab in the beginning of a line, then it indents the line to the correct place. Pressing tab multiple times does

Re: locked indents like emacs

2006-08-24 Thread Kim Schulz
On Thu, 24 Aug 2006 11:32:55 +0200, A.J.Mechelynck [EMAIL PROTECTED] wrote: Kim Schulz wrote: That is filetype-dependent indent, since how to indent will be determined by the syntax of the language of the file being edited: :filetype indent on or (usually better

Re: locked indents like emacs

2006-08-24 Thread Kim Schulz
that. -- Kim Schulz

Re: gvim fullscreen mode on Gnome ?

2006-08-20 Thread Kim Schulz
will be shown but these can be removed via the guioptions in gvim too. the gnome-keybinding-properties program can be used to bind the fullscreen feature to any keybinding you want. -- Kim Schulz| Private : http://www.schulz.dk [EMAIL PROTECTED] | Business: http://www.devteam.dk +45 5190

Re: Show/Hide Split Windows

2006-08-10 Thread Kim Schulz
On Thu, 10 Aug 2006 11:43:56 -0700 Max Dyckhoff [EMAIL PROTECTED] wrote: He means when using the script that he wrote and which he was discussing in the same email, which remaps ctrl-w o to do something else. and it works perfectly :-) Use it a lot here. -- Kim Schulz| Private

Re: get only basesname from bufname()

2006-08-07 Thread Kim Schulz
On Mon, 7 Aug 2006 15:18:09 -0500 Bob Hiestand [EMAIL PROTECTED] wrote: :help fnamemodify() thanks. worked perfectly (just had to figure out that I had used :h instead of :t ) -- Kim Schulz| Private : http://www.schulz.dk [EMAIL PROTECTED] | Business: http://www.devteam.dk +45 5190

tab equivalent for bufexists() and bufnr() ?

2006-08-06 Thread Kim Schulz
hi is there an equivalent to bufexists() and bufnr() but for tabs in vim 7? -- Kim Schulz| Private : http://www.schulz.dk [EMAIL PROTECTED] | Business: http://www.devteam.dk +45 5190 4262 | Sparetime: http://www.fundanemt.com

Re: tab equivalent for bufexists() and bufnr() ?

2006-08-06 Thread Kim Schulz
On Sun, 6 Aug 2006 16:42:25 +0200 Kim Schulz [EMAIL PROTECTED] wrote: hi is there an equivalent to bufexists() and bufnr() but for tabs in vim 7? Besides these two functions I am also looking for an equvivalent to abuf and getbufvar() -- Kim Schulz| Private : http

Re: tab equivalent for bufexists() and bufnr() ?

2006-08-06 Thread Kim Schulz
On Sun, 06 Aug 2006 17:19:17 +0200 A.J.Mechelynck [EMAIL PROTECTED] wrote: Kim Schulz wrote: hi is there an equivalent to bufexists() and bufnr() but for tabs in vim 7? There is no need for an equivalent. bufexists() and bufnr() will show that a buffer exists, and give its

Re: Disable spell for certain filetypes

2006-07-31 Thread Kim Schulz
On Mon, 31 Jul 2006 15:52:01 +0100 C Rose [EMAIL PROTECTED] wrote: Hi Is it possible to tell vim 7 to use spell in general, but not for files with specific filename extensions? Thanks in advance maybe somthing like: set spell autocmd BufLoad *.c setlocal nospell -- Kim Schulz

check if guioption is set

2006-07-29 Thread Kim Schulz
was looking for somthing like the ~= in perl but didn't seem to find such a thing. -- Kim Schulz| Private : http://www.schulz.dk [EMAIL PROTECTED] | Business: http://www.devteam.dk +45 5190 4262 | Sparetime: http://www.fundanemt.com