Skip to content

Commit

Permalink
Remove '/' from iskeyword so that 'w' doesn't skip over entire paths.
Browse files Browse the repository at this point in the history
I didn't remove the iskeyword definition entirely because I believe including
'_' and '.' is still useful.

Use 'syntax iskeyword @,48-57,-,_,.,/' in the syntax definitions so that '/' is
still matched by syntax patterns that use '\k'.

cc: dag#44
  • Loading branch information
blank_name committed Mar 22, 2020
1 parent fc758c6 commit 8b20c17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ftplugin/fish.vim
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ setlocal foldexpr=fish#Fold()
setlocal formatoptions+=ron1
setlocal formatoptions-=t
setlocal include=\\v^\\s*\\.>
setlocal iskeyword=@,48-57,-,_,.,/
setlocal iskeyword=@,48-57,-,_,.
setlocal suffixesadd^=.fish

" Use the 'j' format option when available.
Expand Down
1 change: 1 addition & 0 deletions syntax/fish.vim
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ if exists('b:current_syntax')
endif

syntax case match
syntax iskeyword @,48-57,-,_,.,/

syntax keyword fishKeyword begin function end
syntax keyword fishConditional if else switch
Expand Down

0 comments on commit 8b20c17

Please sign in to comment.