In the quickfix documentation there is the following:
If you insert or delete lines, mostly the correct error location is still
found because hidden marks are used. Sometimes, when the mark has been
deleted for some reason, the message "line changed" is shown to warn you
that
the error locatio
First, I'd like to override an existing built-in command.
I have found discussion about using 'cabbrev' to do this
such as:
cabbrev cp =(getcmdtype()==':' && getcmdpos()==1 ? 'call
g:UserUp()' : 'cp')
If there is a different way that is "recommended", I'd
like to know.
Second, with this appro
http://www.vim.org/scripts/script.php?script_id=4240
On 11/27/2012 08:47 PM, Chris Lott wrote:
If I have two files open to test a colorscheme, the only way I can get
a true view of the scheme, without artifacts from the previous, is to
run:
syntax reset
each time I try a new colorscheme...
Is
You might want to look at:
http://www.vim.org/scripts/script.php?script_id=4240
https://github.com/megaannum/colorschemer
It has some 700 color schemes (both for gui and cterm)
and a color scheme reviewer which also allows you to
test the color scheme against different file-types.
RMD
On 11/24/2
Many times sources are in jar/zip/gzip-tar files (examples, Java and Scala
distribute sources in jar/zip files).
Given that one has the source file name, line and column numbers,
and which jar file it is in, within a script how to get vim
to open the jar file, jump to the source file, open the s
Both Vim and GVim have menubars with menus and submenus and, in
addition, a popup menu that, at least for a very beginner, covers
(maybe) 90% of what they may want to do (once they've got
basic modal editing down).
Though, it is also true that they will quickly out grow the
menus and rapidly want
To see the "group" I use:
map :echo "hi<"
synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">"
To see the colors associated with a group use:
:highlight "groupname"
I also have a color chooser
https://github.com/megaannum/forms/blob/master/images/examples_colorchooser.png
which
I am trying to upload the first release of what I call colorschemer
http://www.vim.org/scripts/add_script_version.php?script_id=4240
Right now there is an empty, placeholder colorschemer.zip
file at www.vim.org.
This is based on my Forms library and lets one toggle through
color schemes and file-
Excellent!! I hunted around the Vim docs but failed to see it.
Thanks.
On 09/17/2012 08:26 AM, Taylor Hedberg wrote:
richard emberson, Mon 2012-09-17 @ 08:22:08-0700:
So, you start Vim without a file name. Your is some unnamed empty
buffer. Then from the command line you goto some file to edit
So, you start Vim without a file name.
Your is some unnamed empty buffer.
Then from the command line you goto some file to edit:
:e SomeFile
After editing the file, you then wish to return to the
original unnamed empty buffer.
I don't seem to figure out how to get back.
Does the original unnamed
I note that some scheme when setting highlights for
cterms use numbers in the range 0 to 255.
What happens if one is using a rxvt 88 color terminal?
Does Vim automatically map all cterm numbers from the
0-255 space down to the 0-88 space when a 88 color
terminal is being used?
Are the colors for a
On 08/03/2012 09:03 AM, Tony Mechelynck wrote:
On 03/08/12 15:09, richard emberson wrote:
7.3 system vimrc:
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
user exrc file: "$HOME/.exrc"
fall-back for $VIM: "/usr/loc
file: "$HOME/.vimrc"
user exrc file: "$HOME/.exrc"
fall-back for $VIM: "/etc"
f-b for $VIMRUNTIME: "/usr/share/vim/vim73"
On 08/03/2012 01:26 AM, Tony Mechelynck wrote:
On 03/08/12 06:18, richard emberson wrote:
You should not start your messag
--
Quis custodiet ipsos custodes
I open the same pom.xml file with Vim 7.3 and 7.3.556. Only the top of the
file is shown here:
Both editors have syntax==xml and diffing the two sytax/xml.vim files, they
show no difference.
In both editors (7.3 and 7.3.556) place the cursor on the first 't' i
let p = 0.705882352941176
let pf = p * 255
echo pf
echo printf("%.10f",pf)
echo float2nr(pf)
echo floor(pf)
180.0
180.00
179
179.0
I have a Vim script app that converts between RGB numbers
and HSV floats. One would expect that going from RGB to
HSV and back to RGB would result in the ori
Want to remove a user-defined highlight group by its name.
Now
:highlight clear
"Removes all highlighting for groups added by the user!"
and
:highlight clear {group-name}
"Disable the highlighting for one highlight group."
But what I want is to completely remove a specific
highlight by name freei
If I use the matchadd function to highlight a region
given a pattern which is based upon a region,
can I use the id returned by matchadd with the
function synIDattr get get the "fg" and "bg" colors
associated with the highlight group used?
Or, can synIDattr only be used with ids associated with
sy
Thanks. I had looked around for an "exists" method for
highlights but missed it.
Richard
On 06/24/2012 07:58 PM, John Beckett wrote:
On Sunday, June 24, 2012 7:53:11 PM UTC-5, Richard wrote:
In a script, is it possible to test whether or not its been defined.
Yes, use hlexists('name') for exa
Consider the highlight
:hi MyHi ctermbg=46 guibg=#00ff00
In a script, is it possible to test whether or not its
been defined.
If one uses:
:hi MyHi
it will produce an Error message or the highlight terms.
What is want is something like:
if ! defined_highlight("MyHi")
:hi MyHi
endif
Thanks, that did the trick.
On 06/21/2012 02:44 PM, Gary Johnson wrote:
On 2012-06-21, richard emberson wrote:
I've got a function:
function! ()
execute '/this'
endfunction
and when I run it:
:call ()
my cursor is positioned at the first 'this' but th
I've got a function:
function! ()
execute '/this'
endfunction
and when I run it:
:call ()
my cursor is positioned at the first 'this' but the text
is not highlighted (nor is the text of any of the other 'this'
highlighted).
If I go into search history, the search is there and if I
e
On my Fedora Linux system when I invoke the PopUp menu in GVim,
the bottom menu item is "Input Methods" which has as submenu
with OS and/or windowing-system specific options.
Where in the Vim code base is this "Input Methods" menu
item defined. It is not in the menu.vim file.
Thanks.
--
Quis custo
Ha,
Using gvim,
:execute 'normal! v05l"+y'
works.
It must be something about Fedora's console Vim.
On 06/12/2012 01:58 PM, Ben Fritz wrote:
On Tuesday, June 12, 2012 2:58:53 PM UTC-5, Richard wrote:
I'd like to yank some visually selected text with execute:
:execute 'normal! v05l"+y'
But thi
When I enter:
:execute 'normal! v05l"by'
Vim yanks to register b and the text is NOT highlighted, but with
:execute 'normal! v05l"+y'
the text becomes highlighted and nothing is placed in +.
It really is as if the " is treated as the start of a comment.
On 06/12/2012 01:58 PM, Ben Fritz wrote
My Fedora version of vim 7.3 does not include clipboard
but does include xterm_clipboard.
On 06/12/2012 01:58 PM, Ben Fritz wrote:
:execute 'normal! v05l"+y'
--
Quis custodiet ipsos custodes
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the t
I get:
E354: Invalid register name: '+'
when I use it.
On 06/12/2012 02:02 PM, Tim Chase wrote:
:let @+ = getline('.')[:4]
--
Quis custodiet ipsos custodes
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more
I'd like to yank some visually selected text with execute:
:execute 'normal! v05l"+y'
But this indeed visually selected the 5 characters but
does not yank them. Its as if the " is a comment
character and not the start of a yank-to operation.
I assume, like so much else with Vim, there is a way,
Well Ben,
On 06/11/2012 11:36 AM, Ben Fritz wrote:
Without such an ability, a small feature of my script
will give incorrect results. I certainly do not want to
have to go through some massive effort to get this to
work; I was hoping for some already built-in Vim
capability - Vim is really such
Hi,
On 06/10/2012 08:43 PM, Ben Fritz wrote:
On Saturday, June 9, 2012 1:30:38 PM UTC-5, Richard wrote:
When editing one produces changes. The '.' operation
will repeat the last change. What I want to to
be able to capture the current state of the change-list
(if such a thing exists), run a scr
When editing one produces changes. The '.' operation
will repeat the last change. What I want to to
be able to capture the current state of the change-list
(if such a thing exists), run a script which will make changes,
exit the script, and then if I type '.' have the change
that occurred just pri
Thanks
rundo and wundo did the trick.
Richard
On 06/09/2012 04:56 AM, Christian Brabandt wrote:
Hi richard!
On Fr, 08 Jun 2012, richard emberson wrote:
If one has an undo list, is there a way to
capture its its given state/length,
make additional edits, and then go back to
its captured
If one has an undo list, is there a way to
capture its its given state/length,
make additional edits, and then go back to
its captured state/length (with or without backing
out any new changes) and remove all later members of
the undo list (no redos) - truncate the undo list.
Thanks
Richard
--
Q
I've got a file with syntax highlighting.
What I'd like to be able to do, at any give line&column
character position on the screen which has a current
syntax highlighting scheme is to augment the highlighting
via a command/function at that one place, say, by
adding an underline at that point.
Is i
You are in console (non-gui) Vim and have split the
window (:sp). In the upper window you launch a script
that calls getchar().
What I'd like to be able to do is while the upper
window script is waiting on getchar(), switch to the
lower window and have a normal editing session and, then,
when I wa
After splitting a window ":sp" there is now
an upper and lower window with a statusline between
them.
Is it possible to not have such a window-separating
statusline; the text from both windows would simply
be right next to each other without a separator?
Thanks
Richard
--
Quis custodiet ipsos cu
Is there a resource concerning the writing of optimized
Vim scripts (both memory usage and performance).
For instance:
Should variable name be short?
Should spaces not be put between tokens?
"value=" . value
a + b
let cnt = cnt + 1
versus
"value=".value
a+b
let cnt +=1
On 05/17/2012 08:28 AM, Ben Fritz wrote:
On Thursday, May 17, 2012 8:44:04 AM UTC-5, Richard wrote:
I am working on a plugin that draws.
I certainly can draw with characters such as:
'-', '|' and '+' which are supported by
all fonts. But, I'd like to do better for
those users that have fonts t
ow to tell if such a character will actually
be rendered.
Richard
On 05/17/2012 05:57 AM, Benjamin R. Haskell wrote:
On Wed, 16 May 2012, richard emberson wrote:
I am using a linux system with console Vim 7.3 in an xterm.
If I start the xterm with font 10x20, then if I enter
Cntl-V u 250C
I se
I am using a linux system with console Vim 7.3 in an xterm.
If I start the xterm with font 10x20, then
if I enter
Cntl-V u 250C
I see BOX DRAWINGS LIGHT DOWN AND RIGHT character
and entering 'ga' shows that its there.
If I enter
Cntl-V u 2554
the BOX DRAWINGS DOUBLE DOWN AND RIGHT
does not show u
Thanks.
I had come across DrawIt earlier while trying to find out
how to get the extended box drawing characters to render
with my Vim-xterm combination.
On 05/14/2012 11:31 AM, Charles E Campbell wrote:
On May 14, 2012, at 12:59 PM, richard emberson
wrote:
This post is with regards to
This post is with regards to using extended
box drawing characters in console Vim running
in a xterm on Linux. Specifically, its about
getting Vim to display not just the simple
box drawing characters like "cntl-V u 2500"
or "cntl-V u 250C" (which can be entered
with cntl-K as digraphs) but also t
In a script when one calls "cursor(line, column)" or
"execute normal 4rx", implicitly it is the current buffer
that is the target; it is the current buffer that is changed.
I'd like to know if its possible to explicitly alter the
target buffer in scripts such that, optionally, the same
edit comman
number of characters in the cursor line
plus one)
^^^
Richard
On 05/12/2012 09:11 AM, Bram Moolenaar wrote:
Richard Emberson wrote:
The eval documentation says that col('$') returns
"the number of characters ...&q
Success
:exec "highlight! Foo33 ctermbg=green guibg=green"
:call matchadd("Foo33", '\%>8c\%<21c\%>5l\%<14l.')
:call matchadd("Foo33", '\%>2c\%<11c\%>3l\%<6l.')
:exec "highlight! Foo34 ctermbg=white guibg=white"
:call matchadd("Foo34", '\%>18c\%<31c\%>5l\%<14l.')
:call matchadd("Foo34", '\%>12c\
match only works on a single pattern at a time.
Richard
You could try generating a random name for each block? or base it off the
line/column pairs?
Regards, Andy
On May 8, 3:01 pm, richard emberson
wrote:
Tim,
I finally got to the point in my project where I could tryout
your code. In
a:name. ' /\%>' .a:c1. 'c\%<' .a:c2. 'c\%>'
.a:l1. 'l\%<' .a:l2. 'l./'
endfunction
map h :call XXX("Foo33",8,21,5,14)
Thanks.
Richard Emberson
ps: 5W == Which Was What We Wanted
On 05/06/2012 05:12 PM, Tim Chase wrote:
46 matches
Mail list logo