Вопрос о буфере VI / VIM

whereis ищет жестко запрограммированный путь, если не указано иное, а which ищет переменную PATH в текущей среде . Пожалуйста, прочтите руководство для обеих команд.

Вы можете использовать whereis с таким синтаксисом:

whereis -B $HOME/.local/bin -f customCC
1
27.11.2018, 17:02
1 ответ

См.:h :ls:

:ls[!] [flags]
    Show all buffers.  Example:

            1 #h   "/test/text"             line 1 
            2u     "asdf"                   line 0 
            3 %a + "version.c"              line 1 

[...]
    Indicators (chars in the same column are mutually exclusive):
    u       an unlisted buffer (only displayed when [!] is used)
               unlisted-buffer
     %      the buffer in the current window
     #      the alternate buffer for ":e #" and CTRL-^
      a     an active buffer: it is loaded and visible
      h     a hidden buffer: It is loaded, but currently not
               displayed in a window hidden-buffer
       -    a buffer with 'modifiable' off
       =    a readonly buffer
       R    a terminal buffer with a running job
       F    a terminal buffer with a finished job
       ?    a terminal buffer without a job: `:terminal NONE`
        +   a modified buffer
        x   a buffer with read errors

Итак, %a +указывает, что этот буфер:

  • буфер в активном окне
  • активный буфер
  • модифицированный буфер
2
27.01.2020, 23:31

Теги

Похожие вопросы