My customization .vimrc

set nocompatible
set nobackup
set nowritebackup
set nu
set is
set hls
set ruler
"set ignorecase
set incsearch
set smartcase
set tabstop=4 shiftwidth=4 expandtab
set guioptions-=T
" set guioptions-=m
set backspace=indent,eol,start

syntax on
syntax enable
colorscheme desert

" Setting the font in the GUI
if has("gui_running")
  if has("gui_gtk2")
    set guifont=Courier\ New\ 11
  elseif has("gui_photon")
    set guifont=Courier\ New:s11
  elseif has("gui_kde")
    set guifont=Courier\ New/11/-1/5/50/0/0/0/1/0
  elseif has("x11")
    set guifont=-*-courier-medium-r-normal-*-*-180-*-*-m-*-*
  else
    set guifont=Courier_New:h11:cDEFAULT
  endif
endif

" Close the tab windows
map <M-F4> :bd<CR>

" Toggle the taglist window
map <M-F8> :TlistToggle<CR>

" Switch between .c & .h
nnoremap <silent> <F12> :A<CR>

"map <BACKSPACE> X
nmap <c-s> :w<CR>
imap <c-s> <Esc>:w<CR>a"

" Move to the next or previous tab
map <C-H> :bp<CR>
map <C-L> :bn<CR>

" Move between the splitted windows
map <C-J> <C-W>j<C-W>
map <C-K> <C-W>k<C-W>


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值