diff options
Diffstat (limited to '.vim/after/plugin/stargate.vim')
-rw-r--r-- | .vim/after/plugin/stargate.vim | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/.vim/after/plugin/stargate.vim b/.vim/after/plugin/stargate.vim new file mode 100644 index 0000000..51444a5 --- /dev/null +++ b/.vim/after/plugin/stargate.vim @@ -0,0 +1,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> |