zoukankan      html  css  js  c++  java
  • gvim 配置vimrc

    ###################################################################
    ## normal setup
    ###################################################################
    filetype on
    filetype plugin on
    syntax enable
    syntax on
    filetype indent on
    colorscheme desert
    set noeb
    set t_Co=256
    set cmdheight=2
    set showcmd
    set ruler
    set number
    set cursorline
    set cursorcolumn
    set whichwrap+=<,>,h,l
    set virtualedit=block,onemore
    function! CurDir()
            let curdir = substitute(getcwd(), $HOME, "~", "g")
            return curdir
    endfunction
    set statusline=[%n] %f%m%r%h | pwd: %{CurDir()} |%=| %l,%c %p%% | ascii=%b,hex=%b%{((&fenc=="")?"":" | ".&fenc)} | %{$USER} @ %{hostname()}
    set laststatus=2
    ###################################################################
    ## editor style
    ###################################################################
    set autoindent
    set smartindent
    set expandtab
    set tabstop=4
    set shiftwidth=4
    set softtabstop=4
    set smarttab
    set nowrap
    set backspace=2
    #linux : set guifont=Monospace Regular 16
    set guifont=Consolas:h14
    set hlsearch
    set incsearch
    set mouse=a
    set guioptions+=b
    ###################################################################
    ## code style
    ###################################################################
    set wildmenu
    set completeopt-=preview
    set foldmethod=syntax
    set nofoldenable
    nmap cS :%s/s+$//g<CR>:noh<CR>
    nmap cM :%s/ $//g<CR>:noh<CR>
    set ignorecase                                        
    set smartcase                                         
    " set noincsearch                                     
    set expandtab
    ###################################################################
    ## memory setup
    ###################################################################
    set nobackup
    set noswapfile
    set autoread
    set autowrite
    set confirm
    ###################################################################
    ## encode format setup
    ###################################################################
    inoremap jj <Esc>
    nnoremap <c-d> yyp
    imap <c-a> <Esc>la
    imap <c-d> <Esc>o
    imap <c-e> <Esc>s

    自强不息~
  • 相关阅读:
    GNU make manual 翻译( 一百五十)
    [导入]Google开发者日见闻 王开源现身
    [导入]微软中国原高管宫力就任火狐中国总经理
    [导入]QQTalk Beta1 简体中文版
    [导入]《南方都市报》:国产龙芯产业化 难
    [导入][多图]Nokia正式发布奢华8600/6500双子手机
    [导入]用户界面设计的技巧与技术
    [导入]BitComet(比特彗星) 0.89
    [导入]µTorrent 1.7 beta 2248
    今天我注册了
  • 原文地址:https://www.cnblogs.com/gujiangtaoFuture/p/15201000.html
Copyright © 2011-2022 走看看