On Friday, March 1, 2013 3:40:53 PM UTC-5, cyboman wrote:
I tried to post similar question vim_dev group, but I think I posted in the
wrong group. I apologize in advance if you have seen this question before.
I'm going to try to post it here.
Issue
I need to compile Vim with Python 3
On Friday, March 1, 2013 3:42:30 PM UTC-5, cyboman wrote:
On Friday, March 1, 2013 3:40:53 PM UTC-5, cyboman wrote:
I tried to post similar question vim_dev group, but I think I posted in the
wrong group. I apologize in advance if you have seen this question before.
I'm going to try
On Sunday, November 25, 2012 4:22:52 PM UTC-5, coot_. wrote:
On 15:31 Sun 25 Nov , rail shafigulin wrote:
I was trying to understand how runtimepath option works and was
experimenting with it. I bumped onto a small problem.
I set up my runtimepath and copy mycolor.vim file
I have a certain set of settings for cpp files. All those settings are located
in ~/.vim/after/ftplugin/cpp.vim
I would like to apply those settings to c files as well. I tried to put the
following code into ~/.vim/after/ftplugin/c.vim
set filetype=cpp
but I got the error saying that the
Does anybody know if there is a way to set different colorschemes for different
filetypes in the split window?
Any help is appreciated.
--
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 information, visit
On Sunday, November 25, 2012 5:54:34 PM UTC-5, Gary Johnson wrote:
On 2012-11-25, cyboman wrote:
I have a certain set of settings for cpp files. All those settings
are located in ~/.vim/after/ftplugin/cpp.vim
I would like to apply those settings to c files as well. I tried
I'm need to unmap a few of my mappings, but for some reason the unmap command
doesn't work. To see what mappings I have I enter the following command
:map
The output I get looks like this:
n -x*@dd
n Q *@x
Which led me to believe that -x and Q are mapped in the normal mode. However
I'm reading an online book, Learning Vim the hardway, and it talks about the
shiftround option. I tried it but it didn't affect anything. The effect was the
same as before. I tried reading the help but it wasn't very helpful :) Has
anybody used this option before? What is the advantage of it?
I have a - key mapped to move the line down. Here it is
map - ddp
I want to have a command opposite to it, _ to move the line up.
I tried map _ ddkP but it doesn't work. If I'm on the last line of text it will
move the text two lines up and if I'm on the first line it simply deletes the
lines,
i need to print some stuff from vim and i always used the hardcopy
command for this. it always worked for me, but for some reason when i
do it now instead of keywords (typedef, union, uint8 etc) i see big
black rectangle covering them. does anybody know what happened and how
to fix it?
any help
sometimes i need to make modifications to the syntax file but in order
for changes to take effect i need to restart vim. is it possible for
changes to take effect without a restart? does anybody know how to do
it?
any help is appreciated
--
You received this message from the vim_use maillist.
On Aug 18, 10:46 am, Ricardo Silva rjpdasi...@gmail.com wrote:
Hi,
Try using 'set guifont=Consolas:h11' instead and also move the statement to
the end of _vimrc file.
Ricardo Silva
On Thu, Aug 18, 2011 at 2:57 PM, cyboman rail.shafigu...@gmail.com wrote:
i decided to change
i decided to change default font and included the following command
into my _vimrc file
set guifont=Consolas:h11:cANSI
but the strange thing is that Vim doesn't seem to care. i closed it
and then reopened but for some reason the font is not set to what i
told it to be. i even rebooted my machine
On Aug 11, 5:49 pm, Gary Johnson garyj...@spocom.com wrote:
On 2011-08-11, cyboman wrote:
i set my backup and swap directories to
~\vimfiles\data\swap
~\vimfiles\data\backup
however at my work i very often have to edit two different revisions
of the same project, meaning that quite
i set my backup and swap directories to
~\vimfiles\data\swap
~\vimfiles\data\backup
however at my work i very often have to edit two different revisions
of the same project, meaning that quite often i have vim open two
files in different directories with the same name. because of the my
setting
my company is using a proprietary language. to mark scope in the code
they use
BEGIN and END keywords. END keyword is also used along with WHILE and
FOR. i would like to be able to highlight BEGIN and END with one color
and WHILE/FOR END with another. i looked through vim documentation but
On Jul 1, 1:38 pm, Taylor Hedberg tmhedb...@gmail.com wrote:
Vim scripts are composed of ex commands. Functions are expressions, not
ex commands, so they can't be used bare in a script; that is, they
must be wrapped in a proper command.
Not a valid Vimscript statement:
foo()
Valid:
i'm writing a small script and it requires the knowledge of the last
line number. is there a command in vim i could use to get it?
any help is appreciated
--
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
On Jul 1, 11:53 am, Taylor Hedberg tmhedb...@gmail.com wrote:
line('$') should do it.
:help line()
thanks, it worked.
--
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 information, visit
i'm writing a small script which uses setline. i'm somewhat new to vim
scripting. whenever setline was called i would get an error saying
that this is not an editor command. after looking up in the
documentation for setline, i changed it to call setline and everything
started working. but i'm
On Jun 28, 5:07 pm, Charles Campbell charles.e.campb...@nasa.gov
wrote:
cyboman wrote:
my company is using a propitiatory language. there are 4 kind of
different kind of strings that can be defined.
imystring
xmystring
bmystring
mystring
[snip]
Here's one attempt...
syn
On Jun 29, 9:12 am, ZyX zyx@gmail.com wrote:
Reply to message «Re: syntax highlight unusual strings»,
sent 15:37:51 29 June 2011, Wednesday
by cyboman:
what do z and e in \b\ze, \x\ze, \i\ze stand for?
:h /\ze
Original message:
On Jun 28, 5:07 pm, Charles Campbell
my company is using a propitiatory language. there are 4 kind of
different kind of strings that can be defined.
imystring
xmystring
bmystring
mystring
i'm writing a syntax file and want to be able to highlight strings in
a regular manner except when they start with a letter, i.e. i want
i'm trying to write a small script which will jump between info/
warning/error messages, i.e. instead of jumping to the next message,
which is what :cnext does, it will jump to the next error message. the
problem is that i don't know how does :cnext do it. i have the
information from the
i found solutions online on how to do indentation based on a filetype
however none of them worked except the last one. i would really
appreciate if someone could explain to me what was i doing wrong.
here are the solutions that didn't work
my .vimrc contains
set shiftwidth=2
set tabstop=2
i'm not new to vim but somewhat confused about this. what is the
difference between buffers and windows in vim? and is it significant?
any help is appreciated.
--
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
help for getquickfixlist says that the pattern entry is the search
pattern used to locate the error. i echoed it into a file and looked
at the value of the pattern and it is always empty. when i read help
i thought pattern would be one of the values used in errorformat,
however as it seems it is
On Jun 14, 3:53 pm, cyboman rail.shafigu...@gmail.com wrote:
help for getquickfixlist says that the pattern entry is the search
pattern used to locate the error. i echoed it into a file and looked
at the value of the pattern and it is always empty. when i read help
i thought pattern would
i'm writing code that which syntax is very similar to vhdl however the
code is case sensitive. i would like to be able to made some
modifications to the syntax highlighting without modifying the actual
vhdl.vim. i understood that i need to put my syntax file into .vim/
after/syntax/vhdl.vim.
On May 23, 8:35 pm, Ben Schmidt mail_ben_schm...@yahoo.com.au wrote:
First, note that it doesn't behave as you claim. I saved your example
into a file, sourced your :set commands then did :cfile on the file
saved earlier, and I got this in the quickfix window:
|| filepath1,123, Warning
On May 23, 8:35 pm, Ben Schmidt mail_ben_schm...@yahoo.com.au wrote:
First, note that it doesn't behave as you claim. I saved your example
into a file, sourced your :set commands then did :cfile on the file
saved earlier, and I got this in the quickfix window:
|| filepath1,123, Warning
On May 4, 9:10 am, Ben Schmidt mail_ben_schm...@yahoo.com.au wrote:
On 30/04/11 5:13 AM, cyboman wrote:
the compiler and lint tool my company is using generate 3 kinds of
messages:errors,warningsand info. right now my keys are mapped in
such a way that inquickfixwindow
my compiler produces errors/warnings in the following format:
path\to\fiile1,line_number level[tag]: message
(file1,53 Warning[Te551]: message for file 1)
where level is either warning/info/error, and tag is usually two
letters and a number (Te551).
right now i have my errorformat set to
set
On May 22, 10:38 am, Ben Schmidt mail_ben_schm...@yahoo.com.au
wrote:
On 22/05/11 12:44 PM, cyboman wrote:
the lint we are using outputs warnings and info messages. they are all
in the same format:
file_path,line_number message_type message_type_number: message
where message_type
the lint we are using outputs warnings and info messages. they are all
in the same format:
file_path,line_number message_type message_type_number: message
where message_type is either warning or info
however for some reason when a warning message is followed by an info
message quick fix puts all
On May 21, 2:42 pm, Marcin Szamotulski msza...@gmail.com wrote:
On 13:55 Sat 21 May , Christian Brabandt wrote:
Hi Ben!
On Sa, 21 Mai 2011, Ben Schmidt wrote:
I tried writing some autocommands, but they didn't work, because it
seems the buffer type isn't set until after
On May 20, 4:13 pm, Gary Johnson garyj...@spocom.com wrote:
On 2011-05-20, cyboman wrote:
does anybody know if it is possible to use regular expressions in
errorformat option? and if yes then how can i do it?
Yes it is. There is not a help tag for that particular entry, but
if you
is there an option telling vim not to expand ~/ ?
thanks
--
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 information, visit http://www.vim.org/maillist.php
On May 18, 1:15 pm, Gary Johnson garyj...@spocom.com wrote:
On 2011-05-18, cyboman wrote:
On May 17, 4:02 pm, Gary Johnson garyj...@spocom.com wrote:
On 2011-05-17, cyboman wrote:
On May 11, 9:29 am, Ben Schmidt wrote:
On 11/05/11 11:11 PM, cyboman wrote:
i have
i'm new to using this option and find it very useful.
the compiler and link tools we use at work produce info, warning and
error messages. i'm trying to play with errorformat to distinguish
between the messages but so far unsuccessful. for some reason it traps
info and warning messages together.
On May 17, 4:02 pm, Gary Johnson garyj...@spocom.com wrote:
On 2011-05-17, cyboman wrote:
On May 11, 9:29 am, Ben Schmidt wrote:
On 11/05/11 11:11 PM, cyboman wrote:
i have the following settings in my _vimrc for make
set makeef=error.err the errorfile for :make and :grep
On May 17, 5:59 am, Albie Janse van Rensburg albie@gmail.com
wrote:
cyboman wrote on 17/05/2011 05:00 AM:
i installed gvim on my linux machine, but i'm getting a critical
error. it doesn't really bug me, since gvim is working fine but i
would like to know why i have. this is what i
On May 11, 9:29 am, Ben Schmidt mail_ben_schm...@yahoo.com.au wrote:
On 11/05/11 11:11 PM, cyboman wrote:
i have the following settings in my _vimrc for make
set makeef=error.err the errorfile for :make and :grep
set makeprg=gmake.exe\ --win32
set errorformat=%f\(%l\)\ :\ %m,%C\ \ %p
i installed gvim on my linux machine, but i'm getting a critical
error. it doesn't really bug me, since gvim is working fine but i
would like to know why i have. this is what i sometimes have displayed
in the terminal:
** (gvim:27474): CRITICAL **: murrine_style_draw_box: assertion
`height = -1'
i'm trying to set a path for my gmake.exe in WinXP. unfortunately it
just happens so that company i'm working for has gmake.exe on a per
project basis. i.e.
C:\Documents and Settings\username\projects\projectname\trunk\tools
\gmake.exe
i think i figured out how i'm going to set my makeprg but
On May 13, 4:42 pm, Gary Johnson garyj...@spocom.com wrote:
On 2011-05-13, cyboman wrote:
On May 13, 3:52 pm, Gary Johnson wrote:
On 2011-05-13, cyboman wrote:
i'm trying to set a path for my gmake.exe in WinXP. unfortunately it
just happens so that company i'm working for has
i would like to move my .vimrc and .viminfo files in .vim directory.
the reason for it is so that i could keep my .vim directory under svn.
does anybody know how to tell vim to search for .viminfo and .vimrc in
different directories?
please click reply to author when replying this thread.
any
i have the following settings in my _vimrc for make
set makeef=error.err the errorfile for :make and :grep
set makeprg=gmake.exe\ --win32
set errorformat=%f\(%l\)\ :\ %m,%C\ \ %p^\,%C%p~,%A\%f\\\,%l%m\,%C%m
\,%Z
unfortunately i'm not able to find the error.err file after
compilation. can
does anybody know how to do search of lines that don't contain a
pattern:
/pattern
searches for a occurrence of a pattern, but i need a way to search for
lines that don't have a pattern.
please click reply to author when replying this thread.
any help is appreciated.
--
You received this
i'm writing a script to modify the copyright notice. the problem is
that are multiple notices in the file. i need to be able to find a
line where the last notice occurs. vim search() function finds only
the first pattern occurrence. does anybody know of a way to find the
last pattern occurrence?
the idea is not to move the cursor. :$ moves it to the end of file.
does anybody have any other suggestions. also please click 'Reply to
author' so i could get notified.
thanks
On May 5, 11:01 am, Christian Brabandt cbli...@256bit.org wrote:
On Thu, May 5, 2011 4:55 pm, cyboman wrote:
i'm
thank you everyone. i ended up using winsaveview()/winrestview()
On May 5, 12:47 pm, ZyX zyx@gmail.com wrote:
Reply to message «Re: search for the last pattern occurrence without moving
the
cursor»,
sent 19:41:41 05 May 2011, Thursday
by cyboman:
the idea is not to move the cursor
thanks everyone.
On Apr 30, 9:46 pm, John Beckett johnb.beck...@gmail.com wrote:
cyboman wrote:
i'm trying to write a small vim function which will modify a
copyrightyear each time i'm opening a file.
You might want to look at the ideas
here:http://vim.wikia.com/wiki
i'm trying to write a small vim function which will modify a copyright
year each time i'm opening a file. here is what i came up with
function UpdateCopyrightYear()
let l:cmd = 's/\(\d\+\)/\1-'.strftime(%Y).'/'
g/Copyright 2010, Company E/exec l:cmd
endfunction
the problem that i'm facing
the compiler and lint tool my company is using generate 3 kinds of
messages: errors, warnings and info. right now my keys are mapped in
such a way that in quick fix window i jump between warnings, errors
and info. is there a way to setup key mappings so that one key would
only jump between errors,
does anybody know if there is a way to capture the result of a global
search in vim.
for example in perl i can do the following
string =~ /(pattern1)someword/i
and $1 will contain patter1.
is something like this possible in vim scripting?
any help is appreciated
--
You received this message
i'm trying to learn a bit of vim scripting, specifically i'm trying to
understand how to do something similar to scanf().
say we have a command
map ,cd :cd %:p:hCR
what do those %:p:h mean? can anyone recommend a help file i need do
read in order to understand the meanings of %:p:h?
any help
57 matches
Mail list logo