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

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

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

    Let spirit guide you

    thinking in life.

    常用鏈接

    統計

    API

    Forum

    Site

    WiKi

    最新評論

    vimrc

    " URL: http://vim.wikia.com/wiki/Example_vimrc
    "
     Authors: http://vim.wikia.com/wiki/Vim_on_Freenode
    "
     Description: A minimal, but feature rich, example .vimrc. If you are a
    "
                  newbie, basing your first .vimrc on this file is a good choice.
    "
                  If you're a more advanced user, building your own .vimrc based
    "
                  on this file is still a good idea.

    "------------------------------------------------------------
    "
     Features {{{1
    "
    "
     These options and commands enable some very useful features in Vim, that
    "
     no user should have to live without.

    " Set 'nocompatible' to ward off unexpected things that your distro might
    "
     have made, as well as sanely reset options when re-sourcing .vimrc
    set nocompatible

    " Attempt to determine the type of a file based on its name and possibly its
    "
     contents.  Use this to allow intelligent auto-indenting for each filetype,
    "
     and for plugins that are filetype specific.
    filetype indent plugin on

    " Enable syntax highlighting
    syntax on


    "------------------------------------------------------------
    "
     Must have options {{{1
    "
    "
     These are highly recommended options.

    " One of the most important options to activate. Allows you to switch from an
    "
     unsaved buffer without saving it first. Also allows you to keep an undo
    "
     history for multiple files. Vim will complain if you try to quit without
    "
     saving, and swap files will keep you safe if your computer crashes.
    set hidden

    " Note that not everyone likes working this way (with the hidden option).
    "
     Alternatives include using tabs or split windows instead of re-using the same
    "
     window for multiple buffers, and/or:
    "
     set confirm
    "
     set autowriteall

    " Better command-line completion
    set wildmenu

    " Show partial commands in the last line of the screen
    set showcmd

    " Highlight searches (use <C-L> to temporarily turn off highlighting; see the
    "
     mapping of <C-L> below)
    set hlsearch

    " Modelines have historically been a source of security vulnerabilities.  As
    "
     such, it may be a good idea to disable them and use the securemodelines
    "
     script, <http://www.vim.org/scripts/script.php?script_id=1876>.
    "
     set nomodeline


    "------------------------------------------------------------
    "
     Usability options {{{1
    "
    "
     These are options that users frequently set in their .vimrc. Some of them
    "
     change Vim's behaviour in ways which deviate from the true Vi way, but
    "
     which are considered to add usability. Which, if any, of these options to
    "
     use is very much a personal preference, but they are harmless.

    " Use case insensitive search, except when using capital letters
    set ignorecase
    set smartcase

    " Allow backspacing over autoindent, line breaks and start of insert action
    set backspace=indent,eol,start

    " When opening a new line and no filetype-specific indenting is enabled, keep
    "
     the same indent as the line you're currently on. Useful for READMEs, etc.
    set autoindent

    " Stop certain movements from always going to the first character of a line.
    "
     While this behaviour deviates from that of Vi, it does what most users
    "
     coming from other editors would expect.
    set nostartofline

    " Display the cursor position on the last line of the screen or in the status
    "
     line of a window
    set ruler

    " Always display the status line, even if only one window is displayed
    set laststatus=2

    " Instead of failing a command because of unsaved changes, instead raise a
    "
     dialogue asking if you wish to save changed files.
    set confirm

    " Use visual bell instead of beeping when doing something wrong
    set visualbell

    " And reset the terminal code for the visual bell.  If visualbell is set, and
    "
     this line is also included, vim will neither flash nor beep.  If visualbell
    "
     is unset, this does nothing.
    set t_vb=

    " Enable use of the mouse for all modes
    set mouse=a

    " Set the command window height to 2 lines, to avoid many cases of having to
    "
     "press <Enter> to continue"
    set cmdheight=2

    " Display line numbers on the left
    set number

    " Quickly time out on keycodes, but never time out on mappings
    set notimeout ttimeout ttimeoutlen=200

    " Use <F11> to toggle between 'paste' and 'nopaste'
    set pastetoggle=<F11>


    "------------------------------------------------------------
    "
     Indentation options {{{1
    "
    "
     Indentation settings according to personal preference.

    " Indentation settings for using 2 spaces instead of tabs.
    "
     Do not change 'tabstop' from its default value of 8 with this setup.
    set shiftwidth=2
    set softtabstop
    =2
    set expandtab

    " Indentation settings for using hard tabs for indent. Display tabs as
    "
     two characters wide.
    "
    set shiftwidth=2
    "
    set tabstop=2


    "------------------------------------------------------------
    "
     Mappings {{{1
    "
    "
     Useful mappings

    " Map Y to act like D and C, i.e. to yank until EOL, rather than act as yy,
    "
     which is the default
    map Y y$

    " Map <C-L> (redraw screen) to also turn off search highlighting until the
    "
     next search
    nnoremap <C-L> :nohl<CR><C-L>


    "------------------------------------------------------------

    au BufRead,BufNewFile jquery.*.js set ft=javascript syntax=jquery"
    """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
    "
     => Files, backups and undo
    "
     
    "
     Turn backup off, since most stuff is in SVN, git anyway
    set nobackup
    set nowb
    set noswapfile
    """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
    "
     => Text, tab and indent related
    "
     
    set expandtab
    set shiftwidth
    =4
    set tabstop
    =4
    set smarttab
    set lbr
    set tw
    =500
    set ai 
    "Auto indent
    set si "Smart indet
    set nowrap "no wrap lines
    set so=3
    nmap 
    <silent> <F2> :nohlsearch<CR>
    nmap 
    <silent> <F3> :echo strftime("%c")<CR>


    Sunday September 16, 2012

     

     

    在這里輸入文本

     

    posted on 2012-09-16 13:05 cary 閱讀(139) 評論(0)  編輯  收藏 所屬分類: vim


    只有注冊用戶登錄后才能發表評論。


    網站導航:
     
    主站蜘蛛池模板: 亚洲精品无码专区在线在线播放 | 香港特级三A毛片免费观看| 人人狠狠综合久久亚洲婷婷| 最近免费中文字幕4| 18禁美女黄网站色大片免费观看 | 亚洲va无码专区国产乱码| 免费看小12萝裸体视频国产| 免费H网站在线观看的| 老汉精品免费AV在线播放| 成人毛片100免费观看| 大片免费观看92在线视频线视频| 亚洲AV无码资源在线观看| 亚洲AV一二三区成人影片| 亚洲性色成人av天堂| 亚洲av永久无码精品表情包| 亚洲中文字幕无码永久在线 | 99亚洲男女激情在线观看| 亚洲日本国产综合高清| 亚洲国产精品成人综合色在线婷婷 | 亚洲精品美女久久777777| 亚洲精品成人片在线观看| 亚洲不卡无码av中文字幕| 国产精品二区三区免费播放心| 思思99re66在线精品免费观看| 99在线精品免费视频九九视| 成人午夜免费福利视频| 91高清免费国产自产| 最近中文字幕大全中文字幕免费| 少妇太爽了在线观看免费视频 | 亚洲成av人片在线观看无码不卡| 亚洲午夜国产精品无码老牛影视| 久久精品国产亚洲一区二区三区| 亚洲精品无码你懂的网站| 国产精品亚洲玖玖玖在线观看 | 国产中文字幕在线免费观看| 男女一进一出抽搐免费视频| 精品免费久久久久国产一区 | 亚洲一区二区三区国产精品| 亚洲最大av无码网址| 亚洲无av在线中文字幕| 国产国拍亚洲精品mv在线观看 |