Advertisement
Guest User

vimrc

a guest
Jan 7th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 1.40 KB | None | 0 0
  1. behave mswin
  2. set nocompatible
  3.  
  4. set tabstop=2
  5. set softtabstop=2
  6. set shiftwidth=2
  7. set noexpandtab
  8. "end tabs
  9. set formatoptions=t
  10. "set textwidth=70
  11. set encoding=utf-8
  12. set termencoding=latin1
  13. set hlsearch
  14. set guifont=Monaco:h10
  15. "editor
  16. set novisualbell
  17. set number
  18. set ruler
  19. set autoindent
  20. set smartindent
  21. set formatoptions=l
  22. set lbr
  23. set backspace=2
  24. set wildmenu
  25. set guioptions=
  26. " matching brackets
  27. set showmatch
  28. set matchtime=3
  29. "gui only
  30. "set guioptions=bgmrL
  31.  
  32. set history=500
  33. set nobackup
  34.  
  35. let g:SaveUndoLevels = &undolevels
  36. let g:BufSizeThreshold = 1000000
  37. if has("autocmd")
  38.     " Store preferred undo levels
  39.     au VimEnter * let g:SaveUndoLevels = &undolevels
  40.     " Don't use a swap file for big files
  41.     au BufReadPre * if getfsize(expand("<afile>")) >= g:BufSizeThreshold | setlocal noswapfile | endif
  42.     " Upon entering a buffer, set or restore the number of undo levels
  43.     au BufEnter   * if getfsize(expand("<afile>")) < g:BufSizeThreshold | let &undolevels=g:SaveUndoLevels | else | set undolevels=-1 | set ft=none | endif
  44. endif
  45.  
  46. set nocompatible
  47.  
  48. set background=dark
  49. colors desert
  50.  
  51. let g:xml_syntax_folding = 1
  52. syntax on
  53. filetype plugin on
  54. set foldmethod=syntax
  55.  
  56. "maps
  57. nnoremap <F2> :w<CR>:!start /b pdflatex.exe -quiet -interaction=nonstopmode -synctex=1 %<CR>
  58. inoremap <F2> <esc>:w<CR>:!start /b pdflatex.exe -quiet -interaction=nonstopmode -synctex=1 %<CR>a
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement