Skip to content

Instantly share code, notes, and snippets.

@alculquicondor
Created November 8, 2013 03:12
Show Gist options
  • Save alculquicondor/7365743 to your computer and use it in GitHub Desktop.
Save alculquicondor/7365743 to your computer and use it in GitHub Desktop.
set nomodeline
set background=dark
syntax on
set smarttab
set nobackup
set autoindent
set smartindent
set sw=2
set tabstop=2
set softtabstop=2
set number
set expandtab
set fdm=syntax
set foldnestmax=1
"set mouse=a
set makeprg=g++\ %\ -ggdb\ -O2\ -lntl\ -lgmp
inoremap {<CR> {<CR>}<Esc>O
command Cpy !cat %|xclip
nnoremap \cd :cd %:p:h<CR>:pwd<CR>
nnoremap \nt :NERDTree<CR>
nnoremap \b :bNext<CR>
let Tlist_Use_Right_Window=1
let g:NERDTreeWinSize=22
let Tlist_WinWidth=22
"hi Comment cterm=NONE term=NONE ctermfg=white
" ================ LATEX ================
set runtimepath=~/.vim,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,~/.vim/after
" REQUIRED. This makes vim invoke Latex-Suite when you open a tex file.
filetype plugin on
" IMPORTANT: grep will sometimes skip displaying the file name if you
" search in a singe file. This will confuse Latex-Suite. Set your grep
" program to always generate a file-name.
set grepprg=grep\ -nH\ $*
" OPTIONAL: This enables automatic indentation as you type.
filetype indent on
" OPTIONAL: Starting with Vim 7, the filetype of empty .tex files defaults to
" 'plaintex' instead of 'tex', which results in vim-latex not being loaded.
" The following changes the default filetype back to 'tex':
let g:tex_flavor='latex'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment