... Safer:: let fname = expand('%:p') Full path will prevent ambiguity in some corner cases. ... Just:: let currentfile=getline(1, '$') ... As I wrote, better...
Mikolaj Machowski
mikmach@...
Jan 1, 2007 11:47 am
76412
... I've made some tests and on big tags files it can be slow. The fastest method is:: let alltags = system('grep -v '.fname) let alltags = split(alltags,...
Mikolaj Machowski
mikmach@...
Jan 1, 2007 12:10 pm
76413
... This won't work: you need a different variable name, see ":help E706". Best regards, Tony....
A.J.Mechelynck
antoine.mechelynck@...
Jan 1, 2007 2:44 pm
76414
... Here's one approach: http://www.american.edu/econ/notes/html_xhb.vim hth, Alan Isaac...
Alan G Isaac
aisaac@...
Jan 1, 2007 4:02 pm
76415
... Yeah, I forgot (not only about that). This is complete solution:: function! UpdateTags() call writefile(getline(1, '$'), '.tmp.cc', 'b') let tags =...
Mikolaj Machowski
mikmach@...
Jan 1, 2007 4:18 pm
76416
hello. i just installed cvim but \lcs and \ucs work perfectly but \ce or \cn or any other \xx stuff or \xxx stuff don't work at all. what do i do ? -- View...
spx2
stefan.petrea@...
Jan 1, 2007 11:12 pm
76417
... You should see filetype detection:ON plugin:ON indent:ON If not add a line to file .vimrc : filetype plugin on Fritz...
Fritz Mehner
mehner@...
Jan 2, 2007 7:38 am
76418
... What is cvim? Best regards, Tony....
A.J.Mechelynck
antoine.mechelynck@...
Jan 2, 2007 8:47 am
76419
Thomas sent to vim-dev@... ... Shouldn't <afile> be wrapped in escape before the expand, so that -- omitting other arguments -- the sequence would be: ...
Suresh Govindachar
sgovindachar@...
Jan 2, 2007 10:17 am
76420
Hi, Now I'm writing a plugin that hilights a pair of parens/braces which surround the cursor position. Unlike matchparen.vim, it works even when the cursor is...
AOYAMA Shotaro
jod@...
Jan 2, 2007 10:22 am
76421
Hi Theerasak, my problem is not to read the regExp but maintain them so your script don't help here. It sounds good btw. Regards, mc...
Marc Chantreux
marc.chantreux@...
Jan 2, 2007 11:28 am
76422
... Ok. There is no solution so i decided to write functions that returns RE chunks in vimfiles/autoload/RE{,/XML}.vim 2 advantages to proceed like this : -...
Marc Chantreux
marc.chantreux@...
Jan 2, 2007 12:46 pm
76423
just did that and outputted filetype detection:ON plugin:ON indent:ON ... -- View this message in context: http://www.nabble.com/cvim-tf2905788.html#a8124063...
spx2
stefan.petrea@...
Jan 2, 2007 1:52 pm
76424
... It's the scrip c.vim: c.vim : C/C++-IDE -- Write and run programs. Insert statements, idioms, comments etc. Further reading on...
Thomi Dammann
Thomi35@...
Jan 2, 2007 2:53 pm
76425
... OK -- I put the cursor on common%h and executed the command ... The result was: common\%h Also, escaping a second time with ... resulted in common\\%h ...
Suresh Govindachar
sgovindachar@...
Jan 2, 2007 2:55 pm
76426
... All these mappings are defined in the file $HOME/.vim/ftplugin/c.vim (filetype plugin). This file must also be loaded. The mappings are only present for...
Fritz Mehner
mehner@...
Jan 2, 2007 4:29 pm
76427
mne@...
Jan 2, 2007 6:45 pm
76428
... OK, thank you. -- Jorge Almeida...
Jorge Almeida
jalmeida@...
Jan 2, 2007 9:20 pm
76429
Is there a way to have different (see below) syntax highlighting for different portions of a file? What I am interested in knowing is whether there exists a...
cupaxe
cupaxe@...
Jan 2, 2007 9:24 pm
76430
Quoting the Makefile: # - Uncomment one or more of these lines to include an interface; # each makes Vim quite a bit bigger: #...
Jorge Almeida
jalmeida@...
Jan 2, 2007 10:10 pm
76431
... Thanks. Jorge...
Jorge Almeida
jalmeida@...
Jan 2, 2007 11:03 pm
76432
... Does your plugin use the CursorHold or CursorMoved autocommand? Does your plugin move the cursor after the user has moved it, then restore the user's...
Gary Johnson
garyjohn@...
Jan 2, 2007 11:14 pm
76433
... I confirm that in Insert/Replace mode %B gives a single digit zero. In Select mode it works OK, even in Select (insert) i.e. when triggered by hitting ...
A.J.Mechelynck
antoine.mechelynck@...
Jan 2, 2007 11:16 pm
76434
... Perhaps. It behaves that way (also in 6.4) for both %b and %B. In Gvim, the cursor is between 2 characters - so returning zero for %b and %B seems...
Bill McCarthy
WJMc@...
Jan 2, 2007 11:24 pm
76435
Bill McCarthy wrote: [...] ... In (g)vim, the cursor is never between characters. In gvim, with the default setting for 'guicursor', the cursor looks as if it...
A.J.Mechelynck
antoine.mechelynck@...
Jan 2, 2007 11:34 pm
76436
... Some languages can include text written in other languages, and the corresponding syntax script takes that into account: for instance, you might want to...
A.J.Mechelynck
antoine.mechelynck@...
Jan 2, 2007 11:36 pm
76437
Hi Tony :) ... OK, thanks for the confirmation. ... So really it is a bug and not a feature. Again, thanks :) Raúl Núñez de Arenas Coronado -- Linux...
DervishD
vim@...
Jan 2, 2007 11:41 pm
76438
Hi all, and happy new year! I have %B in my status line, but it doesn't work in insert mode, only on normal and visual mode. At first I thought that the status...
DervishD
vim@...
Jan 2, 2007 11:42 pm
76439
... IMHO, I said. Bram has the final say, not me. ... Best regards, Tony....
A.J.Mechelynck
antoine.mechelynck@...
Jan 3, 2007 1:51 am
76440
... Thank you for your script. It doesn't work so fast in my computer. There is another problem when I use omnicppcomplete plugin. I don't know if it is its...