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