Hello,
Couldn't the 'patch' command do this? E.g., Vim#1 has made some changes to
example.c (but not saved them), and Vim#2 makes some different changes and
saves them. Vim#1 sees that example.c has changed, and makes a diff between
the new example.c and what it originally was, and also makes a
Hello Yakov,
Couldn't you hook into the FileChangedShell autocmd event and merge the changes
into your buffer from there? You can also handle the swap file message with
SwapExists event.
regards,
Peter
--- Yakov Lerner <[EMAIL PROTECTED]> wrote:
> Hello Bram,
> Is it possible to add this item
Hello,
You'll probably need to use 'execute':
execute 'syn match myPattern' s:mypattern
but again, highlighting won't work for you then.
regards,
Peter
--- Ian Tegebo <[EMAIL PROTECTED]> wrote:
> Is doesn't seem possible to store my patterns in variables for use in syntax
> definitions
--- Yakov Lerner <[EMAIL PROTECTED]> wrote:
> I use sometimes the regex that finds paragraphs
> containing given words w1,w2,... in any order ( I define "paragraph"
> as separated by lines, \n\n).
>
> I use the pattern like this: (two-word example, w1 and w2, but easily
> expandable for N words)
--- fREW <[EMAIL PROTECTED]> wrote:
> Hi all,
> Is there a way to change the completion menu colors?
Change the highlighting options for the Pmenu* highlight groups:
:hi Pmenu ctermfg=Cyanctermbg=Blue cterm=None guifg=Cyan
guibg=DarkBlue
:hi PmenuSel ctermfg=White ctermbg=Blue
Hello,
Also you can use
:set ft? syntax?
to see which filetype has been detected, and which syntax has been activated.
regards,
Peter
--- Xi Juanjie <[EMAIL PROTECTED]> wrote:
> "syntax on" should be ok.
>
> Please use :version to confirm your vim was compiled with "+syntax"
> function a
Hello,
Folds can't overlap, so Vim extends the range of the new fold to line 15 so
that it completely encloses the first fold. Use ':set foldcolumn=5' to see
what's happening with the folds as you create them. If you don't want Vim to
extend the folds, then you'll need to delete them first using
--- Kevin Old <[EMAIL PROTECTED]> wrote:
> Hello everyone,
>
> I've recently found the new HTML.zip
> (http://www.vim.org/scripts/script.php?script_id=453) utility and want
> to use it with my setup. By itself HTML.zip works fine.
>
> Thing is, I use HTML::Mason as my template language for Per
--- Hugh Sasse <[EMAIL PROTECTED]> wrote:
> On Thu, 1 Mar 2007, Alexander Farber wrote:
>
> > Hello Hugh,
> >
> > On 3/1/07, Hugh Sasse <[EMAIL PROTECTED]> wrote:
> >
> > Actually I edit .sh, .pl, .c, .h, .java and .as files
> > and like to have similar colors (like inverted comments)
> > ever
Hello,
If it is a C-style syntax where you're matching together lots of { } areas (or
if/endif blocks, etc), using regions, then you should provide an option to turn
it on/off, because this can be slow on large files (and get out of sync).
Thousands of keywords probably isn't an issue, but if you
--- Bram Moolenaar <[EMAIL PROTECTED]> wrote:
>
> Pete Johns wrote:
>
> > On Tue, 2007-02-13 at 16:07:32 -0700, <[EMAIL PROTECTED]> sent:
> > >>(Sorry guys, my web-based editor, which I must use at work
> > >>becauseof IT paranoia about SMTP, simply will not let me reply
> > >>at the end rather
Hello,
Try this script:
http://www.vim.org/scripts/script.php?script_id=1623
regards,
Peter
--- Noah Spurrier <[EMAIL PROTECTED]> wrote:
>
> I have folding set to use expr. I have a foldexpr that
> identifies lines for functions and classes in PHP.
> Lines that are part of a function are fo
Hello,
The raw syntax string item is defined so as to skip over a [\"]. You just need
to remove the 'skip=+\\"+' part from this line:
syn region dRawString start=+r"+ skip=+\\"+ end=+"[cwd]\=+ [EMAIL PROTECTED]
change to
syn region dRawString start=+r"+ end=+"[cwd]\=+ [EMAIL PROTECTED]
re
--- Alan G Isaac <[EMAIL PROTECTED]> wrote:
>
> Quoting from :h :bd ::
>
> Actually, the buffer isn't completely deleted, it is
> removed from the buffer list |unlisted-buffer| and
> option values, variables and mappings/abbreviations
> for the buffer are clear
--- Bill McCarthy <[EMAIL PROTECTED]> wrote:
> On Thu 30-Nov-06 10:24pm -0600, you wrote:
>
> > --- Bill McCarthy <[EMAIL PROTECTED]> wrote:
>
> >> On Thu 30-Nov-06 9:20pm -0600, Peter Hodge wrote:
> >>
> >> > Try:
> >>
--- Bill McCarthy <[EMAIL PROTECTED]> wrote:
> On Thu 30-Nov-06 9:20pm -0600, Peter Hodge wrote:
>
> > Try:
> >
> > /^.\{-}home.\{-}\zshome
> >
> >
> > for your reference:
> >
> > \{-} makes the '.' match as little a
Hello,
Try:
/^.\{-}home.\{-}\zshome
for your reference:
\{-} makes the '.' match as little as possible
\zs makes the search match begin at this point in the pattern
regards,
Peter
--- zzapper <[EMAIL PROTECTED]> wrote:
> Hi given a sample text below
>
> home
>
> home gg home xxx
>
Hello Yakov,
One way is to have Vim fold the { } regions. I think this is already set up in
the C syntax, so you just need to ':set foldmethod=syntax'. You may also want
to ':set foldcolumn=4' (or whatever number works for you). Note how the left
side of the display shows you where each fold (e
gt; 2006/11/28, Peter Hodge <[EMAIL PROTECTED]>:
> > Hello,
> >
> > What does a 'php abbreviations configuration script' do?
> >
> > regards,
> > Peter
> >
> >
> > --- KLEIN Stéphane <[EMAIL PROTECTED]> wrote:
> >
>
--- Ronald <[EMAIL PROTECTED]> wrote:
> I am new.
> Usually when I am in command mode (I mean when I pressed ESC), the
> cursor shape becomes a block, it is well that when I press `i' or `a'
> the cursor will become a bar at the left or right side of the block.
> But here is a problem, when I wan
Hello,
What does a 'php abbreviations configuration script' do?
regards,
Peter
--- KLEIN Stéphane <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I look for php abbreviations configuration script. There aren't ?
>
> Thanks
> Stephane
>
Send instant messages to your online friends http://au.messen
Hello,
Probably the most straightforward way to do this in your ~/.vimrc file:
nnoremap :call CompileScript()
function! CompileScript()
" the name of the current file
let fname = expand('%')
" can't compile unless the file is saved
if &modified
echo printf('Please sav
--- Troy Piggins <[EMAIL PROTECTED]> wrote:
> * A.J.Mechelynck <[EMAIL PROTECTED]> :
> > Troy Piggins wrote:
> > >I use 'R' replace mode when doing, for example, ascii art etc
> > >because it allows me to change characters without affecting the
> > >layout of the rest of the window/page.
> > >
>
Hello,
The 'no{option}' options aren't really options, that's just a way of turning
them off. You can use:
if ! &startofline
(do something)
endif
regards,
Peter
--- Meino Christian Cramer <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> in a script I want to to something like:
>
> if
--- "A.J.Mechelynck" <[EMAIL PROTECTED]> wrote:
> Neil Gabriel wrote:
> >> On 11/9/06, A.J.Mechelynck <[EMAIL PROTECTED]> wrote:
> >> > Neil Gabriel wrote:
> >> > > I did in fact look at that. Reading through the "internal" grep
> >> > > however, I do not see a way of running a recursive search
--- Ricardo SIGNES <[EMAIL PROTECTED]> wrote:
> * Panos Laganakos <[EMAIL PROTECTED]> [2006-11-07T12:59:57]
> > I made a mockup of a refreshed version of vim.org, trying to maintain
> > as much of the original look as possible:
> >
> > http://panos.solhost.org/mockups/vimorg-01.png
> >
> > vim
--- Shark Wang <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I was agonized by GVim 7.0, the editor always auto changed my cursor
> to next line, when I typed
> with long line ( less than the wrap margin ) or end tag element, such
> as "".
>
> the following is my vimrc, you could see that I had disabled
Hello,
I think it depends on what your terminal can understand. One way you can find
it out is to type ':map ' (using command mode), then press CTRL-V and then the
key sequence you want to map. For example, to map CTRL-L you could use ':map
'.
regards,
Peter
--- Zhaojun WU <[EMAIL PROTECTED]
--- Billy Patton <[EMAIL PROTECTED]> wrote:
> I'm in the semiconductor industry. My job is to create data and to run
> regression tests on that data for the validation of physical layout rules.
>
> Skip to bottom for questions, if you don't want to read my ramblings.
>
>
> The current problem
--- "A.J.Mechelynck" <[EMAIL PROTECTED]> wrote:
> Peter Hodge wrote:
> > Hello,
> >
> > I am having trouble with OS X GUI, none of the highlighting is in Bold. Is
> > this a Bug, or does Bold font just not work in the OS X gui?
> >
> > re
Hello,
I am having trouble with OS X GUI, none of the highlighting is in Bold. Is
this a Bug, or does Bold font just not work in the OS X gui?
regards,
peter
On Yahoo!7
Want to make technology work harder for your busines
Hello,
Can the person responsible please remove this spam from vim.org?
http://www.vim.org/tips/tip.php?tip_id=1367
regards,
Peter
Do you Yahoo!?
Yahoo!7 Time Capsule - Make your mark and be a part of history
http://www.ya
--- Bram Moolenaar <[EMAIL PROTECTED]> wrote:
>
> Peter Hodge wrote:
>
> > When I have formatoptions=t, it makes comment lines wrap when they
> > shouldn't, and it also ignores whatever comment leader is defined in
> > 'comments'. To r
Hello,
If you change the background=light, Vim reloads the colorscheme so it has a
chance to give you new colors. But if the colorscheme changes background=dark
again, then Vim knows that the colorscheme isn't capable of picking colors for
a light background. In that case, Vim will just ignore w
--- Peng Yu <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have the following file segments. I want to concatenate all the
> lines with their next lines, except that it ends with "}}". I want to
> use the pattern "\(}}\)[EMAIL PROTECTED]". It seems not working.
[EMAIL PROTECTED] is the look-ahead asser
Hello,
When I have formatoptions=t, it makes comment lines wrap when they shouldn't,
and it also ignores whatever comment leader is defined in 'comments'. To
reproduce:
:set formatoptions=roc
:set comments=b:%
:set textwidth=30
% type these lines of text
% as one line, and notice
%
--- Gary Johnson <[EMAIL PROTECTED]> wrote:
> On 2006-10-18, eric1235711 <[EMAIL PROTECTED]> wrote:
>
> > Yakov Lerner-3 wrote:
> > >
> > > On 10/18/06, eric1235711 <[EMAIL PROTECTED]> wrote:
> > >>
> > >> Hello
> > >>
> > >> I´m PHP programmer and I started programming in gVim last weak, and I
Perhaps you could use:
map [ctrl-v][ctrl-left] :tabp
map [ctrl-v][ctrl-right] :tabn
Except instead of typing 'ctrl-v' and 'ctrl-left' literally, you type those
combinations instead. This will map the exact escape sequences that your
terminal is sending.
regards,
Peter
--- J A G P R E E T
--- Benji Fisher <[EMAIL PROTECTED]> wrote:
> On Tue, Oct 17, 2006 at 05:43:08AM -0500, Tim Chase wrote:
> > In some text, I've got compound words separated by a single
> > hyphen. For convenience of yanking, I've added the hyphen to my
> > iskeyword setting which works nicely for the most part
--- Zheng Da <[EMAIL PROTECTED]> wrote:
> Hello.
> I want to open a file, and I know its name, but don't know the path.
> I want to use the command "find". For example I want to open the file
> space.cc, and use the command :find space.cc. I know the file may be
> in the current directory, or the
--- Akbar <[EMAIL PROTECTED]> wrote:
> Hi, I have these words:
>
> 1. I am good
> 2. You sucks!
> 3. Take that, moron
>
> I want to change those sentences into:
> 1. I am good
> 2. You sucks!
> 3. Take that, moron
>
> How do I do that using vim replace command?
> All I can think is this:
> :%
--- Tomas Lovetinsky <[EMAIL PROTECTED]> wrote:
> Hi,
> I would like to ask you for help with my problem. I think it is simple but in
> fact I'm not able to
> find the solution as quickly as I need.
> I need to do sometink like
> :s/a/b/g :wq
> It means to substitute, write and close file.
Hello
--- Yakov Lerner <[EMAIL PROTECTED]> wrote:
> On 10/16/06, Lev Lvovsky <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > I've never actually figured out why upon after typing in insert mode,
> > the cursor moves back one character to the left after pressing
> > escape. What's the reason behind this,
Hello David,
Can I suggest support for these commands:
:set/setlocal/setglobal
:syntax
:highlight (and maybe :HiLink because it is so commonly used)
Some examples:
set foldmethod=syntax
setlocal formatoptions+=roq
setglobal completeopt-=preview
syntax keyword phpFunction ...
sy
--- Panos Laganakos <[EMAIL PROTECTED]> wrote:
> I searched the archives, but didn't find any reference to this.
Google can't find it either, so therefore it can't exist.
> Are there enough people out there users/developers that blog about Vim?
Personally I don't think so, but one way is to set
>
> Thanks a lot. Your solution works perfectly. One small question. In my
> previous .vimrc, I had this varible called fortran_free_source. Do I need to
> worry about it in ~/.vim/ftplugin/fortran.vim or can I just forget about its
> existence completely?
It shouldn't exist any more once you
all .f90 files:
+ let s:extfname = expand("%:e")
+ if s:extfname ==? "f90"
+ let b:fortran_fixed_source = 0
+ else
+ let b:fortran_fixed_source = 1
+ endif
regards,
Peter
--- Kamaraju Kusumanchi <[EMAIL PROTECTED]> wrote:
> On Wednesday 11 October 2006 19:31
Hello,
You'll need to use syntax commands, and you may need to open up the colour
viewer while you're setting these up. First, to highlight some words using the
existing color groups:
syn keyword Function containedin=ALL word1 word2
syn keyword Statement containedin=ALL word3 word4
syn ke
Hello Kamaraju,
The distributed ftplugin file for fortran sets a variable called
'b:fortran_fixed_source' to let the syntax file know how to highlight. The
'bad highlighting' is because the ftplugin file isn't being executed (for some
reason?) and so the syntax defaults to using wrong highlightin
Hello Aaron,
You could do something like this:
syn match Sel1 /^\.selector/ nextgroup=Items1 skipwhite
syn region Items1 start=/{/ end=/}/ contained keepend
\ nextgroup=Sel2 skipwhite skipempty
hi Sel1 guibg=#44
hi Items1 guibg=#44
syn match Sel2 /^\.selector/ containe
Hello,
--- "A.J.Mechelynck" <[EMAIL PROTECTED]> wrote:
> Muhammad Farooq-i-Azam wrote:
> > I have to replace every occurrence of % in a file with
> > % |. I have been effectively replacing text using the
> > following construct:
> >
> > :%s/\/replacement/g
> >
> > However when I try to do the
Hello,
> Hi,
>
> when writing a function in vim script sometimes it makes sense to
> change options of vim.
>
> Are these changes local to the function ?
No, they persist after the function is ended. As a simple example, you could
use a function like the following to toggle the 'number' opt
Hello all,
I am having trouble with getchar() detecting . If I use getchar(0) or
getchar(1), it will not pick up an keystroke. You can replicate this by
using the command:
:sleep 3 | echo getchar(0)
... and pressing quickly before the getchar() function is called. In GUI
Vim, I correctly
Hello,
> I found no way to change Gvim's default highlighting for
> these groups. What I found is a mapping of the groups to
> group names in the setting 'highlight'.
I believe you're supposed to change these default mappings in your .vimrc file,
but unfortunately your changes will get lost as s
Hello,
> Finally, when spell check is enabled and syntax highlighting is also
> enabled, there vim is highlighting some text in a way that the
> foreground and background colors are the same -- so the text vanishes
> from view. Maybe the solution is to not have syntax and spell
> highlighting ena
--- Meino Christian Cramer <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I would like to accomplish three "tricks":
>
> 1.) Suppose you have a source code and have started an new search
>task recently. With "n" you are jumping from match to
>match. Sometimes the "next match" is right on the la
Hello,
What * picks up depends on the value of the 'iskeyword' option. It seems as
though your value of 'iskeyword' is including '('. Try ':set isk-=('. Also
have a look at ':set iskeyword?' and ':help iskeyword'.
regards,
Peter
--- Fabian Braennstroem <[EMAIL PROTECTED]> wrote:
> Hi,
>
>
--- Andrea Spadaccini <[EMAIL PROTECTED]> wrote:
>
> Well.. the vim book is for vim 5.7.. Are there any plans to make a new
> version for vim 7.x?
>
> I would buy it if only it was up-to-date! :)
>
Many of Vim's best features were included in 5.7. It is still a great book to
get you from a nov
> Do you have more of these multi-solver tips
> for me, Peter ??? :)))
The Vim Book (http://iccf-holland.org/click5.html#oualline) will get you up to
speed quickly on most of Vim's important features, and teach you how to use
some important tools you might miss otherwise. Most complex commands ca
Hello,
--- Meino Christian Cramer <[EMAIL PROTECTED]> wrote:
>
> 1.) Splitting line into two from normal mode.
> My current "concept" (hu...great word...;) to split a line into
> two is (starting and ending in normal mode, which is wanted):
>
> i Ctrl-j
>
> A
--- Benji Fisher <[EMAIL PROTECTED]> wrote:
>
> :nnoremap = @='3l'
>
Thank you! I've been trying to figure out how to do that for 2 years.
cheers,
Peter
Do you Yahoo!?
Yahoo! Dating: Get busy flirting with your 7-day fr
Hello,
In Vim 6.2, insert-completion would start when I type or , but
it would stop as soon as I used typed another letter or pressed backspace. Now
in Vim 7, when I type or another character, insert-completion does a
'refresh' to give me the complete list of ... er, completions. While this
ma
Hello,
>
> Does this actually work for you? IIRC, "after" colorschemes didn't work
> for me, so I concluded that ":colorscheme foobar" is equivalent to
> ":runtime colors/foobar.vim" not ":runtime! colors/foobar.vim".
>
I'm not quite sure what you mean. 'after' colorschemes had never worked
Hello,
Is it possible to run the clientserver feature on Mac OS X? I cannot see
anywhere in the help that directly states that clientserver only runs on
Windows or X11.
regards,
Peter
regards,
Peter
On Yahoo!7
Answers: 25
Hello,
--- "A.J.Mechelynck" <[EMAIL PROTECTED]> wrote:
>
> If you have found a colorscheme which satisfies you "almost, but not
> completely", copy it to ~/.vim/colors/ under a different name (ending in
> .vim) and modify it there. Then you can set gui=bold for Function or
> cFunction in your
Hello,
--- "A.J.Mechelynck" <[EMAIL PROTECTED]> wrote:
>
> So, it matches a part-word. Try adding an end-of-word pattern atom \>
> before the ending slash (but after the ending bracket) on each line. You
> wouldn't want "session.cookie_nomatch" to be matched as far as
> "session.cookie_" woul
Hello everyone,
Thank you for your help ...
>
> syn keyword Error inte[ger] inte[rval]
>
Unfortunately I need to use matches because the 'words' contain the '.'
character, and I also need to be able to use a look-behind assertion. The
thing is, I wanted to be able to write each match so that
Hello all,
Given the following text:
inte
integ
intege
integer
inter
interv
interva
interval
is there any easy way to make these two commands work?
syntax match Error /int\%[eger]/
syntax match Error /int\%[erval]/
The second match begins taking priority as soon as the word
--- Jorge Almeida <[EMAIL PROTECTED]> wrote:
>
> It appears there is a bug in the syntax file (see reply by Peter Hodge).
> This brings up the question: How to install a syntax file without
> poluting the distribution system? In gentoo, the file is (for version
> 6.4):
&
--- "A.J.Mechelynck" <[EMAIL PROTECTED]> wrote:
>
> It doesn't. After pasting into an empty buffer via the clipboard,
> block-deleting the column of numbers (from the left margin up to, but
> not including, the s in "sub" at top and the last } at bottom) and
> setting 'filetype' to perl, I see
Hello Jorge,
The problem is solved if you change this line:
768 sub reloadlist{
to this:
768 sub reloadlist {
It looks as though it is a bug in the perl syntax file. You should send the
maintainer an email with your perl code snippet, and he should be able to fix
it. It probably never ev
--- Tim Chase <[EMAIL PROTECTED]> wrote:
> > Is there a way to highlight unmatched strings for " and ' in a syntax file?
>
> What is an "unmatched string"?
Here's two matches which will find a string that extends to the end of the
line:
syntax match Error /"\%(\\.\|[^"]\)*$/
syntax match E
Hey,
Thanks for that important clue. It seems the secret to making it work is in
the values of the b:match_skip and b:match_words variables. Thank you, this
problem has been bugging me for a while.
regards,
Peter
>
> Addendum: It depends on the 'filetype' and possibly on whether %-jumping
>
Sorry,
In my example I meant to use
if("string(string")
and not
if('string(string')
because double-quotes DO work, single-quotes do not.
- Peter
--- Peter Hodge <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I don't know what I was smoking
Hello,
I don't know what I was smoking last time I posted this question, but it
definitely is not working for me now: If I have the following code:
if('string(string')
and I press % while the cursor is on the last ')', it correctly jumps to the
first '('. But, if I change the quotes to singl
Hi Paul,
You are doing the same as this:
:set highlight <- shows contents of 'highlight' option
:set cursorline <- activates 'cursorline' option
... but in the one command:
:set highlight cursorline <- shows contents of 'highlight' option and
activate 'cursorline' option
Just use 'set cu
Hello,
--- Elliot Shank <[EMAIL PROTECTED]> wrote:
> What I'm trying to do is create a plugin that acts based upon the contents of
> an arbitrary file buffer as soon after it has loaded its contents as
> possible.
>
> For existing files, using a BufReadPost autocmd is fine.
>
> For new file buf
Hello Barry,
For PHP, I use a command like ':!php %' (or ':!php "%"' for windows) to run a
file through PHP. From there, it's not hard to set up a mapping ':nnoremap
:!python %' or a menu command ':nnoremenu Python.Run :!python %', or an
auto-command to run the script when it is saved ':autocmd!
Hello Vu,
I don't know the indenting features very well, but I can tell you:
1) I'm not sure that lines are indented after ' wrote:
> I'm very sorry but could you tell me how to indent *.php file in vim7?
> I'm using winXP. I created test.php file, open it and type hit Enter
> But it not inden
Hello,
Another way to get around this is to add something like this to your _vimrc:
augroup MyColors
au!
au ColorScheme * highlight Comment guifg=Darkgreen
au ColorScheme * highlight Identifier guifg=Blue
[ ... etc ... ]
augroup end
" execute the commands now in case they aren't tr
Sorry, disregard last post, % wasn't working because I didn't actually have %
in cpoptions yet.
--- Peter Hodge <[EMAIL PROTECTED]> wrote:
> Hello,
>
> Is there any way to make % jump to the correct parenthesis and ignore a '('
> inside a single-quoted s
Hello,
Is there any way to make % jump to the correct parenthesis and ignore a '('
inside a single-quoted string? For example:
if('string(string')
Pressing % while the cursor is at the end of the line will jump to the wrong
'('. Is there any way to fix this? The help page on % does not ment
Hello,
I am just curious as to why after/colors/ scripts are disabled instead of
behaving like after/ftplugin and after/syntax scripts?
regards,
Peter
On Yahoo!7
Messenger - Make free PC-to-PC calls to yo
Hi Martin,
Unfortunately, I don't think there's any way to use \v by default for every
pattern.
It may help to remember that when you have the default 'magic' option set, Vim
only recognizes 5 special characters without backslash:
^
$
.
*
[ (if there is a matching ] to make a collection
Hi David,
If you begin your pattern with '\v', then every character except [_a-z0-9]
becomes 'special'. This allows you to use tokens like '?', '(' and '+' without
a backslash. Unfortunately, you can't use '(?:' and friends.
Maybe there should be a modifier like '\v' which makes the pattern com
Hi Yakov,
--- Yakov Lerner <[EMAIL PROTECTED]> wrote:
> Must be possible using CursorMoves autoevent, except
> that I don't see in syntax/html.vim how is handled.
> Is is indeed in syntax /html.vim ?
PHP stuff is in syntax/php.vim which loads html.vim inside it.
regards,
Peter
Send instant m
Hi Yakov,
As far as I can remember, all PHP syntax items begin with 'php', with the
exception of the preg* pattern items (these are only available if you've
downloaded the new PHP syntax from vim.org), and they start with 'preg'. Sorry
I don't have a copy of Vim installed at this location so I ca
Hi,
You can use CTRL-E and CTRL-Y to scroll up and down without moving the cursor.
regards,
Peter
--- Eric Leenman <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm using page-up and page-down to scroll.
> Also ctrl-home and ctrl-end.
> This moves the cursor to the beginning of the line.
> How can th
Hi Eric,
I am assuming you want to re-order the columns horizontally, in which case
Visual Block Mode is what you want. Press CTRL+V to start selecting a column,
use 'x' to delete it, and 'P' (upper-case P) to paste it (I find upper-case P
is more logical for Visual Block paste).
HTH,
regards,
P
>
> Thank you very much for the tip. ":e" works so nicely. I will try out those
> commands soon. Should I insert them in my vimrc file ?
>
Hi Tien,
Sorry, it seems I was a little naive with that autocommand I showed you, it
doesn't work because CursorHold won't trigger again until you press a ke
Hi Tien,
You can use ':e[dit]' to reload the current file. Perhaps you could set up
something with an autocommand based on the CursorHold event and reduce the
updatetime to half a second? For example:
set updatetime=500
augroup RefreshFile
autocmd!
autocmd CursorHold somefile.log edit
Hi Bill,
vimrc is read before plugins, so your au! command in .vimrc can't replace the
AsNeeded autocommand because AsNeeded hasn't been defined yet.
regards,
Peter
--- Bill McCarthy <[EMAIL PROTECTED]> wrote:
> Hello Vim List,
>
> Suppose two plugins define autocmds, so after start Vim,
>
Some GUIs will allow you to use the command
set guifont=*
Which brings up a font selection window. If that works, you can select a font
and then use
set guifont
to find out exactly what to add to your .vimrc
regards,
Peter
--- Yakov Lerner <[EMAIL PROTECTED]> wrote:
> On 7/31/06, Robert
Hello all,
I just want to throw this idea out there as a potential solution to the
problems I am having with the PHP syntax. It would be helpful to be able to
name sequential 'nextgroups' for regions and matches, so that the syntax will
highlight an area using certain groups in specific order. I.
Hi Marc,
I am assuming that you have output like this:
---
| Field1 | Field2 | Field3 | Field4 | ... |
---
| Value1 | Value2 | Value3 | Value4 | ... |
---
In which ca
Hi Malahal,
You can use ':S' to open a new File Explorer window or ':E' to open file
explorer in the current window.
regards,
Peter
--- [EMAIL PROTECTED] wrote:
> What is the easiest way to edit a file that is in the same directory as
> the current file? E.g. I open a file like this: vim /x/y
Hi Bill,
You do not have to program a new colorscheme. If you run this command:
:source $VIMRUNTIME/syntax/hitest.vim
... you will get a window containing all the highlighting colours used by Vim.
There's hundreds of colours listed, but there are prossibly only two that you
want to change, un
Hi Ralf,
The colorscheme 'morning' has very little Cyan in it - cyan is the default for
the 'Identifier' group, which is used for $variables and functions().
Just add something like this to colors/morning.vim:
highlight Identifier ctermfg=Red guifg=Red
If you want function calls in a distingu
AIL PROTECTED]> wrote:
> Oh. Grr, I hate it when plugins go changing the absolute value of your
> settings. I had a perl_doc.vim ftplugin that was "setlocal
> iskeyword=a-z,A-Z,48-57,:,/,."ing, which must have been being sourced after
> perl.vim.
>
> Thanks, Peter.
>
Hello,
I do believe that if you 'set verbose=2' and then 'set isk?' vim will tell you
where it was last set. I was having the same problem Saturday night when the
ftplugin/php.vim was adding '$' to isk. I found that adding "set isk-=$" to
~/.vim/ftplugin/php.vim did *not* work, but adding it to
1 - 100 of 116 matches
Mail list logo