-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
102 lines (76 loc) · 2.41 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
call plug#begin('~/.vim/plugged-raw')
Plug 'airblade/vim-gitgutter'
"Plug 'vimwiki/vimwiki'
Plug 'tpope/vim-repeat'
Plug 'luochen1990/rainbow'
Plug 'guns/vim-clojure-static'
"Plug 'tpope/vim-fireplace', {'for': 'clojure'}
Plug 'guns/vim-sexp'
Plug 'vim-airline/vim-airline'
Plug 'kotarak/vimpire'
"Plug '~/prog/vim-repl'
call plug#end()
set nocompatible
set noswapfile
"let g:pathogen_disabled = ['ensime-vim']
"call pathogen#infect()
set smartindent
set autoindent
set incsearch hlsearch smartcase showmatch ignorecase
set showcmd
set ruler
set number
set relativenumber
set encoding=utf8
set autoread
set list
set listchars=tab:▸\ ,eol:¬
set clipboard=unnamed
" faster macro
" set lazyredraw
syntax on
:filetype plugin on
:filetype plugin indent on
set ts=2 sts=2 sw=2 expandtab
if has("autocmd")
filetype on
augroup filytype
autocmd!
autocmd BufNewFile,BufRead *.jst set filetype=javascript
autocmd BufNewFile,BufRead *.md set filetype=markdown
autocmd BufNewFile,BufRead *.cl set filetype=c
autocmd BufNewFile,BufRead *.lfe set filetype=lisp
autocmd FileType coffee setlocal ts=2 sts=2 sw=2 expandtab
autocmd FileType php setlocal ts=4 sts=4 sw=4 expandtab
autocmd FileType c setlocal ts=4 sts=4 sw=4 expandtab
autocmd FileType cpp setlocal ts=4 sts=4 sw=4 expandtab
autocmd FileType javascript setlocal ts=2 sts=2 sw=2 expandtab
autocmd FileType markdown onoremap ih :<c-u>execute "normal! ?^==\\+$\r:nohlsearch\rkvg_"<cr>
autocmd FileType markdown onoremap ah :<c-u>execute "normal! ?^==\\+$\r:nohlsearch\rg_vk0"<cr>
augroup END
endif
cnoremap %% <C-R>=expand('%:h').'/'<cr>
map <leader>ew :e %%
map <leader>es :sp %%
map <leader>ev :vsp %%
map <leader>et :tabe %%
let &t_Co=256
"colorscheme default
" russian keymap
"set keymap=russian-jcuken
"set iminsert=0
"set imsearch=0
"highlight lCursor guifg=NONE guibg=Cyan
nnoremap <leader>ev :split $MYVIMRC<cr>
nnoremap <leader>sv :source $MYVIMRC<cr>
iabbrev funciton function
"let g:slime_target = "tmux"
"let g:slime_default_config = {"socket_name": "default", "target_pane": 0}
"let g:pdv_template_dir = $HOME ."/.vim/bundle/pdv/templates"
"nnoremap <buffer> <C-p> :call pdv#DocumentCurrentLine()<CR>
let g:rainbow_active = 1
"nnoremap <Plug>(lol_test) :echo "lol test"<CR>
"nmap <C-l> <Plug>(lol_test)
nmap <C-l> <Plug>(vimpire_eval)
nmap <leader>d <Plug>(vimpire_doc_lookup_word)
nmap <C-x> <Plug>(vimpire_close_result_buffer)