<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

    主站蜘蛛池模板: 免费网站看v片在线香蕉| 亚洲av产在线精品亚洲第一站| 青苹果乐园免费高清在线| 免费无码作爱视频| 农村寡妇一级毛片免费看视频| 亚洲乱人伦精品图片| 久久久久久亚洲精品中文字幕| 亚洲国产一区明星换脸| 午夜免费福利影院| 亚洲中文无码永久免费| 18禁黄网站禁片免费观看不卡| 在线涩涩免费观看国产精品 | 国产伦精品一区二区三区免费迷| 亚洲免费一级视频| 免费无码VA一区二区三区| 三级毛片在线免费观看| 亚洲免费日韩无码系列| 人妻无码中文字幕免费视频蜜桃| 国产亚洲精品成人久久网站| 亚洲欧美国产日韩av野草社区| 亚洲丰满熟女一区二区v| 亚洲成人高清在线观看| 久久综合亚洲鲁鲁五月天| 亚洲AV无码乱码国产麻豆穿越 | 边摸边吃奶边做爽免费视频网站| 亚洲精品人成网线在线播放va| 亚洲中文字幕久久精品无码A | **aaaaa毛片免费| 99爱视频99爱在线观看免费| 久久久久久AV无码免费网站| 3344在线看片免费| 污污网站18禁在线永久免费观看| 一区二区三区福利视频免费观看| 久久久久久毛片免费播放| 日韩午夜理论免费TV影院| 无码免费一区二区三区免费播放| 亚洲一区免费观看| 国产无人区码卡二卡三卡免费| 国色精品卡一卡2卡3卡4卡免费| 成人免费视频小说| 亚洲AV无码一区二三区|