-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
76 lines (68 loc) · 1.85 KB
/
.vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
"Intentions
set smartindent
set smarttab
if has("multi_byte")
if &termencoding == ""
let &termencoding = &encoding
endif
set encoding=utf-8
setglobal fileencoding=utf-8
"setglobal bomb
set fileencodings=ucs-bom,utf-8,latin1
endif
set nocompatible
set incsearch
set autoindent
set ruler
set cursorline
set showmode
set hlsearch
set wildmenu
set wildmode=list:longest,full " command <Tab> completion, list matches, then longest common part, then all.
" GUI Settings {
" GVIM- (here instead of .gvimrc)
if has('gui_running')
set guioptions-=T " remove the toolbar
set lines=40 " 40 lines of text instead of 24,
"set transparency=5 " Make the window slightly transparent
else
set term=builtin_ansi " Make arrow and other keys work
endif
" }
set showcmd
filetype plugin indent on
set ofu=syntaxcomplete#Complete
autocmd FileType text setlocal textwidth=80
syntax enable
set expandtab
set shiftwidth=2
set ignorecase
set smartcase
set number
" set noeol
" Vim-LaTeX
set grepprg=grep\ -nH\ $*
let g:tex_flavor='latex'
set iskeyword+=:
set textwidth=80
let g:Tex_DefaultTargetFormat='pdf'
let g:Tex_MultipleCompileFormats='pdf;dvi'
let g:Tex_UseMakefile=0
let g:Tex_AutoFolding = 0
" TagList
nnoremap <silent> <F8> :TlistToggle<CR>
let Tlist_Exit_OnlyWindow = 1
let Tlist_File_Fold_Auto_Close = 1
set tags=./tags;
"clearing highlighted search
nmap <silent> <leader>/ :nohlsearch<CR>
autocmd BufRead,BufNewFile *.sage,*.pyx,*.spyx set filetype=python
autocmd FileType python setlocal expandtab shiftwidth=4 tabstop=4 softtabstop=4
" Start python on F5
autocmd FileType python map <F5> :w<CR>:!python2.7 "%"<CR>
" Extension for prolog
autocmd BufRead,BufNewFile *.pl set filetype=prolog
" Octave syntax
augroup filetypedetect
au! BufRead,BufNewFile *.m,*.oct set filetype=octave
augroup END