我似乎遇到了
vim的问题,当我打开
vim(不是gvim,gvim没有这样做)时,它会在命令栏中放入一堆随机字符.例如,当我输入vim test.txt时,它会打开test.txt,但会有某种形式的字符,如.2802; 0c作为命令输入.
有什么我可以做的来解决这个问题吗?
谢谢你的帮助!
这是我的.vimrc:
" =========== Info ============== " VimRC File " Author: Mark Asp " Purpose: Store overall Vim settings " that are specific to the editing " environment. " =============================== " ==== Use ViM rather than Vi ==== set nocompatible " ================================ " ========== Pathogen ============ execute pathogen#infect() filetype indent plugin on " ================================ " ======= General Settings ======= let mapleader="," " Set the map leader to,for ease of use set nomodeline " Don't allow modelines as they are vim only " --- Color Settings -- Syntax on " Enable Syntax coloring set t_Co=256 colorscheme harlequin " --------------------- set relativenumber " Show the relative line number set backspace=indent,eol,start " Allow backspace to transcend lines " ================================ " ========== Mappings ============ " Load mappings from ~/.vim/mappings.vim if filereadable(expand("~/.vim/mappings.vim")) source ~/.vim/mappings.vim endif set notimeout ttimeout " Time out for key codes only set ttimeoutlen=1000 " Wait 200 millis " ================================ " ========== Formatting ========== " ---- Indentation ---- set shiftwidth=4 " Set the tab width to 4 spaces set tabstop=4 " Set the tab width to 4 spaces set expandtab " Convert tabs to spaces " --------------------- " ----- Wrapping ------ set wrap " Only wrap visually set linebreak " Don't cut a word in half while wrapping " --------------------- " ================================ }}} " ======= Window Settings ======= set hidden " Allow buffers to be hidden in the background set confirm " Always ask for confirmation set t_vb= " Do no visual things " ---- Bottom Bar ----- set showcmd " Show the command being typed set cmdheight=1 " Make the command line 1 character tall set wildmenu " Complete for commands set laststatus=2 " Make it so that status only shows with 2 or " more windows " --------------------- " ================================ " ======= Search Settings ======== set hlsearch " Highlight search results set smartcase " If all is lower,ingore case,if there is a " capital letter,include it. " ================================ " ============ Movement ========== set nostartofline " Keep cursor position when switching lines " ================================ " ========= Persistance ========== " Keep undo history across sessions " by storing all changes all time silent !mkdir ~/.vim/backups > /dev/null 2>&1 set undodir=~/.vim/backups set undofile " Turn off all swap files set noswapfile set nobackup set Nowb " ================================ " ====== Custom File Types ======= au BufNewFile,BufRead *.frag,*.vert,*.fp,*.vp,*.glsl setf glsl " ================================ " ======== GVim Settings ========= set guifont=Droid\ Sans\ Mono\ 10 set guioptions-=m " remove menu bar set guioptions-=T " remove toolbar set guioptions-=r " remove right-hand scrollbar set guioptions-=l " remove left-hand scrollbar " ================================ " ======== CTag Settings ========= set tags+=~/.vim/tags " ================================
解决方法
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。