Hi,
I've searched Vim help and Google as well as done lots of
experimentation with no luck.
Basically, what I'm trying to do is put something in my .vimrc file that
can determine if I'm starting Vim in text-console mode or in gnome-terminal.
The reason I need to do this is because I log
On Tue, Feb 1, 2011 at 2:53 PM, Steve Laurie mr.steven.lau...@gmail.com wrote:
Hi,
I've searched Vim help and Google as well as done lots of experimentation
with no luck.
Basically, what I'm trying to do is put something in my .vimrc file that can
determine if I'm starting Vim in
On Tue, February 1, 2011 10:23 am, Steve Laurie wrote:
Hi,
I've searched Vim help and Google as well as done lots of
experimentation with no luck.
Basically, what I'm trying to do is put something in my .vimrc file that
can determine if I'm starting Vim in text-console mode or in
On Tue, Feb 1, 2011 at 3:30 PM, Christian Brabandt cbli...@256bit.org wrote:
[snip]
So you basically distinguish it by inspecting your $TERM variable. First
determine in both situations what your $TERM is set to, then put something
like this in your .vimrc
Ah, I mis-read the post. Clearer
On Fri, Jan 28, 2011 at 07:37:17AM +0100, Christophe-Marie Duquesne wrote:
On Fri, Jan 28, 2011 at 6:52 AM, Ben Schmidt
mail_ben_schm...@yahoo.com.au wrote:
On 28/01/11 3:56 PM, Chris Jones wrote:
Is it possible to remap CTRL-I to ‘Escape’ in insert mode without
remappingTab at the same
Note: this is spam, don't click on the link (which I obfuscated).
I really like this http://ilovSPAMon.com/inSPAMtml Hope u too!
--
hundred-and-one symptoms of being an internet addict:
169. You hire a housekeeper for your home page.
/// Bram Moolenaar -- b...@moolenaar.net --
Hello,
How is the syntax to a for list with constants
e.g.
let mydb = db1 db2 db3
for db in mydb
source db.dict
end
Thank You
Joachim
--
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 apologize for being ornery. I have had to deal with Windows and ATT
lately. I will do better.
Heh, either Windows or ATT alone is enough to boil one's blood,
so I can sympathize and appreciate the occasional bad day. :)
I'm aware of most of the options in vim. I'm not aware of any
option
How is the syntax to a for list with constants
e.g.
let mydb = db1 db2 db3
for db in mydb
source db.dict
end
I think you're looking for list literals:
for db in ['db1', 'db2', 'db3']
exec 'source ' . db . '.dict'
endfor
-tim
--
You received this message from the vim_use
On 2011/2/1 15:50, Christian Brabandt wrote:
On Mon, January 31, 2011 6:20 pm, H Xu wrote:
Hello everybody,
In a vimscript file, parentheses across multi lines is highlighted as
errors, which is shown in the attachment. Is there any way to fix this?
Thanks.
This was recently discussed here.
Hi all,
I have a text file with more than 40,000,000 lines. It takes VIM very long
time to load. Is there anything I can do to make it quicker?
--
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've occasionally wished for a --wtf option to vim that would
effectively open both the unrecovered and recovered versions in a
diffsplit allowing me to compare them. Currently I have to
1) open the file with -r to recover
2) write the file to a temp file
3) quit vim
4) delete the swapfile
On 02/01/11 05:52, Wayne Young wrote:
I have a text file with more than 40,000,000 lines. It takes
VIM very long time to load. Is there anything I can do to make
it quicker?
You may want to investigate the common large-file solutions:
http://www.vim.org/scripts/script.php?script_id=1506
On Tue, February 1, 2011 12:41 pm, Tim Chase wrote:
I've occasionally wished for a --wtf option to vim that would
effectively open both the unrecovered and recovered versions in a
diffsplit allowing me to compare them. Currently I have to
1) open the file with -r to recover
2) write the
On 1/02/11 11:17 PM, Ben Schmidt wrote:
I've occasionally wished for a --wtf option to vim that would
effectively open both the unrecovered and recovered versions in a
diffsplit allowing me to compare them. Currently I have to
1) open the file with -r to recover
2) write the file to a temp file
Hi, all
I'm new to vim script language and struggling to code a simple
function to switch between header and source.
Here are the
function! SwitchSourceHeader()
if (expand (%:e) == cpp || expand (%:e) == c || expand
(%:e) == cc )
find %:t:r.h
elseif ( expand (%:e) == h )
On 02/01/11 21:07, Karthick Gururaj wrote:
On Tue, Feb 1, 2011 at 3:30 PM, Christian Brabandtcbli...@256bit.org wrote:
[snip]
So you basically distinguish it by inspecting your $TERM variable. First
determine in both situations what your $TERM is set to, then put something
like this in
On Tue, Feb 1, 2011 at 6:21 PM, shuda Li lishuda1...@gmail.com wrote:
Hi, all
I'm new to vim script language and struggling to code a simple
function to switch between header and source.
Here are the
function! SwitchSourceHeader()
if (expand (%:e) == cpp || expand (%:e) == c || expand
Christian Brabandt wrote:
On Sat, January 29, 2011 10:59 am, Andy Wokula wrote:
Am 26.01.2011 18:41, schrieb Ben Fritz:
From looking at :list, it seems like it's basically supposed to print
the line as it would show with 'list' turned on. However, I have a few
questions:
:help :list
However, I get the following
Error detected while processing function SwitchSourceHeader:
line 5:
E492 Not an editor command: filename = expand(%:t:r)
I am wondering if anyone can point out a correct way for doing this.
In vimscript, 'let' isn't just used to declare variables the first time
So you basically distinguish it by inspecting your $TERM variable. First
determine in both situations what your $TERM is set to, then put something
like this in your .vimrc
Ah, I mis-read the post. Clearer now :)
Thanks for your help. unfortunately, none of these suggestions work.
If I had
On Feb 1, 2011, at 5:33 AM, Hofmann, Joachim wrote:
Hello,
How is the syntax to a for list with constants
e.g.
let mydb = db1 db2 db3
for db in mydb
source db.dict
end
let mydb = db1 db2 2b3
for db in split(mydb)
exec 'source '.db.'.dict'
end
I'm not sure what your db.dict is,
On 01/02/2011 02:39 a.m., Christian Brabandt wrote:
On Tue, February 1, 2011 4:59 am, Cesar Romani wrote:
I'm using gvim 7.3.107 on Win XP with vimball v32c
If I have the following file:
autoload\dbext.vim
autoload\dbext_dbi.vim
doc\dbext.txt
doc\dbext_gpl.dat
On Feb 1, 2011, at 7:15 AM, Ben Schmidt wrote:
However, I get the following
Error detected while processing function SwitchSourceHeader:
line 5:
E492 Not an editor command: filename = expand(%:t:r)
I am wondering if anyone can point out a correct way for doing this.
In vimscript,
Original Message
Subject: Re: Determining if Vim is running in text-console mode or X Windows
Date: Wed, 02 Feb 2011 01:02:55 +1100
From: Steve Laurie mr.steven.lau...@gmail.com
To: Ben Schmidt mail_ben_schm...@yahoo.com.au
On 02/02/11 00:24, Ben Schmidt wrote:
So you
Thank you every one!
Briefly conclude:
let filename = expand(%:t:r).'.cpp'
Shuda
On Tue, Feb 1, 2011 at 1:47 PM, Israel Chauca F.
israelvar...@fastmail.fm wrote:
On Feb 1, 2011, at 7:15 AM, Ben Schmidt wrote:
However, I get the following
Error detected while processing function
Hello,
shuda Li wrote:
Thank you every one!
Briefly conclude:
let filename = expand(%:t:r).'.cpp'
Hmm.. Did you see the Alternate plugin (#31) ? And IIRC, there exist another
plugin that does the same job.
--
Luc Hermitte
http://lh-vim.googlecode.com/
http://hermitte.free.fr/vim/
--
On 01/02/11 11:27, Raúl Núñez de Arenas Coronado wrote:
Hi Tony :)
I have to use gVim on Windows, at least for a while, and I wonder if
there is any updating schedule for it. I've downloaded the current
version and it is 7.3.46, while the last patch published is 107.
Do you know when is it
Hi Tony :)
2011/2/1 Tony Mechelynck antoine.mechely...@gmail.com:
On 01/02/11 11:27, Raúl Núñez de Arenas Coronado wrote:
I'm lost in Windows, I must confess...
The unofficial reference for Vim on Windows is the Vim without Cream
distribution, downloadable from
I downloaded dbext_1200. By installing the docs with helptags I'm
getting:
E154: Duplicate tag /MyProjectDir/ in file
C:\home\Romer\vimfiles\doc/dbext.txt
Many thanks in advance,
--
Cesar
--
You received this message from the vim_use maillist.
Do not top-post! Type your reply below the text
Check if $DISPLAY is not empty.
On Tue, Feb 1, 2011 at 12:23, Steve Laurie mr.steven.lau...@gmail.com wrote:
Hi,
I've searched Vim help and Google as well as done lots of experimentation
with no luck.
Basically, what I'm trying to do is put something in my .vimrc file that can
determine if
On 02/02/11 01:51, Marvin Renich wrote:
* Steve Lauriemr.steven.lau...@gmail.com [110201 06:57]:
Thanks for your help. unfortunately, none of these suggestions work.
Hmm. You say in your original message that you have tried
has(gui_running). This works for me (and has for a long time).
As
Is there a file where I can put words that I use often to work with
autocomplete?
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 Tue, 1 Feb 2011, Tim Chase wrote:
I apologize for being ornery. I have had to deal with Windows and
ATT lately. I will do better.
Heh, either Windows or ATT alone is enough to boil one's blood, so I
can sympathize and appreciate the occasional bad day. :)
I'm aware of most of the
On Sat, 29 Jan 2011, Ed Bradford wrote:
I use DropBox. I edit a file on computer A and FORGET to exit vim.
Now on computer B, the .swp file prevents me from editing. I know I
can ignore and just to go computer. However, VIM and DropBox could
solve my problem by having an option to update on
You could setup a dictionary and add it.
setlocal dictionary+=/your/file/name
Where the file contains:
each
word
you
want
to
complete
on
new
lines
See :h 'dictionary'
Try that and see what it gets you.
Dave
On 2/1/2011 10:22 AM, Adolfo Olivera wrote:
Is there a file where I can
* Steve Laurie mr.steven.lau...@gmail.com [110201 09:17]:
Hi Marvin,
On my system, gui_running only distinguishes between Vim and gvim.
I put let my_has_gui_running = has(gui_running) early in my
~/.vimrc file and did :echo my_has_gui_running
In Vim run from the black and white tty
On 02/02/11 08:24, Marvin Renich wrote:
* Steve Lauriemr.steven.lau...@gmail.com [110201 09:17]:
Hi Marvin,
On my system, gui_running only distinguishes between Vim and gvim.
I put let my_has_gui_running = has(gui_running) early in my
~/.vimrc file and did :echo my_has_gui_running
In Vim
On Wed, 2 Feb 2011, Steve Laurie wrote:
[...]
Both in text console and in gnome-terminal, :echo $DISPLAY returns 0
(int, not a string) - still no difference between tty text mode and
terminal emulator.
Maybe I'm misunderstanding something in your response, but you shouldn't
test the
On 02/02/11 09:25, Benjamin R. Haskell wrote:
On Wed, 2 Feb 2011, Steve Laurie wrote:
[...]
Both in text console and in gnome-terminal, :echo $DISPLAY returns 0
(int, not a string) - still no difference between tty text mode and
terminal emulator.
Maybe I'm misunderstanding something in
On 02/01/2011 09:29 AM, Luc Hermitte wrote:
shuda Li wrote:
let filename = expand(%:t:r).'.cpp'
Hmm.. Did you see the Alternate plugin (#31) ? And IIRC, there
exist another plugin that does the same job.
As an alternative :-) I use and enjoy Derek Wyatt's FSwitch
plugin for this purpose:
H Xu wrote:
On 2011/2/1 15:50, Christian Brabandt wrote:
On Mon, January 31, 2011 6:20 pm, H Xu wrote:
Hello everybody,
In a vimscript file, parentheses across multi lines is highlighted as
errors, which is shown in the attachment. Is there any way to fix this?
Thanks.
This was recently
I have a problem and a couple of optimizations I'd like to get some
help with if I could.
I have the following in my '.vim/after/ftplugin/perl.vim' file:
--8-
if ! exists(g:did_perl_statusline)
setlocal statusline+=%(\
Excerpts from Alan Young's message of Wed Feb 02 02:01:01 +0100 2011:
The problem is with the 'did_perl_statusline' if construct. If I have
this in place, then only the first perl file loaded will have the
output appended to the status line. [..]
There is also a buffer local scope called b:
On Tue, Feb 1, 2011 at 18:34, Marc Weber marco-owe...@gmx.de wrote:
There is also a buffer local scope called b: which you may want to use.
That seems to have done the trick for that particular problem. Thank you.
--
Alan Young
--
You received this message from the vim_use maillist.
Do not
Hello,
You have to excuse me if this is a silly question. But as you might have
guessed I'm new to vim.
I've defined a variable s:nfile and want to use it in the following expression.
!stylus '%:p' s:nfile
This doesn't work and really runs !stylus whatever_is_the_current_file
s:nfile.
On Sun, Jan 30, 2011 at 09:03:03AM EST, Dotan Cohen wrote:
On Fri, Jan 28, 2011 at 16:18, adroid28 d.athina...@gmail.com wrote:
[..]
Or is it that with time I will be able to reach the numbers row
without looking?
I took a file to the F, J, 4, 8, F4, and F8 keys on the keyboard to
On Tue, Feb 01, 2011 at 05:49:13AM EST, Erik Christiansen wrote:
On Fri, Jan 28, 2011 at 07:37:17AM +0100, Christophe-Marie Duquesne wrote:
On Fri, Jan 28, 2011 at 6:52 AM, Ben Schmidt
mail_ben_schm...@yahoo.com.au wrote:
On 28/01/11 3:56 PM, Chris Jones wrote:
Is it possible to
On Sun, Jan 30, 2011 at 05:52:59AM EST, John Little wrote:
In the spirit of this thread, I'll bite...
Chris said:
There's only so much can fit under my skull..
I don't believe that limit is relevant; there's only a few hundred vim
commands, if you use them you'll remember them.
Sloppy
Reply to message «value of a variable within a expression»,
sent 04:04:51 02 February 2011, Wednesday
by Jonas Geiregat:
!stylus '%:p' s:nfile
This doesn't work and really runs !stylus whatever_is_the_current_file
s:nfile.
I've tried everything from echo s:nfile to let s:nfile within
Hi,
Does anyone have a good automation such that it provides a drop-down of
members of a structure when I type
struct X {
int a,b,c;
};
X x;
With the automation, I should be able to type x. and it should list out a,b
and c
Regards,
Kashyap
--
You received this message from the vim_use
but the strange thing is, if $TERM is set to xterm and not xterm-256color,
gkrellm locks up... something to do with the email part of it.
If I could just find where xterm is being set and change it to xterm-256color
without altering tty mode's TERM settings (i.e. cons25) I'd be laughing.
Maybe
52 matches
Mail list logo