set nocompatible set wildmenu set nowrap filetype off autocmd BufRead,BufNewFile *.md,*.text,*.txt,*.tex setlocal spell set complete+=kspell set clipboard=unnamedplus set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() """""""""""""""""""""""""""""""""""""""""""""""""" Plugin 'gmarik/Vundle.vim' " Python Plugin 'vim-scripts/indentpython.vim' Plugin 'Vimjas/vim-python-pep8-indent' Plugin 'vim-python/python-syntax' " Ease of use Plugin 'dkarter/bullets.vim' Plugin 'tpope/vim-surround' " Latex Plugin 'xuhdev/vim-latex-live-preview' """"""""""""""""""""""""""""""""""""""""""""""""" call vundle#end() colorscheme wal syntax on syntax enable set t_Co=256 set autoindent set smartindent set shiftwidth=4 set expandtab set number set tabstop=4 let g:python_highlight_all = 1 set encoding=utf-8 set termencoding=utf-8 set showmatch set incsearch let &t_SI .= "\[?2004h" let &t_EI .= "\[?2004l" inoremap [200~ XTermPasteBegin() nnoremap "=strftime("%x - %X")P inoremap =strftime("%x - %X") inoremap \//==============================// inoremap \\begin{center}\line(1,0){250}\end{center} autocmd FileType tex nnoremap :!clear && sh ~/.scripts/compile-scripts/latex.sh "%" autocmd FileType c nnoremap :!clear && sh ~/.scripts/compile-scripts/c.sh "%" autocmd FileType py nnoremap :!clear && sh ~/.scripts/compile-scripts/python.sh "%" autocmd FileType cpp nnoremap :!clear && sh ~/.scripts/compile-scripts/cpp.sh "%" function! XTermPasteBegin() set pastetoggle=[201~ set paste return "" endfunction let g:livepreview_previewer = 'zathura' i