mirror of
https://github.com/gryf/snipmate.vim.git
synced 2025-12-21 05:18:01 +01:00
cleaned up part of <c-r><tab> implementation
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
" File: snipMate.vim
|
" File: snipMate.vim
|
||||||
" Author: Michael Sanders
|
" Author: Michael Sanders
|
||||||
" Version: 0.79
|
" Version: 0.8
|
||||||
" Description: snipMate.vim implements some of TextMate's snippets features in
|
" Description: snipMate.vim implements some of TextMate's snippets features in
|
||||||
" Vim. A snippet is a piece of often-typed text that you can
|
" Vim. A snippet is a piece of often-typed text that you can
|
||||||
" insert into your document using a trigger word followed by a "<tab>".
|
" insert into your document using a trigger word followed by a "<tab>".
|
||||||
@@ -8,7 +8,6 @@
|
|||||||
" For more help see snipMate.txt; you can do this by using:
|
" For more help see snipMate.txt; you can do this by using:
|
||||||
" :helptags ~/.vim/doc
|
" :helptags ~/.vim/doc
|
||||||
" :h snipMate.txt
|
" :h snipMate.txt
|
||||||
" TOFIX: objc - md<esc>koiba
|
|
||||||
|
|
||||||
if exists('loaded_snips') || &cp || version < 700
|
if exists('loaded_snips') || &cp || version < 700
|
||||||
finish
|
finish
|
||||||
@@ -193,8 +192,7 @@ fun ShowAvailableSnips()
|
|||||||
let word = matchstr(getline('.'), '\S\+\%'.col('.').'c')
|
let word = matchstr(getline('.'), '\S\+\%'.col('.').'c')
|
||||||
let words = [word]
|
let words = [word]
|
||||||
if stridx(word, '.')
|
if stridx(word, '.')
|
||||||
let words += split(word, '\.')
|
let words += split(word, '\.', 1)
|
||||||
if word[len(word) - 1] == '.' | let words += [''] | endif
|
|
||||||
endif
|
endif
|
||||||
let matchpos = 0
|
let matchpos = 0
|
||||||
let matches = []
|
let matches = []
|
||||||
|
|||||||
Reference in New Issue
Block a user