Mercurial > vim
comparison runtime/doc/windows.txt @ 6945:957a3bb312fa v7.4.791
patch 7.4.791
Problem: The buffer list can be very long.
Solution: Add an argument to ":ls" to specify the type of buffer to list.
(Marcin Szamotulski)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 21 Jul 2015 15:03:06 +0200 |
parents | b0a227941705 |
children | b2673982c625 |
comparison
equal
deleted
inserted
replaced
6944:2e7b340bdba5 | 6945:957a3bb312fa |
---|---|
984 | 984 |
985 A buffer can also be unlisted. This means it exists, but it is not in the | 985 A buffer can also be unlisted. This means it exists, but it is not in the |
986 list of buffers. |unlisted-buffer| | 986 list of buffers. |unlisted-buffer| |
987 | 987 |
988 | 988 |
989 :files[!] *:files* | 989 :files[!] [flags] *:files* |
990 :buffers[!] *:buffers* *:ls* | 990 :buffers[!] [flags] *:buffers* *:ls* |
991 :ls[!] Show all buffers. Example: | 991 :ls[!] [flags] |
992 Show all buffers. Example: | |
992 | 993 |
993 1 #h "/test/text" line 1 ~ | 994 1 #h "/test/text" line 1 ~ |
994 2u "asdf" line 0 ~ | 995 2u "asdf" line 0 ~ |
995 3 %a + "version.c" line 1 ~ | 996 3 %a + "version.c" line 1 ~ |
996 | 997 |
1011 displayed in a window |hidden-buffer| | 1012 displayed in a window |hidden-buffer| |
1012 - a buffer with 'modifiable' off | 1013 - a buffer with 'modifiable' off |
1013 = a readonly buffer | 1014 = a readonly buffer |
1014 + a modified buffer | 1015 + a modified buffer |
1015 x a buffer with read errors | 1016 x a buffer with read errors |
1017 | |
1018 [flags] can be a combination of the following characters, | |
1019 which restrict the buffers to be listed: | |
1020 + modified buffers | |
1021 - buffers with 'modifiable' off | |
1022 = readonly buffers | |
1023 a active buffers | |
1024 u unloaded buffers (overrides the "!") | |
1025 h hidden buffers | |
1026 x buffers with a read error | |
1027 % current buffer | |
1028 # alternate buffer | |
1029 Combining flags means they are "and"ed together, e.g.: | |
1030 h+ hidden buffers which are modified | |
1031 a+ active buffers which are modified | |
1016 | 1032 |
1017 *:bad* *:badd* | 1033 *:bad* *:badd* |
1018 :bad[d] [+lnum] {fname} | 1034 :bad[d] [+lnum] {fname} |
1019 Add file name {fname} to the buffer list, without loading it. | 1035 Add file name {fname} to the buffer list, without loading it. |
1020 If "lnum" is specified, the cursor will be positioned at that | 1036 If "lnum" is specified, the cursor will be positioned at that |