"Vim Configuration". VIMRC

Source: Internet
Author: User

"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

Related Article

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.