Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- behave mswin
- set nocompatible
- set tabstop=2
- set softtabstop=2
- set shiftwidth=2
- set noexpandtab
- "end tabs
- set formatoptions=t
- "set textwidth=70
- set encoding=utf-8
- set termencoding=latin1
- set hlsearch
- set guifont=Monaco:h10
- "editor
- set novisualbell
- set number
- set ruler
- set autoindent
- set smartindent
- set formatoptions=l
- set lbr
- set backspace=2
- set wildmenu
- set guioptions=
- " matching brackets
- set showmatch
- set matchtime=3
- "gui only
- "set guioptions=bgmrL
- set history=500
- set nobackup
- let g:SaveUndoLevels = &undolevels
- let g:BufSizeThreshold = 1000000
- if has("autocmd")
- " Store preferred undo levels
- au VimEnter * let g:SaveUndoLevels = &undolevels
- " Don't use a swap file for big files
- au BufReadPre * if getfsize(expand("<afile>")) >= g:BufSizeThreshold | setlocal noswapfile | endif
- " Upon entering a buffer, set or restore the number of undo levels
- au BufEnter * if getfsize(expand("<afile>")) < g:BufSizeThreshold | let &undolevels=g:SaveUndoLevels | else | set undolevels=-1 | set ft=none | endif
- endif
- set nocompatible
- set background=dark
- colors desert
- let g:xml_syntax_folding = 1
- syntax on
- filetype plugin on
- set foldmethod=syntax
- "maps
- nnoremap <F2> :w<CR>:!start /b pdflatex.exe -quiet -interaction=nonstopmode -synctex=1 %<CR>
- 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