vim in terminal cannot uses auto-completion of parentheses.

Asked by CoolEagel

but gvim can use auto-completion of parentheses.

so how should I do to use this feature in terminal vim?

thanks!

the vimrc is in /etc/vim/.
I added below settings to vimrc file:

set nocompatible

set laststatus=2
set statusline=%2*%n%m%r%h%w%*\ %F\ %1*[FORMAT=%2*%{&ff}:%{&fenc!=''?&fenc:&enc}%1*]\ [TYPE=%2*%Y%1*]\ [COL=%2*v%1*]\ [ROW=%2*l%1*/%3*%L(%p%%)%1*]\ [DATE=%2*%{strftime(\"%c\",getftime(expand(\"%%\")))}%1*]
"set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [ASCII=\.3b]\ [HEX=\.2B]\ [POS=l,v][%p%%]\ [LEN=%L]

set ts=4
set expandtab
set autoindent

set smartindent
set cindent

set showmatch

set nu

set ruler

colorscheme desert

set completeopt=longest,menu

set showcmd

set cursorline

set paste

syntax enable

filetype on

filetype plugin on

if has("gui_gtk2")
       set guifont=Monospace\ 16
       set guifontwide=Kaiti\ 18
     endif

set lines=66 columns=120

if has("gui_running") || has("unix")
    set encoding=utf-8
    lang messages zh_CN.UTF-8
else
    set encoding=chinese
    set termencoding=chinese
endif

set encoding=utf-8
set fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1

inoremap ( ()<ESC>i
inoremap [ []<ESC>i
inoremap { {}<ESC>i
inoremap < <><ESC>i
inoremap ' ''<ESC>i
inoremap " ""<ESC>i
inoremap { {<CR>}<ESC>O

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.