vim配置

通过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>'
 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值