vim in terminal cannot uses auto-completion of parentheses.
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=
"set statusline=
set ts=4
set expandtab
set autoindent
set smartindent
set cindent
set showmatch
set nu
set ruler
colorscheme desert
set completeopt=
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=
endif
set encoding=utf-8
set fileencodings=
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: