annotate src/testdir/test105.in @ 5722:7e826028d399 v7.4.206

updated for version 7.4.206 Problem: Compiler warnings on 64 bit Windows. Solution: Add type casts. (Mike Williams)
author Bram Moolenaar <bram@vim.org>
date Wed, 19 Mar 2014 12:37:22 +0100
parents 40f18a1c1592
children 1e272e318daa
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5690
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
1 Test filename modifiers vim: set ft=vim :
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
2
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
3 STARTTEST
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
4 :source small.vim
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
5 :%delete _
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
6 :set shell=sh
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
7 :set shellslash
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
8 :let tab="\t"
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
9 :command -nargs=1 Put :let expr=<q-args> | $put =expr.tab.strtrans(string(eval(expr)))
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
10 :let $HOME=fnamemodify('.', ':p:h:h:h')
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
11 :Put fnamemodify('.', ':p' )[-1:]
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
12 :Put fnamemodify('.', ':p:h' )[-1:]
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
13 :Put fnamemodify('test.out', ':p' )[-1:]
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
14 :Put fnamemodify('test.out', ':.' )
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
15 :Put fnamemodify('../testdir/a', ':.' )
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
16 :Put fnamemodify('test.out', ':~' )
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
17 :Put fnamemodify('../testdir/a', ':~' )
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
18 :Put fnamemodify('../testdir/a', ':t' )
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
19 :Put fnamemodify('.', ':p:t' )
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
20 :Put fnamemodify('test.out', ':p:t' )
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
21 :Put fnamemodify('test.out', ':p:e' )
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
22 :Put fnamemodify('test.out', ':p:t:e' )
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
23 :Put fnamemodify('abc.fb2.tar.gz', ':r' )
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
24 :Put fnamemodify('abc.fb2.tar.gz', ':r:r' )
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
25 :Put fnamemodify('abc.fb2.tar.gz', ':r:r:r' )
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
26 :Put substitute(fnamemodify('abc.fb2.tar.gz', ':p:r:r'), '.*\(src/testdir/.*\)', '\1', '')
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
27 :Put fnamemodify('abc.fb2.tar.gz', ':e' )
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
28 :Put fnamemodify('abc.fb2.tar.gz', ':e:e' )
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
29 :Put fnamemodify('abc.fb2.tar.gz', ':e:e:e' )
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
30 :Put fnamemodify('abc.fb2.tar.gz', ':e:e:e:e')
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
31 :Put fnamemodify('abc.fb2.tar.gz', ':e:e:r' )
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
32 :Put fnamemodify('abc def', ':S' )
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
33 :Put fnamemodify('abc" "def', ':S' )
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
34 :Put fnamemodify('abc"%"def', ':S' )
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
35 :Put fnamemodify('abc'' ''def', ':S' )
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
36 :Put fnamemodify('abc''%''def', ':S' )
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
37 :Put fnamemodify("abc\ndef", ':S' )
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
38 :set shell=tcsh
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
39 :Put fnamemodify("abc\ndef", ':S' )
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
40 :$put ='vim: ts=8'
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
41 :1 delete _
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
42 :w! test.out
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
43 :qa!
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
44 ENDTEST
40f18a1c1592 updated for version 7.4.191
Bram Moolenaar <bram@vim.org>
parents:
diff changeset
45