aboutsummaryrefslogtreecommitdiff
path: root/.vim/after/plugin/stargate.vim
blob: 51444a5e8483108ce2cc555e5f16f6a240a1c080 (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
27
28
29
if has('nvim') | finish | endif

let g:stargate_name = 'Master'

packadd vim9-stargate

" search two characters
noremap <space>f <Cmd>call stargate#OKvim(2)<CR>

" start of a word
noremap <space>w <Cmd>call stargate#OKvim('\<')<CR>

" for the end of a word
noremap <space>e <Cmd>call stargate#OKvim('\S\>')<CR>

" for the start of a line
noremap <space>l <Cmd>call stargate#OKvim('\_^')<CR>

" for the last character on the line
noremap <space>E <Cmd>call stargate#OKvim('\S\s*$')<CR>

" for the end of a line
noremap <space>$ <Cmd>call stargate#OKvim('$')<CR>

" for any bracket, parentheses or curly bracket
noremap <space>[ <Cmd>call stargate#OKvim('[(){}[\]]')<CR>

" switch window
nnoremap <space>W <Cmd>call stargate#Galaxy()<CR>