Skip to content

Instantly share code, notes, and snippets.

@lepture
Created November 14, 2010 11:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lepture/676088 to your computer and use it in GitHub Desktop.
Save lepture/676088 to your computer and use it in GitHub Desktop.
vimrc
" System
set nocompatible
set backspace=indent,eol,start
set nobackup
set history=50
set encoding=utf-8
set fileencoding=utf-8
set fileencodings=utf-8,cp936
set ff=unix
" Options
set ruler
set showcmd
set incsearch
set ignorecase
set smarttab
set expandtab
set sw=4
set ts=4
set nu
set mouse=a
set autoindent
set laststatus=2
set cmdheight=1
"set smartindent
set cursorline
set autoread
set wildmenu
set completeopt=preview
set mouse=r
"set noswapfile
" tabs
retab
set tabpagemax=7
set showtabline=2
map <C-n> :tabnext<cr>
map <C-p> :tabprevious<cr>
map tn :tabnew .<cr>
map tc :tabclose<cr>
syntax on
"autocmd FileType python runtime! autoload/pythoncomplete.vim
"filetype plugin on
filetype plugin indent on
autocmd FileType text setlocal textwidth=80
"au BufRead,BufNewFile *.html set ft=html syntax=mako
au BufRead,BufNewFile *.html set ft=htmldjango
"au BufRead,BufNewFile *.css set ft=css syntax=css3
inoremap <C-U> <C-G>u<C-U>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment