So, I realized that I eventually got thanks to the main directions of Al:
:hi User1 term=NONE cterm=NONE ctermfg=Magenta ctermbg=Black :set laststatus=2 :set statusline=%1*%F%h%m%w\ [Time:\ %{strftime(\"%H:%M\")}]\ [Mod\ Time:\ %{strftime(\"%H:%M:%S\",getftime(expand(\"\%\%\")))}]%=\ [%p%%]\ [%l/%L]
Description:
:hi User1 term=NONE cterm=NONE ctermfg=Magenta ctermbg=Black
This command sets the background color of the user1 profile to black and the word color to Magenta. We make the status line equal to this profile so that we can change the color of our status bar.
:set laststatus=2
This command makes the status bar constantly visible by placing two lines at the bottom of the vim command.
:set statusline=%1*%F%h%m\ [Time:\ %{strftime(\"%H:%M\")}]\ [Mod\ Time:\ %{strftime(\"%H:%M:%S\",getftime(expand(\"\%\%\")))}]%=\ [%p%%]\ [%l/%L]
This is a command that actually shows what will be in the status bar. In this command, we use several functions (e.g. strftime, expand ...) that are specific to vim. We also use% (letter) to denote specific vim variables. The rest of the text simply prints what you write on the screen using \, and then a space after the space is represented. Now describe the specific variables.
%1* - this var corresponds to the color that we made in the first command, this sets the status bar equal to these colors%F%h%m says that the full file name, help file flag, and changed flag are displayed[Time:\ %{strftime(\"%H:%M\")}]\ says display [Time: (current time)] and displays it in hours and minutes. If you need a different time format, for example, perhaps include a year or do something: help strftime.[Mod\ Time:\ %{strftime(\"%H:%M:%S\",getftime(expand(\"\%\%\")))}] says display [Mod Time: (mod time) ]. Its hours: minutes: seconds.%=\ [%p%%]\ [%l/%L] indicates the right alignment and shows the percentage of the skipped file and [(current line num) / (maximum line num)].
source share