set ic
set cindent
syntax on
set hlsearch
" search increment
set incsearch
set nu
"undo for all file buffer files
set hid
"set the number of lines to be remembered
set history=1000
"case insensitive & smart style
set ci scs
" display chinese at vim
set encoding=utf-8
set fileencoding=chinese
set fileencodings=ucs-bom,utf-8,chinese
set ambiwidth=double
set showcmd
" General {
set backspace=indent,eol,start " make backspace a more flexible
set clipboard+=unnamed " share windows clipboard
set fileformats=unix,dos,mac " support all three, in this order
" }
" for vimim plugin, which is a chinese input plugin
let g:vimim_static_input_style=2
let g:vimim_www_sogou=1
let g:vimim_cloud_sogou=3
let g:vimim_datafile="/home/nchen/.vim/plugin/vimim.pinyin_fcitx.txt"
let g:vimim_datafile_has_english=1
let g:vimim_datafile_has_pinyin=1
autocmd BufReadPost *
/ if line("'/"") > 0 && line("'/"") <= line("$") |
/ exe "normal g`/"" |
/ endif
"mouse option
set mouse=a
nmap <C-LeftMouse> :cs f g <cword><CR>
nmap <F9> :TlistToggle<CR><CR>
"nmap <F4> <C-6>
nmap <Space> <PageDown>
nmap - <PageUp>
" for cscope browse the reference and definition
nmap <F2> :tprevious<CR>
nmap <F3> :tnext<CR>
nmap <F4> :nohlsearch<CR>
nmap <F5> :ls<CR>:b
" re-generate cscope database
nmap <F8> :!./gencscope.sh<CR>:!cscope -bkq<CR>:cs reset<CR>
" For plugin minibufexpl.vim
let g:miniBufExplMapWindowNavVim = 1
let g:miniBufExplMapWindowNavArrows = 1
let g:miniBufExplMapCTabSwitchBufs = 1
let g:miniBufExplModSelTarget = 1
"can go to next line and don't require for blank space, useful for chinese
set formatoptions+=mM
.vimrc
最新推荐文章于 2025-12-05 13:31:09 发布
4万+

被折叠的 条评论
为什么被折叠?



