Skip to content

surround: backward selection gives range error #91

Closed
@acidghost

Description

@acidghost

When doing a backward selection (i.e. v, then b a couple of times and then [[) I get the following error:

Screenshot 2022-04-05 at 14 40 31

Here's my vimrc:

" Have j and k navigate visual lines rather than logical ones
nmap j gj
nmap k gk
" Quickly remove search highlights
nmap @ :nohl

" Yank to system clipboard
set clipboard=unnamed

" Go back and forward with Ctrl+O and Ctrl+I
" (make sure to remove default Obsidian shortcuts for these to work)
exmap back obcommand app:go-back
nmap <C-o> :back
exmap forward obcommand app:go-forward
nmap <C-i> :forward

" Surround text
exmap wiki surround [[ ]]
map [[ :wiki
exmap paren surround ( )
map [( :paren

Obsidian version: v0.14.2
Plugin version: 0.6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions