303

.vimrc

303
Mar 26th, 2011
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 1.05 KB | None | 0 0
  1. if !exists("autocommands_loaded")
  2.   let autocommands_loaded = 1
  3.   augroup C
  4.       autocmd BufRead *.c set cindent ts=8 sw=8
  5.   augroup END
  6. endif
  7.  
  8. augroup filetypedetect
  9. au BufNewFile,BufRead *.wiki setf Wikipedia
  10. augroup END
  11.  
  12. autocmd Filetype java setlocal omnifunc=javacomplete#Complete
  13. autocmd FileType text setlocal textwidth=78 wm=2
  14. autocmd FileType html setlocal ts=2 sw=2
  15. autocmd FileType  xml setlocal ts=2 sw=2
  16.  
  17. set t_Co=256
  18.  
  19. filetype indent on
  20. filetype plugin on
  21. set smarttab smartindent
  22. set showcmd
  23. set nocompatible
  24. set expandtab
  25. set tabstop=4
  26. set shiftwidth=4
  27. syntax on
  28. colorscheme xoria256
  29. set guifont=DroidSansMono\ 8
  30. set guioptions=ea
  31. set mousehide
  32. set nu
  33. set mouse=a
  34. set hlsearch
  35. set showmatch matchtime=2
  36. set incsearch
  37. set wildmenu
  38. set wildmode=list:longest
  39. set ignorecase
  40. set smartcase
  41. set scrolloff=3
  42. let xml_use_xhtml = 1
  43. inoremap <C-Space> <C-x><C-o>
  44. nmap :W :w
  45. nmap :Q :q
  46. let g:miniBufExplMapCTabSwitchBufs = 1
  47. nmap . .`[
  48. map <C-t> <Esc>:tabnew<CR>
  49. runtime macros/matchit.vim
  50.  
  51. map <F2> "+y
  52. map <F3> "+p
Advertisement
Add Comment
Please, Sign In to add comment