vim menu乱码
生活随笔
收集整理的這篇文章主要介紹了
vim menu乱码
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
syntax enable
syntax on colorscheme desert set nocompatible
set filetype=c set number
set numberwidth= set wrap " 自動(dòng)換行 set autoindent
set smartindent
set cindent
set ai! set smarttab " 在行和段開(kāi)始處使用制表符 set cursorline " 高亮顯示當(dāng)前行
"set expandtab
set noexpandtab " 不要用空格來(lái)代替制表符tab
set tabstop=
set shiftwidth=
set softtabstop= set mouse=a set showmatch " 高亮顯示匹配的括號(hào)
set history=
set hlsearch " 高亮被搜索的句子
set incsearch
set nowrapscan " 禁止搜索到文件兩端時(shí)重新搜索 set gdefault set diffexpr=MyDiff() function MyDiff()
let opt = '-a --binary '
if &diffopt =~ 'icase' | let opt = opt . '-i ' | endif
if &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endif
let arg1 = v:fname_in
if arg1 =~ ' ' | let arg1 = '"' . arg1 . '"' | endif
let arg2 = v:fname_new
if arg2 =~ ' ' | let arg2 = '"' . arg2 . '"' | endif
let arg3 = v:fname_out
if arg3 =~ ' ' | let arg3 = '"' . arg3 . '"' | endif
let eq = ''
if $VIMRUNTIME =~ ' '
if &sh =~ '\<cmd'
let cmd = '""' . $VIMRUNTIME . '\diff"'
let eq = '"'
endfunction " 啟動(dòng)最大化
if has('gui_running') && has("win32")
au GUIEnter * simalt ~x
endif "http:////////////////////////////////////////////////////////////////////////////////////////
"文件顯示編碼
set fileencodings=utf-,gbk2312,gbk,gb18030,cp936
set encoding=utf-
set termencoding=utf-
set fileencoding=utf-
set imcmdline " 解決菜單亂碼
"-----------------------------------
set langmenu=zh_CN
let $LANG = 'zh_CN.UTF-8'
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswin
"----------------------------------- "http:////////////////////////////////////////////////////////////////////////////////////////
"vim 提示信息亂碼解決方法
"language messages zh_CN.UTF-8
if has("win32")
set termencoding=chinese
language message zh_CN.UTF-
endif " 多標(biāo)簽
"let Tlist_Ctags_Cmd='D:\Vim\vim73\ctags.exe'
let Tlist_Ctags_Cmd='ctags.exe'
set autochdir
set tags=tags; " ';' 不能沒(méi)有 let Tlist_Auto_Open= " Auto Open when VIM opening
let Tlist_Show_One_File= " 只顯示當(dāng)前文件的標(biāo)簽
let Tlist_Exit_OnlyWindow= " 當(dāng)只有 Tlist 窗口時(shí)關(guān)閉
let Tlist_Use_Right_Window= " 窗口在右邊 = 1
"let Tlist_Show_Menu=1 "顯示taglist菜單
"let Tlist_File_Fold_Auto_Close=1 "讓當(dāng)前不被編輯的文件的方法列表自動(dòng)折疊起來(lái) " 窗口管理
"let g:winManagerWindowLayout='FileExplorer|TagList'
let g:winManagerWindowLayout='FileExplorer' " 各單獨(dú)一個(gè)窗口, 一屏可以觀察更多
"let g:winManagerWindowLayout='TagList|FileExplorer,BufExplorer'
"let g:winManagerWindowLayout='FileExplorer|BufExplorer'
nmap wm :WMToggle<cr> " 多文件編輯
"ctrl+Tab,切換到前一個(gè)buffer,并在當(dāng)前窗口打開(kāi)文件;
"ctrl+shift+Tab,切換到后一個(gè)buffer,并在當(dāng)前窗口打開(kāi)文件;
"ctrl+箭頭鍵,可以切換到上下左右窗口中;
"ctrl+h,j,k,l,切換到上下左右的窗口中。
let g:miniBufExplMapCTabSwitchBufs=
let g:miniBufExplMapWindowsNavVim=
let g:miniBufExplMapWindowNavArrows= "快速切換頭文件與源文件, 按F12即可以在c/h文件中切換,也可以通過(guò)輸入:A實(shí)現(xiàn)
nnoremap <silent> <F12> :A<CR> "工程中快速查找, F3 快捷鍵, 然后支持正則表達(dá)式
nnoremap <silent> <F3> :Grep<CR> " 自動(dòng)補(bǔ)全
filetype plugin indent on
set completeopt=longest,menu let g:SuperTabRetainCompletionType=
let g:SuperTabDefaultCompletionType="<C-X><C-O>"
總結(jié)
以上是生活随笔為你收集整理的vim menu乱码的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 实验室瓶皿清洗的重要性,你知道吗?
- 下一篇: 开发Android 范的错误