-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc.maprc
106 lines (71 loc) · 2.46 KB
/
.vimrc.maprc
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
" command PI PluginInstall
map <leader>wq :wq<CR>
inoremap <F1> <ESC>
nnoremap <F1> :so $MYVIMRC<CR>
vnoremap <F1> <ESC>
inoremap <silent><C-l> <esc><C-w>l
inoremap <silent><C-h> <esc><C-w>h
inoremap <silent><C-j> <esc><C-w>j
inoremap <silent><C-k> <esc><C-w>k
noremap <silent><C-l> <C-w>l
noremap <silent><C-h> <C-w>h
noremap <silent><C-j> <C-w>j
noremap <silent><C-k> <C-w>k
inoremap <silent><C-t> <esc><esc>
nnoremap [e :<c-u>execute 'move -1-'. v:count1<cr>'[
nnoremap ]<space> :<c-u>put =repeat(nr2char(10), v:count1)<cr>
nnoremap [<space> :<c-u>put! =repeat(nr2char(10), v:count1)<cr>'[
nnoremap ]<space> :<c-u>put =repeat(nr2char(10), v:count1)<cr>
nnoremap bt :bn<cr>
nnoremap bp :bp<cr>
map <F3> :NERDTreeMirror<CR>
map <F3> :NERDTreeToggle<CR>
map <leader>b :CtrlPBuffer<CR>
map <leader>ft :NERDTreeToggle<CR>
" Window Manage"
nnoremap <leader>ss :split<CR>
nnoremap <leader>sv :vsplit<CR>
nnoremap <leader>st :only<CR>
" nnoremap <leader>sx
nnoremap <leader>sq :close<CR>
" File Manage"
nnoremap <leader>fs :w<CR>
nnoremap <leader>cd :cd %:h<CR>
" Yank Manage"
nnoremap <leader>ys :YRShow<CR>
nnoremap <leader>ut :Tagbar<CR>
nnoremap <leader>uf :NERDTreeToggle<CR>
" Buffer Manage"
nnoremap <leader>1 :bf<CR>
nnoremap <leader>2 :bf<CR>:bnext<CR>
nnoremap <leader>3 :bf<CR>:bnext<CR>:bnext<CR>
" let g:airline#extensions#tabline#buffer_idx_mode = 1
nmap <leader>1 <Plug>AirlineSelectTab1
nmap <leader>2 <Plug>AirlineSelectTab2
nmap <leader>3 <Plug>AirlineSelectTab3
nmap <leader>4 <Plug>AirlineSelectTab4
nmap <leader>5 <Plug>AirlineSelectTab5
nmap <leader>6 <Plug>AirlineSelectTab6
nmap <leader>7 <Plug>AirlineSelectTab7
nmap <leader>8 <Plug>AirlineSelectTab8
nmap <leader>9 <Plug>AirlineSelectTab9
nmap <leader>- <Plug>AirlineSelectPrevTab
nmap <leader>+ <Plug>AirlineSelectNextTab
let g:loaded_golden_ratio = 0
map * <Plug>(asterisk-z*)
map # <Plug>(asterisk-z#)
map g* <Plug>(asterisk-gz*)
map g# <Plug>(asterisk-gz#)
nnoremap <leader>us :Scratch<CR>
let g:scratch_persistence_file = '.scratch.vim'
function! VimuxSlime()
call VimuxSendText(@v)
call VimuxSendKeys("Enter")
endfunction
" If text is selected, save it in the v buffer and send that buffer it to tmux
vmap <LocalLeader>vs "vy :call VimuxSlime()<CR>
" Select current paragraph and send it to tmux
nmap <LocalLeader>vs vip<LocalLeader>vs<CR>
" autocmd User targets#mappings#user call targets#mappings#extend({
" \ 'B': {'pair': [{'o': '```python', 'c': '```'}]}
" \ })