Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-31-2006, 12:08 PM
|
#1
|
Member
Registered: Aug 2004
Location: Argentina
Distribution: slackware 12
Posts: 211
Rep:
|
how to set bold-font in vim?
hello... I'm shure it's easy to set it .. but cannot find out how.
it's Vim versión 6.3.7 **not the gui one(gvim)!
I've searched and the only thing I found was strings like:
set guifont=the*font*name:b // 'b' stands from 'bold'
..and the like.. but no one works puttin'em in the .vimrc nor in the vim's command line during run-time (using ':' at the begining of the string, as every command in vim).
What I want is to set bold font to the entire editor just to see better when writting code .. if the 'bold' feature can be set *only* in .c files (as the syntax recognition and highlight) that would be great..
can anybody help me with this issue?
thanks in advance.
|
|
|
02-01-2006, 05:06 AM
|
#2
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467
Rep: 
|
I'm not sure about this but try:
Code:
" Switch syntax highlighting on, when the terminal has colors
" Also switch on highlighting the last used search pattern.
if &t_Co > 2 || has("gui_running")
syntax on
set hlsearch
endif
" Only do this part when compiled with support for autocommands.
if has("autocmd")
" Enable file type detection.
" Use the default filetype settings, so that mail gets 'tw' set to 72,
" 'cindent' is on in C files, etc.
" Also load indent files, to automatically do language-dependent indenting.
filetype plugin indent on
These are some of the setings from the example file /usr/local/share/vim/vim63/gvimrc_example.vim which I began using some time ago, and I do have bold font and syntax hilighting for most things and wonder in bold is set auto by the hilightin
|
|
|
02-01-2006, 10:31 AM
|
#3
|
Member
Registered: Aug 2004
Location: Argentina
Distribution: slackware 12
Posts: 211
Original Poster
Rep:
|
hi, dive
I've got the same code as you in my .vimrc file, but no bold font at all 
..but you say you already have bold font ... let's analize that code lines:
Code:
if &t_Co > 2 || has("gui_running")
syntax on
guess that's turning on the syntax-highlight .. no problem: I've got that..
the next:
it seems that's turning on the highlight search -in fact, in my case the one highlighted isn't the target string, but the background behind it (an ugly-yellow bkg color, puajj!)
in any case, I've got that, too...
..so, I cannot see where is the "set-bold-font:TRUE" string in that code.. (that string was just an example..don't now the real syntax)
maybe you've got such "instruction" elsewhere in your code?
tx 4 helping.
|
|
|
02-01-2006, 10:44 AM
|
#4
|
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467
Rep: 
|
Well heres the whole .vimrc:
Code:
" An example for a vimrc file.
"
" Maintainer: Bram Moolenaar <Bram@vim.org>
" Last change: 2002 Sep 19
"
" To use it, copy it to
" for Unix and OS/2: ~/.vimrc
" for Amiga: s:.vimrc
" for MS-DOS and Win32: $VIM\_vimrc
" for OpenVMS: sys$login:.vimrc
" When started as "evim", evim.vim will already have done these settings.
if v:progname =~? "evim"
finish
endif
" Use Vim settings, rather then Vi settings (much better!).
" This must be first, because it changes other options as a side effect.
set nocompatible
" allow backspacing over everything in insert mode
set backspace=indent,eol,start
if has("vms")
set nobackup " do not keep a backup file, use versions instead
else
set nobackup " keep a backup file
endif
set history=50 " keep 50 lines of command line history
set ruler " show the cursor position all the time
set showcmd " display incomplete commands
set incsearch " do incremental searching
" For Win32 GUI: remove 't' flag from 'guioptions': no tearoff menu entries
" let &guioptions = substitute(&guioptions, "t", "", "g")
" Don't use Ex mode, use Q for formatting
map Q gq
" This is an alternative that also works in block mode, but the deleted
" text is lost and it only works for putting the current register.
"vnoremap p "_dp
" Switch syntax highlighting on, when the terminal has colors
" Also switch on highlighting the last used search pattern.
if &t_Co > 2 || has("gui_running")
syntax on
set hlsearch
endif
" Only do this part when compiled with support for autocommands.
if has("autocmd")
" Enable file type detection.
" Use the default filetype settings, so that mail gets 'tw' set to 72,
" 'cindent' is on in C files, etc.
" Also load indent files, to automatically do language-dependent indenting.
filetype plugin indent on
" Put these in an autocmd group, so that we can delete them easily.
augroup vimrcEx
au!
" For all text files set 'textwidth' to 78 characters.
autocmd FileType text setlocal textwidth=78
" When editing a file, always jump to the last known cursor position.
" Don't do it when the position is invalid or when inside an event handler
" (happens when dropping a file on gvim).
autocmd BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal g`\"" |
\ endif
augroup END
else
set autoindent " always set autoindenting on
endif " has("autocmd")
This is pretty much the exact example file except I turned backups off temporarily
Last edited by dive; 02-01-2006 at 10:46 AM.
|
|
|
02-01-2006, 02:20 PM
|
#5
|
Member
Registered: Aug 2004
Location: Argentina
Distribution: slackware 12
Posts: 211
Original Poster
Rep:
|
mmm ... I copy your .vimrc and set it to become mine, but still no bold-font ... 
just finished googlin' about the issue, with no luck.. don't know where else to search. (at least it is not *so* important)
thanks anyway, pal
|
|
|
All times are GMT -5. The time now is 07:53 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|