summaryrefslogtreecommitdiff
path: root/.nexrc
blob: 3368ed0ee7d28137faefd21ec8d96f9c5ff54e2c (plain)
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
set autoindent
set autowrite
set wrapscan
set extended
set iclower
set noflash
set tabstop=4
set shiftwidth=4
set filec=	
" set filec=\	
" set cedit=\	

" Open the long word under the cursor
map go "ayEo"apI:!open "add@a

" Jump to WikiWord and create files on the fly using tags
map gt mz"zyeo"zpA	"zpA	1:.w!>>tags
:!LC_ALL=C sort -o tags -u tags

ddo"zpI:ta "zdd`z@z

" Search next WikiWord
map gn /[A-Z][A-Za-z0-9_]+[A-Z]/

" Jump to go identifier definition using dynamic tag.
map gd D:+1,$d
:1,$!wc -c
0cw:!gotag % "yddu..@y
:ta _

" Ctrl-$ to tag jump
map [27;5;36~