1 " FILE: plugin/conque_term.vim {{{
2 " AUTHOR: Nico Raffo <nicoraffo@gmail.com>
4 " VERSION: 1.0, for Vim 7.0
6 " Conque - pty interaction in Vim
7 " Copyright (C) 2009-2010 Nico Raffo
11 " Permission is hereby granted, free of charge, to any person obtaining a copy
12 " of this software and associated documentation files (the "Software"), to deal
13 " in the Software without restriction, including without limitation the rights
14 " to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15 " copies of the Software, and to permit persons to whom the Software is
16 " furnished to do so, subject to the following conditions:
18 " The above copyright notice and this permission notice shall be included in
19 " all copies or substantial portions of the Software.
21 " THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22 " IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23 " FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24 " AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25 " LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26 " OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
30 " See docs/conque_term.txt for help or type :help conque_term
32 if exists('g:ConqueTerm_Loaded') || v:version < 700
36 " **********************************************************************************************************
37 " **** CONFIG **********************************************************************************************
38 " **********************************************************************************************************
41 if !exists('g:ConqueTerm_Color')
42 let g:ConqueTerm_Color = 1
45 " TERM environment setting {{{
46 if !exists('g:ConqueTerm_TERM')
47 let g:ConqueTerm_TERM = 'vt100'
50 " Syntax for your buffer {{{
51 if !exists('g:ConqueTerm_Syntax')
52 let g:ConqueTerm_Syntax = 'conque_term'
55 " Read when unfocused {{{
56 if !exists('g:ConqueTerm_ReadUnfocused')
57 let g:ConqueTerm_ReadUnfocused = 1
60 " Use this regular expression to highlight prompt {{{
61 if !exists('g:ConqueTerm_PromptRegex')
62 let g:ConqueTerm_PromptRegex = '^\w\+@[0-9A-Za-z_.-]\+:[0-9A-Za-z_./\~,:-]\+\$'
65 " **********************************************************************************************************
66 " **** Startup *********************************************************************************************
67 " **********************************************************************************************************
70 setlocal encoding=utf-8
72 let g:ConqueTerm_Loaded = 1
73 let g:ConqueTerm_Idx = 1
75 command! -nargs=+ -complete=shellcmd ConqueTerm call conque_term#open(<q-args>)
76 command! -nargs=+ -complete=shellcmd ConqueTermSplit call conque_term#open(<q-args>, ['split'])
77 command! -nargs=+ -complete=shellcmd ConqueTermVSplit call conque_term#open(<q-args>, ['vsplit'])