常用.vimrc设置

color desert
syntax on
set number
set incsearch
set hlsearch
set ruler
"set autoindent
set tags=~/tags/tags
let Tlist_Show_One_File=1
let Tlist_Exit_OnlyWindow=1
set tabstop=4
set so=5
set et

map <F3> :tabnew .<CR>
map <C-F3> \be
set list
set listchars=tab:>-,trail:-
autocmd BufNewFile *.py,*.pl exec ":call SetTitle()"
func SetTitle()
    if &filetype == 'python'
        call setline(1,"#!/usr/bin/python")
    endif
    autocmd BufNewFile * normal G
endfunc

你可能感兴趣的:(常用.vimrc设置)