The. VIMRC profile from Home

Source: Internet
Author: User

I.. VIMRC configuration file cat .vimrcset backupdir=/root/vimbackupset background=darkcolorscheme  desertsyntax onset incsearch                      if has ("Autocmd")   filetype plugin  indent onendifset hlsearchautocmd bufreadpost *  \ if line ("' \" " )  > 0 && line ("' \" ")  <= line (" $ ")  |  \ exe   "Normal g" " |  \ endif  autocmd bufnewfile *". [ch],*.cpp,*.sh,*.java,*.php,*.py exec  ": Call settitle ()"   autocmd bufnewfile  * normal g  autocmd bufnewfile *.php normal k  autocmd  bufwrite *. [ch],*.cpp,*.sh,*.java,*.php,*.py exec  ":!ctags -r *"   autocmd bufnewfile, bufread *.py&Nbsp;set cinwords=if,elif,else,for,while,try,expect,finally,def,class  autocmd bufnewfile, bufread *. [Ch],*.cpp set foldmethod=syntax  func settitle ()            if &filetype ==  ' sh '  | |  &filetype ==  ' python '                    call setline (1,  "\#--------------------------------------- -----------")                    call append ("."),  "\ #Author: Jimmygong")                    call append (Line (".") +1,  "\ #Email: [email protected]")                    call append (lINE (".") +2,  "\ #FileName:". Expand ("%"))                    call append (Line (".") +3,  "\ #Function: ")                    call append (Line (".") +4,  "\ #Version:1.0 ")                    call append (Line (".") +5,  "\ #Created:". Strftime ("%y-%m-%d"))                    call append (Line (".") +6,  "\#--------------------------------------------------")                    call append (Line (".") +7,  "")           else        &nBsp;          call setline (1,  "/**")                    call  Append ("."),  "--------------------------------------------------")                    call append (Line (".") +1,  "Author:jimmygong")                    call append (Line (".") +2,  "email:[email protected]")                    call append (Line (".") +3,  "FileName:". Expand ("%"))                    call append (Line (".") +4,  "function: ")        &nbsP;          call append (Line (".") +5,  "version:1.0 ")                    call append (Line (".") +6,  "Created:". Strftime ("%y-%m-%d"))                    call append (Line (".") +7,  "--------------------------------------------------")                    call append (Line (".") +8,  "**/")                    call append (Line (".") +9,  "")           endif           if &filetype ==  ' php '          &nbsP;         call append (0,  "<?php")                    call append ( Line ("$"),  "?>")           endif           if &filetype ==  ' sh '                    call append (0,  " \#!/bin/bash ")           elseif &filetype ==   ' python '                    call append (0,  "\#!/usr/bin/python")                    call append (1,  "\# -*- coding:  utf-8 -*-")           endif  endfunc Second, 

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6D/9C/wKiom1VnOpiR6ITiAANM4SQU8lI768.jpg "title=" QQ picture 20150528203056.png "alt=" Wkiom1vnopir6itiaanm4squ8li768.jpg "/>



This article is from the "7928217" blog, please be sure to keep this source http://7938217.blog.51cto.com/7928217/1656174

The. VIMRC profile from Home

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.