Settings for displaying content in the lower part of the vim page
習慣沉默
習慣沉默 2017-05-16 16:41:20
0
4
779

In this vim, how are the full path of the file displayed below and the status of the operation being set?

Are there any other cooler settings? I saw that some experts can directly operate the terminal to open files and the like. What do you press?

習慣沉默
習慣沉默

reply all(4)
迷茫

The one below is the result of statusline and showmode option settings.

It is recommended to execute vimtutor first to learn the basics of Vim, then execute :help in vim and read the user manual, and finally try various plug-ins.

给我你的怀抱

I use powerline
It looks like this:

左手右手慢动作

Same as above, use powline

淡淡烟草味
if has('statusline')
    set laststatus=2   " make statusline always shown

    set statusline=%<%f\:                    " Filename
    set statusline+=%-5.3n\                 " buffer number
    set statusline+=%w%h%m%r                 " Options
    set statusline+=%{fugitive#statusline()} " Git Hotness
    set statusline+=\ [%{&ff}/%Y]            " Filetype
    set statusline+=\ [%{getcwd()}]          " Current dir
    set statusline+=%=%-14.(%l,%c%V%)\ %p%%  " Right aligned file nav info
endif

Among them set statusline+=%{fugitive#statusline()} " Git Hotness see the plug-in https://github.com/tpope/vim-fugitive

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template