Created
November 14, 2010 11:23
-
-
Save lepture/676088 to your computer and use it in GitHub Desktop.
vimrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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