通过sourceinsight 打开vim
sourceinsight配合gvim使用 珠联璧合 YYDS
"D:\gvim\Vim\vim90\gvim.exe" --remote-silent +%l %f
" General
set nocompatible
set nobackup
set noswapfile
set history=1024
set autochdir
set whichwrap=b,s,<,>,[,]
set nobomb
set backspace=indent,eol,start whichwrap+=<,>,[,]
" Vim 的默认寄存器和系统剪贴板共享
set clipboard+=unnamed
" 设置 alt 键不映射到菜单栏
set winaltkeys=no
" Lang & Encoding
set fileencodings=utf-8,gbk2312,gbk,gb18030,cp936
set encoding=utf-8
set langmenu=zh_CN
let $LANG = 'en_US.UTF-8'
"language messages zh_CN.UTF-8
" GUI
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim
set cursorline
set hlsearch
set number
" Format
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
syntax on
set guifont=Consolas:h14:cANSI
autocmd GUIEnter * simalt ~x
let Tlist_Show_One_File=1
let Tlist_Exit_OnlyWindow=1
map <F8> :TlistToggle<CR>
set tags=tags;
nnoremap <leader>q :q<CR>
nnoremap <leader>w :w<CR>
nnoremap <F12> [I
————————————————————————————————————
vim的配置:
set nocompatible
filetype off
" 设置Vundle管理vim插件 set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" 安装的vim插件写在下面
Plugin 'VundleVim/Vundle.vim' " let Vundle manage Vundle, required
Plugin 'https://gitee.com/zgpio/LeaderF.git'
" 安装的vim插件写在上面
call vundle#end() " required
filetype plugin on " required
set nu
set hlsearch
set cursorline
syntax enable
syntax on
set tabstop=4
set softtabstop=4
set shiftwidth=4
set autoindent
set ruler
set mouse=a
set autoread
set backspace=2
set ignorecase
au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif
"taglist
let Tlist_Inc_Winwidth=0
let Tlist_File_Fold_Auto_Close=1
let Tlist_Exit_OnlyWindow=1
map <F8> :TlistToggle<CR>
let g:neocomplete#enable_at_startup = 1
let g:rainbow_active = 1 " 彩虹括号, 0代表关
let g:SuperTabDefaultCompletionType="context"
let g:instant_markdown_slow = 1
map <C-n> :NERDTreeToggle<CR>
" ctags -f /home_d/wjshi/ctags_file/tags_4_4_94_t40 --tag-relative=yes -R `pwd`
set tags=tags;
" 开启缩进线
let g:indentLine_enabled = 1
set laststatus=2
set statusline+=%F
nnoremap <F4> :set mouse= <CR>
nnoremap <leader>q :q<CR>
nnoremap <leader>w :w<CR>
map <c-]> g<c-]>
nnoremap <F12> [I
fun! ShowFuncName()
let lnum = line(".")
let col = col(".")
echohl ModeMsg
echo getline(search("^[^ \t#/]\\{2}.*[^:]\s*$", 'bW'))
echohl None
call search("\\%" . lnum . "l" . "\\%" . col . "c")
endfun
map f :call ShowFuncName() <CR>
let &termencoding=&encoding
set fileencodings=utf-8,gbk
let g:Lf_ShortcutF = '<c-p>'