-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
107 lines (91 loc) · 2.44 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
102
103
104
105
106
107
call plug#begin()
Plug 'Exafunction/codeium.vim', { 'on': 'CodeiumEnable' }
Plug 'airblade/vim-gitgutter'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'fs111/pydoc.vim'
Plug 'hdima/python-syntax'
Plug 'inkarkat/vim-ingo-library'
Plug 'inkarkat/vim-mark'
Plug 'kien/rainbow_parentheses.vim'
Plug 'mbbill/undotree'
Plug 'mileszs/ack.vim'
Plug 'morhetz/gruvbox'
Plug 'tpope/vim-characterize'
Plug 'tpope/vim-eunuch'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-repeat'
Plug 'tpope/vim-sensible'
Plug 'tpope/vim-sleuth'
Plug 'tpope/vim-surround'
Plug 'vim-airline/vim-airline'
call plug#end()
"
" Plugins configuration
"
" airline
let g:airline_powerline_fonts = 1
" codeium
imap <script><silent><nowait><expr> <M-/> codeium#Accept()
imap <M-,> <Cmd>call codeium#CycleCompletions(1)<CR>
imap <M-.> <Cmd>call codeium#CycleCompletions(-1)<CR>
imap <M-g> <Cmd>call codeium#Clear()<CR>
nmap <silent> <Leader>c :CodeiumEnable<CR>
nmap <silent> <Leader>C :CodeiumDisable<CR>
" ctrlp
let g:ctrlp_switch_buffer = 0
let g:ctrlp_working_path_mode = 0
let g:ctrlp_map = '<Leader>p'
let g:ctrlp_cmd = 'CtrlPLastMode'
nmap <silent> <Leader>pb :CtrlPBuffer<CR>
nmap <silent> <Leader>pf :CtrlP<CR>
nmap <silent> <Leader>pm :CtrlPMRU<CR>
" gruvbox
let g:gruvbox_italic=1
set background=dark
silent! colorscheme gruvbox
" netrw
let g:netrw_altv = 1
let g:netrw_banner = 0
let g:netrw_hide = 1
let g:netrw_liststyle = 3
autocmd FileType netrw setl bufhidden=wipe
" Python syntax
let python_highlight_all = 1
" rainbow parentheses
nmap <silent> <Leader>b :RainbowParenthesesToggleAll<CR>
" undotree
nmap <silent> <Leader>u :UndotreeToggle<CR>
"
" Standard settings
"
set colorcolumn=+1 " Highlight column after 'textwidth'
set ignorecase
set nojoinspaces
set number
set relativenumber
set showcmd
set smartcase
set spelllang=pl,en
set ttyfast
set wildignore+=*/.git/*,*/.hg/*,*/.svn/*,*.pyc,*.o,*.so,*.a,*.hi
"
" Keybindings
"
nmap <silent> < :bprev<CR>
nmap <silent> > :bnext<CR>
nmap <silent> <Leader>s :set spell!<CR>
nmap <silent> <Leader>h :set hlsearch!<CR>
nmap <silent> <Leader>i :set ignorecase!<CR>
nmap <silent> <Leader>R :set relativenumber!<CR>
"
" Other
"
" Properly display man pages
runtime ftplugin/man.vim
nnoremap K :<C-U>exe "Man" v:count "<C-R><C-W>"<CR>
" See the difference between the current buffer and the file it was loaded
" from, thus the changes you made.
if !exists(":DiffOrig")
command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_
\ | diffthis | wincmd p | diffthis
endif