-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.ideavimrc
75 lines (60 loc) · 2.76 KB
/
.ideavimrc
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
imap jj <Esc>
nnoremap <SPACE> <Nop>
let mapleader=" "
set surround
set showmode
" These shortcuts work best if you have <leader> mapped to something convenient like ',' or '<Space>'
" Load your regular .vimrc
source ~/.vimrc
" vim delete and change, with sexps!
map <leader>x :action :cursive.actions.paredit/kill-sexp<CR>
map <leader>d :action :cursive.actions.paredit/kill<CR>
map <leader>c :action :cursive.actions.paredit/kill-sexp<CR>i
" Since kill copies to system clipboard, it's nice to have easy access to clipboard paste
map <leader>p "+p
" Sexp editing mappings straight from paredit.vim
map <leader>J :action :cursive.actions.paredit/join<CR>
map <leader>O :action :cursive.actions.paredit/split<CR>
map <leader>S :action :cursive.actions.paredit/splice<CR>
map <leader>I :action :cursive.actions.paredit/raise<CR>
" Splice backwards and forwards
map <leader>k :action :cursive.actions.paredit/splice-killing-backwards<CR>
map <leader>j :action :cursive.actions.paredit/splice-killing-forwards<CR>
" Slurp and barf
map <leader>l :action :cursive.actions.paredit/barf-forwards<CR>
map <leader>h :action :cursive.actions.paredit/slurp-forwards<CR>
map <leader>L :action :cursive.actions.paredit/slurp-backwards<CR>
map <leader>H :action :cursive.actions.paredit/barf-backwards<CR>
" leader + wrapping symbol for wrapping
map <leader>( :action :cursive.actions.paredit/wrap-paren<CR>
map <leader>[ :action :cursive.actions.paredit/wrap-square<CR>
map <leader>{ :action :cursive.actions.paredit/wrap-curly<CR>
map <leader>" :action :cursive.actions.paredit/wrap-quotes<CR>
" Cycle collection
map <leader>C :action :cursive.actions.paredit/cycle-collection-type<CR>
" Evaluate sexp like in vim-fireplace
" map cpp :action :cursive.repl.actions/run-top-sexp<CR>
" Force a single "parinference" when in paredit mode and reformat
map <leader>rp :action :cursive.actions.paredit/toggle<CR>:action :cursive.actions.paredit/toggle<CR>kj:action :cursive.actions.paredit/toggle<CR>:action ReformatCode<CR>
map <leader>wl :action NextSplitter<CR>
map <leader>wh :action PrevSplitter<CR>
map <leader>wv :action SplitVertically<CR>
map <leader>ws :action SplitVertically<CR>
map <leader>wo :action MoveEditorToOppositeTabGroup<CR>
map <leader>cd :action GotoDeclaration<CR>
map <leader><leader> :action GotoFile<CR>
map <leader>bk :action CloseContent<CR>
map <C-s> :action IncrementalSearch<CR>
map <leader>, :action RecentFiles<CR>
map <leader>ot :action ActivateTerminalToolWindow<CR>
map <leader>med :action :cursive.repl.actions/run-top-sexp<CR>
map <leader>mee :action :cursive.repl.actions/run-last-sexp<CR>
set NERDTree
map <leader>ntt :NERDTreeToggle<CR>
map <leader>nf :NERDTreeFind<CR>
map <leader>nn :NERDTree<CR>
:set ignorecase
:set smartcase
:set incsearch
:set hlsearch
:nnoremap <ESC> :nohlsearch<CR>