-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path0033 - vimrc.tcl.json
More file actions
27 lines (27 loc) · 1.9 KB
/
0033 - vimrc.tcl.json
File metadata and controls
27 lines (27 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{
"script_id": "33",
"display_name": "vimrc.tcl",
"summary": "Adds a SQLWorksheet type interface to Oracle SQL*Plus",
"name": "vimrc.tcl",
"script_type": "utility",
"description": "This small hack requires Tcl to be compiled into your\ncopy of Vim.\n\nThe default settings will allow this hack to work on\nthe default SQL*Plus temp file, afiedt.buf, only.\n\nTo use simply highlight the query you would like to\nrun and press Enter. You should drop back down to\nSQL*Plus. Do the usual '/' and your good to go.\n\nHave not tried this hack with PL/SQL or multiple\nQuery's but I cannot see why it won't work, or why it\nwould for that matter.\n\nBUGS\n----\n1) :wq causes an error message about writing the file.\n Safe to ignore but would be nice to get rid of this.\n\n2) No checks to make sure you have highlighted a valid\n Query. Hence all hell breaks loose if you don't.\n\n3) You *HAVE* to have a trailing ';' on your Query for\n this hack to work. Would be nice if you didn't have\n to have that. Would also be nice if you could run\n a group of statements.\n",
"install_details": "Copy the script to ~/.vimrc.tcl then add this to your ~/.vimrc\n\nau BufNewFile,BufRead afiedt.buf tc sqlplus_reload\nau BufNewFile,BufRead afiedt.buf set ft=sql\nau VimLeave afiedt.buf tc sqlplus_force_save\nmap <F11> :tc sqlplus_force_save<cr>\nvmap ^M :tc sqlplus<cr>\n\nif has(\"tcl\")\n tclfile ~/.vimrc.tcl\nendif\n",
"versions": [
{
"url": "http://www.vim.org/scripts/download_script.php?src_id=46",
"filename": "vimrc.tcl",
"script_version": "0.1",
"date": "2001-07-13",
"vim_version": "6.0",
"author": {
"user_id": "82",
"user_name": "gnucash",
"first_name": "Jeremy",
"last_name": "Collins",
"email": "jeremy.collins@phpsource.net",
"homepage": ""
},
"release_notes": "Initial upload"
}
]
}