-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
108 lines (81 loc) · 2.29 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
" Atramentovo ultimatni .vimrc
"
"plugins
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'scrooloose/nerdtree'
Plugin 'majutsushi/tagbar'
Plugin 'tpope/vim-fugitive'
Plugin 'valloric/youcompleteme'
Plugin 'jez/vim-superman'
Plugin 'arrufat/vala.vim'
Plugin 'SirVer/ultisnips'
Plugin 'honza/vim-snippets'
call vundle#end()
set nocompatible
set mouse=a
filetype plugin indent on
"set invpaste
syntax enable
set history=1000
set tw=0
set shiftwidth=4
set tabstop=4
set expandtab
set autoindent
set backspace=2 "nastaví backaspace na 'normální' chování
set wildmenu
let g:tex_flavor='pdflatex %'
let g:Tex_Folding=0
set grepprg=grep\ -nH\ $*
set iskeyword+=:
set ruler
set scrolloff=999
set completeopt-=preview
set noshowmode
set encoding=utf-8
set term=xterm-256color
"set tags+=~/.vim/tags/cpp
"set tags+=~/.vim/tags/qt4
"set tags+=~/.vim/tags/clementine
"nastavení barev
hi Pmenu guibg=steelblue3 guifg=bg ctermfg=7 ctermbg=4 cterm=bold
hi PmenuSel guibg=fg guifg=bg gui=bold ctermfg=4 ctermbg=7 cterm=bold
hi Folded ctermfg=DarkGrey ctermbg=Black
hi Comment ctermfg=LightBlue
hi TabLineSel ctermbg=LightBlue ctermfg=Yellow
hi TabLine ctermfg=DarkGrey
hi LineNr ctermbg=darkgrey ctermfg=white
map :tabnew
map [1;5C :tabnext
map [1;5D :tabprevious
imap :tabnew
imap [1;5C :tabnext
imap [1;5D :tabprevious
if has("autocmd")
autocmd BufReadPost *
\ if line("'\"") > 1 && line("'\"") <= line("$") |
\ exe "normal! g`\"" |
\ endif
endif
au BufRead /tmp/neomutt-* set tw=0
au BufRead /tmp/neomutt-* set spell
au BufRead /tmp/neomutt-* set spelllang=cs
"air-line configuration
let g:airline_powerline_fonts = 1
"ycm config
let g:ycm_global_ycm_extra_conf = '~/.vim/.ycm_extra_conf.py'
" make YCM compatible with UltiSnips (using supertab)
let g:ycm_key_list_select_completion = ['<C-n>', '<Down>']
let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>']
let g:SuperTabDefaultCompletionType = '<C-n>'
" better key bindings for UltiSnipsExpandTrigger
let g:UltiSnipsExpandTrigger = "<tab>"
let g:UltiSnipsJumpForwardTrigger = "<tab>"
let g:UltiSnipsJumpBackwardTrigger = "<s-tab>"
nnoremap <F2> :w
nnoremap <F3> :Explore
nnoremap <M-F9> :make