Re: what is the language for vim development

2007-04-12 Thread flyfish

Hi,

Thank you very much for such useful information, i started to read the
usr_42.txt help file and it starts with a menu.vim file to explain how to
add new menu, i do not want to add module now, but i only want to know what
is the vim script language it is? and where to start to learn such language
and if it is necessary to learn or just study to use it from some existing
script code?

Thank you very much.


Reid Thompson wrote:
 
 flyfish wrote:
 Hi,
 
 i would like to do some contribution in vim development, i have used vim
 more than one year in programming and text edit, but when i want to start
 to
 code for vim, i even do not know what language is used for vim
 development,
 could you give me some information and steps how to do?
 
 http://www.vim.org/download.php
 
 
 http://svn.sourceforge.net/viewvc/vim/vim7/
 
 the language is C.
 
 

-- 
View this message in context: 
http://www.nabble.com/what-is-the-language-for-vim-development-tf3562125.html#a9968533
Sent from the Vim - General mailing list archive at Nabble.com.



what is the language for vim development

2007-04-11 Thread flyfish

Hi,

i would like to do some contribution in vim development, i have used vim
more than one year in programming and text edit, but when i want to start to
code for vim, i even do not know what language is used for vim development,
could you give me some information and steps how to do?
-- 
View this message in context: 
http://www.nabble.com/what-is-the-language-for-vim-development-tf3562125.html#a994
Sent from the Vim - General mailing list archive at Nabble.com.



how to color the word

2007-04-07 Thread flyfish

Hi,

i see the help file of vim and some words in the text is colored, for
example, when i read the develop.txt help file, some words like Note,
design-goal are colored with yellow or pink, how could it be done? i also
want to color some keywords in my files, how to do?

Thank you very much.
-- 
View this message in context: 
http://www.nabble.com/how-to-color-the-word-tf3540162.html#a9882273
Sent from the Vim - General mailing list archive at Nabble.com.



how to set font italic

2007-04-07 Thread flyfish

Hi,

i want to set some words in the text file in italic format, but not the
whole file, i use gvim and when i set font from the edit menu, and choose
italic, it will set all words in that file to be italic, but that is not
what i want, how to use command to implement? and i think there is also
problem with setting font bold

Thanks
-- 
View this message in context: 
http://www.nabble.com/how-to-set-font-italic-tf3541049.html#a9884872
Sent from the Vim - General mailing list archive at Nabble.com.



what is wrong with my keymap for commenting a block

2007-04-02 Thread flyfish

Hi,

i write a simple keymap for commenting C file,

map C 0i/*C-EscA*/C-Escj

now i want to use the command like 12C to comment a block, however, it does
not follow my mind, it does not comment one line then go down comment the
next line, it only give a lot of /* in the first line and make mistake, how
to implement what i want?

Thank you very much.
-- 
View this message in context: 
http://www.nabble.com/what-is-wrong-with-my-keymap-for-commenting-a-block-tf3506043.html#a9791728
Sent from the Vim - General mailing list archive at Nabble.com.



Re: what is wrong with my keymap for commenting a block

2007-04-02 Thread flyfish

Thank you very much, i got it.

A.J.Mechelynck wrote:
 
 flyfish wrote:
 Hi,
 
 i write a simple keymap for commenting C file,
 
 map C 0i/*C-EscA*/C-Escj
 
 now i want to use the command like 12C to comment a block, however, it
 does
 not follow my mind, it does not comment one line then go down comment the
 next line, it only give a lot of /* in the first line and make mistake,
 how
 to implement what i want?
 
 Thank you very much.
 
 The way you do it, the 12 in 12C is simply prepended to the mapping,
 changing 
 it to 120i/*Esc etc., i.e., adding /* ten times the count (120 times
 here), 
 then */ once at the end of the line.
 
 Method I: Put your command in a register, let's say q, and invoke that 
 register with a count:
 
   :let @q = 0i/*\eA*/\ej
 or
   :let @q = i\Home/*\End*/\Down\e
 
 and in either case
 
   :map C @q
 
 Method II: Use a Visual-mode mapping:
 
   :vmap F2 Esc:'-1put ='/* 'CR:'put =' */'CR
 or
   :vmap F2 Esc:'-1put ='#if 0'CR:'put ='#endif'CR
 
 I recommend the last of the above, which will (if I didn't goof) add #if
 0 
 above your (linewise) visual area and #endif below it, so than any /* */ 
 inside the block won't disturb the compilation.
 
 (I'm not sure what you use Ctrl-Esc for: I have no help for i_CTRL-Esc and
 on 
 my system, the Ctrl-Esc key is preempted by the window manager so that
 gvim 
 never sees it.)
 
 
 Best regards,
 Tony.
 -- 
 The society which scorns excellence in plumbing as a humble activity
 and tolerates shoddiness in philosophy because it is an exalted
 activity will have neither good plumbing nor good philosophy ...
 neither its pipes nor its theories will hold water.
 
 

-- 
View this message in context: 
http://www.nabble.com/what-is-wrong-with-my-keymap-for-commenting-a-block-tf3506043.html#a9800173
Sent from the Vim - General mailing list archive at Nabble.com.



Re: problem with taglist plugin

2007-01-04 Thread flyfish

i got it and installed successfully,

thank you very much



flyfish wrote:
 
 hi,
 
 i have used vim for some days and i would like to use the taglist plugin
 which is very hot in internet, my os is ubuntu 6 and the version of vim is
 7, i downloaded the taglist package and unziped it, then i put the two
 files taglist.vim and the doc file in corresponding places separately,
 then i open vim both in console and gvim, and use :Tlist command, but any
 of them failed and gived me the following message:
 
 Failed to generate tags for /home/myusername/.vim/plugin/taglist.vim
 ctags: unrecognized option `--format=2'[EMAIL PROTECTED] `ctags --help' for a
 complete list of options.^@
 
 i have searched from google and i also found that i had the file ctags in
 .vim directory, i do not know what to do next, could you give me a favor,
 thank you very much.
 

-- 
View this message in context: 
http://www.nabble.com/problem-with-taglist-plugin-tf2917220.html#a8158656
Sent from the Vim - Dev mailing list archive at Nabble.com.