-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.obsidian.vimrc
More file actions
34 lines (29 loc) · 982 Bytes
/
.obsidian.vimrc
File metadata and controls
34 lines (29 loc) · 982 Bytes
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
imap jj <Esc>
" Yank to system clipboard
set clipboard=unnamed
exmap surround_double_quotes surround " "
exmap surround_single_quotes surround ' '
exmap surround_backticks surround ` `
exmap surround_brackets surround ( )
exmap surround_square_brackets surround [ ]
exmap surround_curly_brackets surround { }
nunmap s
nmap siw" :surround_double_quotes<CR>
nmap siw' :surround_single_quotes<CR>
nmap siw` :surround_backticks<CR>
nmap siw( :surround_brackets<CR>
nmap siw) :surround_brackets<CR>
nmap siw[ :surround_square_brackets<CR>
nmap siw] :surround_square_brackets<CR>
nmap siw{ :surround_curly_brackets<CR>
nmap siw} :surround_curly_brackets<CR>
vunmap S
vmap S" :surround_double_quotes<CR>
vmap S' :surround_single_quotes<CR>
vmap S` :surround_backticks<CR>
vmap S( :surround_brackets<CR>
vmap S) :surround_brackets<CR>
vmap S[ :surround_square_brackets<CR>
vmap S] :surround_square_brackets<CR>
vmap S{ :surround_curly_brackets<CR>
vmap S} :surround_curly_brackets<CR>