annotate runtime/ftplugin/flexwiki.vim @ 16135:dc0801e374e0 v8.1.1072

patch 8.1.1072: extending sign and foldcolumn below the text is confusing commit https://github.com/vim/vim/commit/8ee4c01b8c79a29065c1af05e5d9c0721069765f Author: Bram Moolenaar <Bram@vim.org> Date: Fri Mar 29 18:08:18 2019 +0100 patch 8.1.1072: extending sign and foldcolumn below the text is confusing Problem: Extending sign and foldcolumn below the text is confusing. Solution: Let the sign and foldcolumn stop at the last text line, just like the line number column. Also stop the command line window leader. (Christian Brabandt, closes #3964)
author Bram Moolenaar <Bram@vim.org>
date Fri, 29 Mar 2019 18:15:05 +0100
parents 8cd729851562
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
845
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
1 " Vim filetype plugin file
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
2 " Language: FlexWiki, http://www.flexwiki.com/
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
3 " Maintainer: George V. Reilly <george@reilly.org>
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
4 " Home: http://www.georgevreilly.com/vim/flexwiki/
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
5 " Other Home: http://www.vim.org/scripts/script.php?script_id=1529
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
6 " Author: George V. Reilly
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
7 " Filenames: *.wiki
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
8 " Last Change: Wed Apr 26 11:00 PM 2006 P
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
9 " Version: 0.3
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
10
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
11 if exists("b:did_ftplugin")
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
12 finish
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
13 endif
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
14
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
15 let b:did_ftplugin = 1 " Don't load another plugin for this buffer
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
16
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
17 " Reset the following options to undo this plugin.
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
18 let b:undo_ftplugin = "setl tw< wrap< lbr< et< ts< fenc< bomb< ff<"
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
19
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
20 " Allow lines of unlimited length. Do NOT want automatic linebreaks,
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
21 " as a newline starts a new paragraph in FlexWiki.
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
22 setlocal textwidth=0
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
23 " Wrap long lines, rather than using horizontal scrolling.
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
24 setlocal wrap
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
25 " Wrap at a character in 'breakat' rather than at last char on screen
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
26 setlocal linebreak
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
27 " Don't transform <TAB> characters into spaces, as they are significant
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
28 " at the beginning of the line for numbered and bulleted lists.
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
29 setlocal noexpandtab
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
30 " 4-char tabstops, per flexwiki.el
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
31 setlocal tabstop=4
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
32 " Save *.wiki files in UTF-8
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
33 setlocal fileencoding=utf-8
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
34 " Add the UTF-8 Byte Order Mark to the beginning of the file
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
35 setlocal bomb
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
36 " Save <EOL>s as \n, not \r\n
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
37 setlocal fileformat=unix
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
38
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
39 if exists("g:flexwiki_maps")
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
40 " Move up and down by display lines, to account for screen wrapping
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
41 " of very long lines
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
42 nmap <buffer> <Up> gk
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
43 nmap <buffer> k gk
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
44 vmap <buffer> <Up> gk
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
45 vmap <buffer> k gk
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
46
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
47 nmap <buffer> <Down> gj
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
48 nmap <buffer> j gj
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
49 vmap <buffer> <Down> gj
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
50 vmap <buffer> j gj
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
51
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
52 " for earlier versions - for when 'wrap' is set
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
53 imap <buffer> <S-Down> <C-o>gj
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
54 imap <buffer> <S-Up> <C-o>gk
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
55 if v:version >= 700
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
56 imap <buffer> <Down> <C-o>gj
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
57 imap <buffer> <Up> <C-o>gk
856
8cd729851562 updated for version 7.0g
vimboss
parents: 845
diff changeset
58 endif
845
0fe7765dcb8e updated for version 7.0f03
vimboss
parents:
diff changeset
59 endif