TTrCodeAssistor : Accelerate your inputing during coding,with auto-complete the function prototype
script karma |
Rating 23/12,
Downloaded by 2761 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
winterTTr Wang |
|
script type |
utility |
|
description |
I make it as easy as possible and make a lot of action for you to accelerate
your inputing coding , accoding to the habit of a coder . So i make a lot of
expand 'key' word to append the content with hot key <c-cr> , and move to the
different area just by <tab> . So ,try and enjoy it ! I am sure you will love it!
I add the function that let the ( can complete the function prototype when you input
your coding which make you not have to remeber the sequence of the function arguments.
Add the menu item which let you can control whether this plugin can start or stop.
And of course you can let it start automatically by add this to your vimrc:
let g:TTrCodeAssistor_AutoStart=1
usage :
<c-cr> to expand the 'key' word ( you can change it to you habit )
<tab> to move forward and <s-tab> to move backward between the 'labels'
( key to compete the function prototype automantically.
) automatically move or input itself accoding to the content
<bs> use as normal but will remove the ) when its front char is (
Recently , i will just add some useful function without map them to some key
Just to expand the function of this plugin , so you can map it according to your taste. :-)
1. TTrcodeAssistor_ToggleComments
nnoremap <F7> :call TTrCodeAssistor_ToggleComments()<CR>
vnoremap <F7> :call TTrCodeAssistor_ToggleComments()<CR>
Note :
the function prototype completing must use the exuberant ctags to
make the tag files which you should add to vim by :set ctags+=/your/file
and You have to add the arguments --fields=+S after all your arguments
while making the tag files with 'ctags'
ex : Make the tags for all the files of current directory including the subdirectory
ctags -R --c-types=+p --fields=+S *
'key' word table can be seen in the file.
Just have a try. |
|
install details |
put it into .vim/plugin/ and then enjoy it |
|
script versions (upload new version)
Click on the package to download.
TTrCodeAssistor.vim |
3.4 |
2007-06-19 |
7.0 |
winterTTr Wang |
-- Add function TTrCodeAssistor_ToggleComment to add or
remove comments of the current line or v selected area.
You can map it to a key like this :
nnoremap <F7> :call TTrCodeAssistor_ToggleComments()<CR>
vnoremap <F7> :call TTrCodeAssistor_ToggleComments()<CR>
I think you can under stand the TTrCodeAssistor_Templates , so , you can expand it when you need.
|
TTrCodeAssistor.vim |
3.3 |
2007-01-26 |
7.0 |
winterTTr Wang |
-- Modify the code to match the function name exactly
-- Let the menu to display rightly
-- Add the function for <bs> to make it delete the redundant ) while the ) is close to (
-- little bug fixed
|
TTrCodeAssistor.vim |
3.2.1 |
2007-01-22 |
7.0 |
winterTTr Wang |
remove the confirm info used to debug |
TTrCodeAssistor.vim |
3.2 |
2007-01-18 |
7.0 |
winterTTr Wang |
-- Add the Menu for this plugin which let the user can
start or stop all the functions.
-- Add TTrCodeAssistor_AutoStart variable which can let
this plugin start automaticlly.
-- Fix the problem about the Function name which is followed
by its owner ,such as , the member function of a class. |
TTrCodeAssistor.vim |
3.1 |
2007-01-17 |
7.0 |
winterTTr Wang |
-- Add the function for key ')' , make it intelligent on whether to insert himself or just more to the next ')'
-- Remove the <end> label from the function prototype completation , which is replace by the function of key ' )' |
TTrCodeAssistor.vim |
3.0 |
2007-01-16 |
7.0 |
winterTTr Wang |
-- Add the expand "main"
-- Make the key '(' to have the ability to complete the function prototype according to you tag files
Enjoy it yourself.!! ;o) |
TTrCodeAssistor.vim |
2.0 |
2007-01-08 |
7.0 |
winterTTr Wang |
Modify the main process to make it clear. Add sulotion to the <for> to replace the += 1 or += -1 to += and -- . Add new expand word while modifying some expands to make it more convenient. |
TTrCodeAssistor.vim |
1.0 |
2007-01-04 |
7.0 |
winterTTr Wang |
Initial upload |
ip used for rating: 3.19.64.3
|