Skip to content

Commit 9c8e701

Browse files
committed
Add dash to 'iskeyword' so it can be used in tags (issue #61)
1 parent a09f683 commit 9c8e701

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

autoload/xolox/notes.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
" Vim auto-load script
22
" Author: Peter Odding <peter@peterodding.com>
3-
" Last Change: July 6, 2014
3+
" Last Change: July 7, 2014
44
" URL: http://peterodding.com/code/vim/notes/
55

66
" Note: This file is encoded in UTF-8 including a byte order mark so
77
" that Vim loads the script using the right encoding transparently.
88

9-
let g:xolox#notes#version = '0.25.1'
9+
let g:xolox#notes#version = '0.25.2'
1010
let g:xolox#notes#url_pattern = '\<\(mailto:\|javascript:\|\w\{3,}://\)\(\S*\w\)\+/\?'
1111
let s:scriptdir = expand('<sfile>:p:h')
1212

ftplugin/notes.vim

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
" Vim file type plug-in
22
" Author: Peter Odding <peter@peterodding.com>
3-
" Last Change: June 18, 2014
3+
" Last Change: July 7, 2014
44
" URL: http://peterodding.com/code/vim/notes/
55

66
if exists('b:did_ftplugin')
@@ -9,6 +9,10 @@ else
99
let b:did_ftplugin = 1
1010
endif
1111

12+
" Add dash to keyword characters so it can be used in tags. {{{1
13+
setlocal iskeyword+=-
14+
let b:undo_ftplugin = 'set iskeyword<'
15+
1216
" Copy indent from previous line. {{{1
1317
setlocal autoindent
1418
let b:undo_ftplugin = 'set autoindent<'

0 commit comments

Comments
 (0)