You are not logged in.

#1 2004-12-27 17:33:11

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

gvim font problem

hello,
i usually use bitstream vera sans mono in gvim and they work perfectly but now i want to use a normal width font, not a mono one, but when i do that they are spreading out and look like shit,
i just want them to look normal without fixed width,
is that possible?


arch + gentoo + initng + python = enlisy

Offline

#2 2004-12-27 17:46:19

GuyonAsm
Member
Registered: 2004-05-25
Posts: 49

Re: gvim font problem

maybe you have to set the font, save it, and then restart the program. It works for me.

Offline

#3 2004-12-27 18:30:43

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

Re: gvim font problem

i can choose fonts but they are spreading out, i want to use them as normal width, not fixed,


arch + gentoo + initng + python = enlisy

Offline

#4 2005-01-01 04:04:58

miqorz
Member
Registered: 2004-12-31
Posts: 475

Re: gvim font problem

You need a monospaced font, or else it'll do that.


http://wiki2.archlinux.org/

Read it. Love it. Live it. Or die.

Offline

#5 2005-01-01 20:38:49

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

Re: gvim font problem

this sucks! it should be possible to use normal font width, :-(


arch + gentoo + initng + python = enlisy

Offline

#6 2005-01-01 21:57:48

miqorz
Member
Registered: 2004-12-31
Posts: 475

Re: gvim font problem

Oh quit your whining.


http://wiki2.archlinux.org/

Read it. Love it. Live it. Or die.

Offline

#7 2005-01-24 12:18:59

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

Re: gvim font problem

ok, I quit the whining and wrote my own editor instead, so now I have normal fonts with dark background and big cursor, big_smile
I've been running it daily for a few weeks so it is pretty bugfree now,
here is pkgbuild for it

pkgname=lazy-edit
pkgver=0.2
pkgrel=1
pkgdesc="Basic GTK text editor."
url=""
depends=('pygtk')
source=(http://xerxes2.1go.dk/lazy-edit-0.2.tar.gz)
md5sums=('32e29636d26105cb2df1c17d3a667999')

build() {
  cd $startdir/src/$pkgname-$pkgver
  mkdir -p $startdir/pkg/usr/bin
  mkdir -p $startdir/pkg/usr/share/lazy-edit
  mkdir -p $startdir/pkg/usr/lib/python2.4/site-packages/lazy_edit  
  install -m 755 lazy-edit $startdir/pkg/usr/bin
  install -m 644 rc $startdir/pkg/usr/share/lazy-edit
  install -m 755 *.py $startdir/pkg/usr/lib/python2.4/site-packages/lazy_edit
  }

it's of course written in the best language on the planet,  8)


arch + gentoo + initng + python = enlisy

Offline

#8 2005-01-24 12:52:41

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,891
Website

Re: gvim font problem

This is one of the Best Editors I have ever used ...... 8)


Mr Green

Offline

#9 2005-01-24 13:26:49

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: gvim font problem

whats wrong with gedit.. or leafpad?

Offline

#10 2005-01-24 13:30:38

miqorz
Member
Registered: 2004-12-31
Posts: 475

Re: gvim font problem

iphitus wrote:

whats wrong with gedit.. or leafpad?

GEdit == Bloated piece of crap with tons of gnome dependencies.
Leafpad == Not enough features.


http://wiki2.archlinux.org/

Read it. Love it. Live it. Or die.

Offline

#11 2005-01-24 18:13:52

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

Re: gvim font problem

I've tried gedit but I couldn't change colour and size on the cursor, besides, as migorz said it is bloated.
haven't heard of leafpad before, is it possible to tweak the cursor on it? I'm writing in marathon sessions so my head explode if I can't have the exact right appearance on the monitor,
thanks also to mr green! he's the chief of the beta team  8)


arch + gentoo + initng + python = enlisy

Offline

#12 2005-01-24 19:01:38

oscar
Member
From: Kiruna, Sweden
Registered: 2004-08-13
Posts: 457

Re: gvim font problem

xerxes2 wrote:

ok, I quit the whining and wrote my own editor instead,

man, are you serious?!  :shock:  :shock:  :shock:

Edit:
wtf?
A beginners course in python programming, in swedish?
Man, I love you! big_smile


To err is human... to really foul up requires the root password.

Offline

#13 2005-01-25 15:57:02

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

Re: gvim font problem

I love you too, fellow swede  tongue
that tutorial is for getting started with the logic and syntax of Python, once you know how the structure works you can find all you need in the official documentation at python.org and pygtk.org ,

I'm learning C now so I add one tutorial for that languge soon,


arch + gentoo + initng + python = enlisy

Offline

#14 2005-01-25 17:26:09

oscar
Member
From: Kiruna, Sweden
Registered: 2004-08-13
Posts: 457

Re: gvim font problem

xerxes2 wrote:

I love you too, fellow swede  tongue
that tutorial is for getting started with the logic and syntax of Python, once you know how the structure works you can find all you need in the official documentation at python.org and pygtk.org ,

I'm learning C now so I add one tutorial for that languge soon,

*kramar* smile


To err is human... to really foul up requires the root password.

Offline

#15 2005-01-26 00:04:57

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: gvim font problem

xerxes2 wrote:

I love you too, fellow swede  tongue
that tutorial is for getting started with the logic and syntax of Python, once you know how the structure works you can find all you need in the official documentation at python.org and pygtk.org ,

I'm learning C now so I add one tutorial for that languge soon,

try here if you're delving into c++ later on : http://www.parashift.com/c++-faq-lite/index.html

Offline

#16 2005-01-26 21:42:05

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

Re: gvim font problem

thanks for thre tip phrakture but I think I stay with python and c for a long time now, I'm trying to learn the python c api also but it's very difficult syntax for that,

if you have some nice links for c you're welcome to post them, I've found a few uni courses on the net but they were more for beginners only and I'm looking for something more complete,


arch + gentoo + initng + python = enlisy

Offline

#17 2005-01-26 21:45:57

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: gvim font problem

xerxes2 wrote:

thanks for thre tip phrakture but I think I stay with python and c for a long time now, I'm trying to learn the python c api also but it's very difficult syntax for that,

if you have some nice links for c you're welcome to post them, I've found a few uni courses on the net but they were more for beginners only and I'm looking for something more complete,

when I get home I'll see what I can find.  I'm a big fan of C++, just because I like the way you get really elegant code when doing template stuff...

Offline

#18 2005-01-26 21:57:18

xerxes2
Member
From: Malmoe, Sweden
Registered: 2004-04-23
Posts: 1,249
Website

Re: gvim font problem

ok, but you're an experienced coder,
some people told me that c++ is much more difficult than c and the binaries are slower because it's almost impossible to write a good compiler for it,

it took me 3-4 month's to understand python and now when I started with c it's much easier but now I alos have to learn how compiler works and that is the hard part with c,

after I learn C(3 months hopefully) I'll take a look at C++ or D, 
but Python still is much faster to code in,


arch + gentoo + initng + python = enlisy

Offline

#19 2005-01-26 22:14:27

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: gvim font problem

wow I just wrote alot... sorry...
yes well, once you get about 2-3 languages undfer your belt, they all blur together... I've tried to compile C code with "vars = []" in it before....

And as for C/C++ speed differences... the people who "think" they know what they're talking about always say C++ is slower... the thing is that you can use as much C in C++ code as you'd like.  The difference is that you are allowed to create classes in C++ instead of just POD structs.  Writing bad classes causes things to be very slow... the speed difference is only encountered when comparing highly hand-optimized C code to poor C++ code... it's more a potential than anything else.

Just to take a look at standard libraries.... string handling.... in C, strings must be managed by your own memory managing code.  In C++, the std::string class has it's own internal memory management.  In C I can write some real complex malloc/free loops and things like that to optimize my string handling... in C++ I don't need that, and the C++ strings are handled as optimal as they come (they have a block size and allocate memory in chunks of that size when it needs more... )

Anyway, that was my tyrade... if you want to talk sorting and searching... C's qsort vastly underperforms C++'s std::sort for iterator types... C++ has tons of sorting and searching algorithms built in.

I can guarentee you without a doubt that if you were to show me any C snippet, I can write C++ that outperforms it (with a slightly bigger binary size)

Also, what is more elegant:

const char *f = "for";
const char *m = "mat";
char *p = NULL;

p = malloc(strlen(f)+strlen(m),sizeof(char));
if(p == NULL) exit(1);
else strcat(p,f,m);

int x = 5;
float y = 4.3;
printf("this is a %s string, some numbers: %d %f",p,x,y);

or

const char *f = "for";
const char *m = "mat";
std::string p(f);
p += m;

int x = 5;
float y = 4.3;
std::cout << "this is a " << p << "string, some numbers: " << x << " " << y;

[/b]

Offline

Board footer

Powered by FluxBB