.vimrc (1480B)
1 set nocompatible 2 3 set laststatus=2 4 set t_Co=256 5 set encoding=utf-8 6 set autoindent 7 set smartindent 8 set magic 9 set number 10 set scrolloff=3 11 set sidescroll=3 12 set ruler 13 set cc=80 14 set nowrap 15 set ignorecase 16 set smartcase 17 set splitbelow 18 set hidden 19 set notimeout 20 set incsearch 21 set showmatch 22 set hlsearch 23 set mouse=a 24 set noswapfile 25 set nofoldenable 26 set lazyredraw 27 set t_Co=256 28 29 filetype on 30 filetype plugin on 31 filetype indent on 32 33 syntax enable 34 " :color shine 35 :colorscheme jellybeans 36 37 autocmd FileType markdown setlocal tw=80 et ts=2 sw=2 38 autocmd FileType text setlocal tw=80 39 autocmd FileType c,cpp set set tabstop=4 shiftwidth=4 expandtab 40 autocmd FileType c set omnifunc=ccomplete#Complete 41 autocmd FileType html,xhtml,css,xml,xslt set shiftwidth=2 softtabstop=2 42 autocmd FileType vim,lua,nginx set shiftwidth=2 softtabstop=2 43 autocmd FileType css set omnifunc=csscomplete#CompleteCSS 44 autocmd FileType xhtml,html set omnifunc=htmlcomplete#CompleteTags 45 autocmd FileType xml set omnifunc=xmlcomplete#CompleteTags 46 autocmd FileType make set noexpandtab shiftwidth=8 softtabstop=0 47 autocmd FileType asm set noexpandtab shiftwidth=8 softtabstop=0 syntax=nasm 48 49 " Enhanced keyboard mappings 50 " 51 " in normal mode F2 will save the file 52 nmap <F2> :w<CR> 53 54 " in insert mode F2 will exit insert, save, enters insert again 55 imap <F2> <ESC>:w<CR>i 56 57 " switch between header/source with F4 58 map <F4> :e %:p:s,.h$,.X123X,:s,.c$,.h,:s,.X123X$,.c,<CR> 59 60 map <F5> :make<CR> 61 map <F6> :make clean all<CR> 62 63 set notermguicolors