Permalink
Browse files

Add dash to 'iskeyword' so it can be used in tags (issue #61)

  • Loading branch information...
1 parent a09f683 commit 9c8e7018250e33e6009182b39d118e63436a95ab @xolox committed Jul 6, 2014
Showing with 7 additions and 3 deletions.
  1. +2 −2 autoload/xolox/notes.vim
  2. +5 −1 ftplugin/notes.vim
View
@@ -1,12 +1,12 @@
" Vim auto-load script
" Author: Peter Odding <peter@peterodding.com>
-" Last Change: July 6, 2014
+" Last Change: July 7, 2014
" URL: http://peterodding.com/code/vim/notes/
" Note: This file is encoded in UTF-8 including a byte order mark so
" that Vim loads the script using the right encoding transparently.
-let g:xolox#notes#version = '0.25.1'
+let g:xolox#notes#version = '0.25.2'
let g:xolox#notes#url_pattern = '\<\(mailto:\|javascript:\|\w\{3,}://\)\(\S*\w\)\+/\?'
let s:scriptdir = expand('<sfile>:p:h')
View
@@ -1,6 +1,6 @@
" Vim file type plug-in
" Author: Peter Odding <peter@peterodding.com>
-" Last Change: June 18, 2014
+" Last Change: July 7, 2014
" URL: http://peterodding.com/code/vim/notes/
if exists('b:did_ftplugin')
@@ -9,6 +9,10 @@ else
let b:did_ftplugin = 1
endif
+" Add dash to keyword characters so it can be used in tags. {{{1
+setlocal iskeyword+=-
+let b:undo_ftplugin = 'set iskeyword<'
+
" Copy indent from previous line. {{{1
setlocal autoindent
let b:undo_ftplugin = 'set autoindent<'

0 comments on commit 9c8e701

Please sign in to comment.