"Vim Configuration". VIMRC
Set nocompatibleset enc=utf-8 "-show line number" Set number "-enable filetype pluginfiletype plugin onset history=500syntax onset autoindentset Smartindent "-show brackets matchset showmatch"-show statusset ruler "-close Highline match "Set nohls"-enable quick searchset incsearch "-enable paste Modeset paste "set tabstop=4set ts=4" set shiftwidth=4set sw=4 "Set expandtabset etif has ("Autocmd") Filetype plugin indent onendifautocmd filetype python setlocal et sta sw=4 sts=4 "-smart append title by file Typefunc settitle () if &filetype == ' sh ' call setline (1, "\#!/bin/bash") call append ("."), "\# ") Call append (Line (".") +1, "") Elsecall setline (1, "\#!/usr/local/bin/python3") Call appenD (Line ("."), "\# ") call append (".") +1, "") endifendfuncautocmd bufnewfile *.py,*.sh exec ": Call SetTitle ()" "-go to the end of fileautocmd bufnewfile * normal g "-press F2 to delete empty linennoremap <F2> :g/^\s*$/d<CR>
"Vim Configuration". VIMRC