vim配置
时间:2022-09-19 17:00:00
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
let g:neocomplete#enable_at_startup = 1
let g:rainbow_active = 1 " 彩虹括号, 0代表关
let g:SuperTabDefaultCompletionType="context"
let g:instant_markdown_slow = 1
map
" 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
nnoremap
nnoremap
map
nnoremap
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()
let &termencoding=&encoding
set fileencodings=utf-8,gbk
let g:Lf_ShortcutF = '