My gvim configuration(.gvimrc)

 

" An example for a gvimrc file.

" The commands in this are executed when the GUI is started.

"

" Maintainer: Bram Moolenaar <Bram@vim.org>

" Last change: 2001 Sep 02

"

" To use it, copy it to

"     for Unix and OS/2:  ~/.gvimrc

"      for Amiga:  s:.gvimrc

"  for MS-DOS and Win32:  $VIM/_gvimrc

"    for OpenVMS:  sys$login:.gvimrc

 

" Make external commands work through a pipe instead of a pseudo-tty

"set noguipty

 

" set the X11 font to use

" set guifont=-misc-fixed-medium-r-normal--14-130-75-75-c-70-iso8859-1

 

set ch=2 " Make command line two lines high

 

set mousehide " Hide the mouse when typing text

 

" Make shift-insert work like in Xterm

map <S-Insert> <MiddleMouse>

map! <S-Insert> <MiddleMouse>

 

" Only do this for Vim version 5.0 and later.

if version >= 500

 

  " I like highlighting strings inside C comments

  let c_comment_strings=1

 

  " Switch on syntax highlighting if it wasn't on yet.

  if !exists("syntax_on")

    syntax on

  endif

 

  " Switch on search pattern highlighting.

  set hlsearch

 

  " For Win32 version, have "K" lookup the keyword in a help file

  "if has("win32")

  "  let winhelpfile='windows.hlp'

  "  map K :execute "!start winhlp32 -k <cword> " . winhelpfile <CR>

  "endif

 

  " Set nice colors

  " background for normal text is light grey

  " Text below the last line is darker grey

  " Cursor is green, Cyan when ":lmap" mappings are active

  " Constants are not underlined but have a slightly lighter background

  highlight Normal guibg=grey90

  highlight Cursor guibg=Green guifg=NONE

  highlight lCursor guibg=Cyan guifg=NONE

  highlight NonText guibg=grey80

  highlight Constant gui=NONE guibg=grey95

  highlight Special gui=NONE guibg=grey95

 

endif

 

color darkblue

 

:winpos 172 103

:set lines=70

:set columns=200

:set ts=4

:set sw=4

:set dir=~/.vim/swap_dir

:set nobackup

:set clipboard=unnamed

:set uc=0 "no swap file

:set completeopt= "disable autocomplete popup menu

:set et "expand tab into spaces

:set visualbell "disable the beeping

 

"source ~/.vim/plugin/EnhancedCommentify.vim

"source ~/.vim/plugin/minibufexpl.vim

 

au BufRead session.vim so %

au VimLeave * call SaveCurrentSession()

function! SaveCurrentSession()

  if v:this_session != ""

    exe "mks!" . v:this_session

  endif

endfunction

"

:set guioptions-=T 

 

vmap r "_dP

map <C-b> /be

:set nu

 

" Only do this part when compiled with support for autocommands.

if has("autocmd")

 

  " Enable file type detection.

  " Use the default filetype settings, so that mail gets 'tw' set to 72,

  " 'cindent' is on in C files, etc.

  " Also load indent files, to automatically do language-dependent indenting.

  filetype plugin indent on

 

  " Put these in an autocmd group, so that we can delete them easily.

  augroup vimrcEx

  au!

 

  " For all text files set 'textwidth' to 78 characters.

  autocmd FileType text setlocal textwidth=78

 

  " When editing a file, always jump to the last known cursor position.

  " Don't do it when the position is invalid or when inside an event handler

  " (happens when dropping a file on gvim).

  autocmd BufReadPost *

    / if line("'/"") > 0 && line("'/"") <= line("$") |

    /   exe "normal g`/"" |

    / endif

 

  augroup END

 

else

 

  set autoindent " always set autoindenting on

 

endif " has("autocmd")

 

 

1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看rEADME.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。 1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看rEADME.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。 1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看README.md或论文文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 5、资源来自互联网采集,如有侵权,私聊博主删除。 6、可私信博主看论文后选择购买源代码。
1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看README.md文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通;、 3本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看ReAdmE.md文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。 1、资源项目源码均已通过严格测试验证,保证能够正常运行; 2、项目问题、技术讨论,可以给博主私信或留言,博主看到后会第一时间与您进行沟通; 3、本项目比较适合计算机领域相关的毕业设计课题、课程作业等使用,尤其对于人工智能、计算机科学与技术等相关专业,更为适合; 4、下载使用后,可先查看README.md文件(如有),本项目仅用作交流学习参考,请切勿用于商业用途。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值