File: snippets.vim

package info (click to toggle)
vim-snipmate 0.90-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 224 kB
  • sloc: sh: 15; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 563 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
" Vim filetype plugin for SnipMate snippets (.snippets and .snippet files)

if exists("b:did_ftplugin")
    finish
endif
let b:did_ftplugin = 1

let b:undo_ftplugin = "setl et< sts< cms< fdm< fde<"

" Use hard tabs
setlocal noexpandtab softtabstop=0

setlocal foldmethod=expr foldexpr=getline(v:lnum)!~'^\\t\\\\|^$'?'>1':1

setlocal commentstring=#\ %s
setlocal nospell

command! -buffer -range=% RetabSnip
            \ echom "This command is deprecated. Use :retab and = instead. Doing that now."
            \ | <line1>,<line2>retab! | <line1>,<line2>normal =