Skip to content

Commit

Permalink
Update lots of settings.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenroller committed Dec 19, 2011
1 parent 232e978 commit ff81436
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 15 deletions.
1 change: 1 addition & 0 deletions .hgrc
@@ -1,5 +1,6 @@
[ui]
username = Stephen Roller <roller@cs.utexas.edu>
merge = internal:merge

[extensions]
children =
Expand Down
7 changes: 6 additions & 1 deletion .sshconfig
Expand Up @@ -8,12 +8,17 @@ Host gumby
Port 420
LogLevel QUIET

Host sr sven
Host sr sven stephenroller.com
User stephen
HostName sven.sf.io
Port 420
LogLevel QUIET

Host dlonghorn
User dicta18
HostName longhorn.tacc.utexas.edu
LogLevel QUIET

Host longhorn
#User dicta18
User roller
Expand Down
Binary file modified .vim/ftplugin/latex-suite/bibtools.pyc
Binary file not shown.
Binary file modified .vim/ftplugin/latex-suite/outline.pyc
Binary file not shown.
6 changes: 3 additions & 3 deletions .vim/indent/tex.vim
Expand Up @@ -44,9 +44,9 @@
" }}}

" Delete the next line to avoid the special indention of items
if !exists("g:tex_indent_items")
let g:tex_indent_items = 1
endif
"if !exists("g:tex_indent_items")
" let g:tex_indent_items = 1
"endif

if exists("b:did_indent") | finish
endif
Expand Down
15 changes: 15 additions & 0 deletions .vim/snippets/tex.snippets
Expand Up @@ -38,6 +38,21 @@ snippet item
\begin{itemize}
\item ${1}
\end{itemize}
# Frame
snippet frame
\begin{frame}{${1}}
${2}
\end{frame}
# frame with bullets
snippet iframe
\begin{frame}{${1}}
\begin{itemize}
\item ${2}
\end{itemize}
\end{frame}
# just an item
snippet it
\item ${1}
# Description
snippet desc
\begin{description}
Expand Down
50 changes: 39 additions & 11 deletions .vimrc
Expand Up @@ -67,6 +67,9 @@ set whichwrap=h,l,~,[,]
" always show line numbers
set nu

" i love spaces
set et

cab utf :set encoding=utf-8

cab csmake :make<CR><CR>
Expand All @@ -88,6 +91,9 @@ set ai
au FileType python set et sts=4 "complete+=k~/.vim/ac/python.dict isk+=.,(
au FileType ruby set et sts=2 sw=4 ts=4
au FileType php set complete+=k~/.vim/ac/php.dict isk+=.,(
au FileType tex set sts=2 ts=2 sw=2 et iskeyword+=:
au FileType tex let g:line_comment='% '
au FileType scala set sts=2 ts=2 sw=2 et

"set tags+=$HOME/.vim/tags/python.ctags

Expand Down Expand Up @@ -134,13 +140,13 @@ au FileType vim let g:line_comment='" '
au FileType c let g:line_comment='// '
au FileType java let g:line_comment='// '

map <silent> <D-/> :call Comment() <CR>
imap <silent> <D-/> <Esc> :call Comment() <CR> +
map <silent> <leader>c :call Comment() <CR>
" imap <silent> <leader>c <Esc> :call Comment() <CR> +

" convenient mappings for FUF
map <Leader>b :FufBuffer <CR>
map <Leader>f :CommandT <CR>
set wildignore+=*.o,*.obj,.git,*.pyc
set wildignore+=*.o,*.obj,.git,*.pyc,*.class,*.jar

let g:fuf_file_exclude = '\v\~$|\.(o|exe|dll|bak|swp|pyc|DS_Store)$|(^|[/\\])\.(hg|git|bzr)($|[/\\])'

Expand All @@ -153,7 +159,7 @@ let g:SuperTabDefaultCompletionType = "context"
" ctrl-A and ctrl-E mapped everywhere
inoremap <C-a> <Home>
cnoremap <C-a> <Home>
noremap <C-a> <Home>
"noremap <C-a> <Home>
inoremap <C-e> <End>
cnoremap <C-e> <End>
noremap <C-e> <End>
Expand All @@ -178,7 +184,8 @@ au FileType git-log set nospell
map <Leader>s :call NewScratchBuffer()<CR>
map <Leader>v :so ~/.vimrc <CR> :echo "~/.vimrc loaded..." <CR>
map <Leader>l :echo @%<CR>
set modeline
set ls=2

" Make it easier to run commands
map <Leader>r :ConqueTermSplit
Expand All @@ -200,17 +207,38 @@ nmap Zs :w<CR>
" close a window
nmap <Leader>q :q <Cr>
" options for latex-suite
set grepprg=grep\ -nH\ $*
let g:tex_flavor='latex'

" show a line at 80 characters
if version >= 703
set cc=80
endif

" trailing whitespace
if version >= 702
set list listchars=tab:\ \ ,trail:·
set list
if version <= 702
set listchars=tab:>\ ,trail:-
else
set listchars=tab:▸·,trail:·
endif

" test of white space: asdfasdf

" options for latex-suite
set grepprg=grep\ -nH\ $*
let g:tex_flavor='latex'

" and vim-latex
let g:Tex_MultipleCompileFormats="dvi,pdf"
let g:Tex_DefaultTargetFormat="pdf"
let g:Tex_CompileRule_pdf='pdflatex -synctex=1 --interaction=nonstopmode $*'
let g:Tex_GotoError=0

let g:Tex_IgnoreLevel=5
let g:Tex_IgnoredWarnings ='
\"Underfull\n".
\"Overfull\n".
\"specifier changed to\n".
\"You have requested\n".
\"Missing number, treated as zero.\n".
\"There were undefined references\n".
\"Citation %.%# undefined\n".
\"\oval, \circle, or \line size unavailable\n"'

0 comments on commit ff81436

Please sign in to comment.