-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
76 lines (64 loc) · 2.32 KB
/
vimrc
File metadata and controls
76 lines (64 loc) · 2.32 KB
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
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Stuff for latexsuite
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
let g:tex_flavor = "latex"
let g:Tex_CompileRule_pdf="latexmk -pdf MAIN=$*"
let g:Tex_DefaultTargetFormat="pdf"
" Stop <++> macro expansion
let g:Imap_FreezeImap=1
let g:Tex_SmartKeyDot=0
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Tab, space and indentation settings
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Tab width = 2
set tabstop=2
"When indenting, indent by 2
set shiftwidth=2
"Copy indentation level
set copyindent
"Enable automatic indentation depending on file type
filetype plugin indent on
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"General options
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set encoding=utf-8
set fileencoding=utf-8
let g:airline_powerline_fonts = 1
"Set colored column
set colorcolumn=80
"Highlight cursor
set cursorcolumn
"Highlight search results in a light blue
set hlsearch
hi Search ctermbg=80
"Set smart case for searches
set smartcase
set ignorecase
"Press Space to turn off highlighting and clear any message already displayed.
:nnoremap <silent> <Space> :nohlsearch<Bar>:echo<CR>
"Press F10 to toggle paste mode
set pastetoggle=<F10>
"Vsplit opens new file on the right
set splitright
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Airline options
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Show airline at all times
set laststatus=2
"Show tab line at all times
let g:airline#extensions#tabline#enabled = 1
"Enable colors
set t_Co=256
"Set theme
let g:airline_theme='papercolor'
"Prevent incompatibility with jedi
"(https://github.com/vim-airline/vim-airline/issues/1100)
let g:airline_exclude_preview=1
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Sneak options
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"let g:sneak#streak=1
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
"Jedi options
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
let g:jedi#use_splits_not_buffers = "right"