<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Chan Chen Coding...

    VIM Configure File for Backup Purpose

    vi ~/vimrc

    "Use Vim settings, rather then Vi settings (much better!).
    set nocompatible
    " Turn on the verboseness to see everything vim is doing.
    "set verbose=9
    " Display Line Number
    set nu
    " allow backspacing over everything in insert mode
    set backspace=indent,eol,start
    " I like 4 spaces for indenting
    set shiftwidth=4
    " I like 4 stops
    set ts=4
    " Spaces instead of tabs
    "set expandtab
    " Always  set auto indenting on
    set autoindent
    " select when using the mouse
    set selectmode=mouse
    " set the commandheight
    set cmdheight=2
    " do not keep a backup files 
    set nobackup
    set nowritebackup
    " keep 100 lines of command line history
    set history=100
    " show the cursor position all the time
    set ruler
    " show (partial) commands
    "set showcmd
    " do incremental searches (annoying but handy);
    " Vim will show the first match for the pattern, while you are still typing it. This quickly shows a typo in the pattern
    set incsearch
    " Vim will highlight all matches for the pattern with a yellow background
    set hlsearch
    " Show  tab characters. Visual Whitespace.
    "set list
    "set listchars=tab:>.
    " Set ignorecase on
    set ignorecase
    " smart search (override 'ic' when pattern has uppers)
    "set scs
    " Set 'g' substitute flag on
    " set gdefault
    " Set status line
    set statusline=[%02n]\ %f\ %(\[%M%R%H]%)%=\ %4l,%02c%2V\ %P%*
    " Always display a status line at the bottom of the window
    set laststatus=2
    " Set vim to use 'short messages'.
    " set shortmess=a
    " Insert two spaces after a period with every joining of lines.
    " I like this as it makes reading texts easier (for me, at least).
    "set joinspaces
    " showmatch: Show the matching bracket for the last ')'?
    set showmatch
    " allow tilde (~) to act as an operator -- ~w, etc.
    "set notildeop
    " Java specific stuff
    "let java_highlight_all=1
    "let java_highlight_debug=1
    "let java_ignore_javadoc=1
    "let java_highlight_functions=1
    "let java_mark_braces_in_parens_as_errors=1

    "Use Vim settings, rather then Vi settings (much better!).
    set nocompatible
    " Turn on the verboseness to see everything vim is doing.
    "set verbose=9
    " Display Line Number
    set nu
    " allow backspacing over everything in insert mode
    set backspace=indent,eol,start
    " I like 4 spaces for indenting
    set shiftwidth=4
    " I like 4 stops
    set ts=4
    " Spaces instead of tabs
    "set expandtab
    " Always  set auto indenting on
    set autoindent
    " select when using the mouse
    set selectmode=mouse
    " set the commandheight
    set cmdheight=2
    " do not keep a backup files 
    set nobackup
    set nowritebackup
    " keep 100 lines of command line history
    set history=100
    " show the cursor position all the time
    set ruler
    " show (partial) commands
    "set showcmd
    " do incremental searches (annoying but handy);
    " Vim will show the first match for the pattern, while you are still typing it. This quickly shows a typo in the pattern
    set incsearch
    " Vim will highlight all matches for the pattern with a yellow background
    set hlsearch
    " Show  tab characters. Visual Whitespace.
    "set list
    "set listchars=tab:>.
    " Set ignorecase on
    set ignorecase
    " smart search (override 'ic' when pattern has uppers)
    "set scs
    " Set 'g' substitute flag on
    " set gdefault
    " Set status line
    set statusline=[%02n]\ %f\ %(\[%M%R%H]%)%=\ %4l,%02c%2V\ %P%*
    " Always display a status line at the bottom of the window
    set laststatus=2
    " Set vim to use 'short messages'.
    " set shortmess=a
    " Insert two spaces after a period with every joining of lines.
    " I like this as it makes reading texts easier (for me, at least).
    "set joinspaces
    " showmatch: Show the matching bracket for the last ')'?
    set showmatch
    " allow tilde (~) to act as an operator -- ~w, etc.
    "set notildeop
    " Java specific stuff
    "let java_highlight_all=1
    "let java_highlight_debug=1
    "let java_ignore_javadoc=1
    "let java_highlight_functions=1
    "let java_mark_braces_in_parens_as_errors=1
    " ************************************************************************
    " K E Y   M A P P I N G S
    " pressing < or > will let you indent/unident selected lines
    vnoremap < <gv
    vnoremap > >gv
    " Make tab in v mode work like I think it should (keep highlighting):
    vmap <tab> >gv
    vmap <s-tab> <gv
    " Select all.
    map <c-a> ggVG
    " Undo in insert mode.
    imap <c-z> <c-o>u



    -----------------------------------------------------
    Silence, the way to avoid many problems;
    Smile, the way to solve many problems;

    posted on 2011-08-13 02:08 Chan Chen 閱讀(275) 評論(0)  編輯  收藏 所屬分類: Linux

    主站蜘蛛池模板: 中文字幕乱码亚洲无线三区| 亚洲成A人片在线观看WWW| 国产成人亚洲精品| 97国产免费全部免费观看| 亚洲三级视频在线| 国产v精品成人免费视频400条| 亚洲福利在线视频| 中文字幕天天躁日日躁狠狠躁免费| 久久亚洲国产中v天仙www| 中文字幕视频免费| 亚洲狠狠成人综合网| 国产精品国产午夜免费福利看| 亚洲av成人一区二区三区在线播放 | 亚洲 日韩 色 图网站| 免费无码又爽又高潮视频 | 狠狠久久永久免费观看| 亚洲AV无码成人精品区狼人影院| 日本免费的一级v一片| 中美日韩在线网免费毛片视频| 亚洲色大成网站www永久一区| 国产成人无码区免费网站| 亚洲欧洲国产经精品香蕉网| 亚洲国产精品免费观看| 男男gay做爽爽的视频免费| 狠狠综合久久综合88亚洲| 最近2019年免费中文字幕高清| 最新亚洲精品国偷自产在线| 亚洲AⅤ无码一区二区三区在线| 巨胸狂喷奶水视频www网站免费| 亚洲AV无码一区二区三区系列| 国产大片线上免费观看| av片在线观看永久免费| 少妇中文字幕乱码亚洲影视| 大学生一级特黄的免费大片视频| 日韩在线视频播放免费视频完整版| 亚洲av无码成人黄网站在线观看 | 99在线精品免费视频九九视| 日韩色视频一区二区三区亚洲 | 久久亚洲国产成人影院| 最新亚洲成av人免费看| 成人免费午夜无码视频|