diff options
author | ben <ben@nagy.contact> | 2025-05-03 14:41:13 -0700 |
---|---|---|
committer | ben <ben@nagy.contact> | 2025-05-03 14:41:13 -0700 |
commit | ea687c769521b3139c8547a2d4a839842fa7b0fe (patch) | |
tree | f4805588bb59ca15e96d8b71124c4aafd5dd40cb /config/nvim-archive/external_settings/status-line.vim | |
parent | 16725b034eeb7122f4174f08221ab7f07b6abbf1 (diff) |
added scripts
Diffstat (limited to 'config/nvim-archive/external_settings/status-line.vim')
-rw-r--r-- | config/nvim-archive/external_settings/status-line.vim | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/config/nvim-archive/external_settings/status-line.vim b/config/nvim-archive/external_settings/status-line.vim deleted file mode 100644 index b2b4d94..0000000 --- a/config/nvim-archive/external_settings/status-line.vim +++ /dev/null @@ -1,31 +0,0 @@ -function! GitBranch() - return system("git rev-parse --abbrev-ref HEAD 2>/dev/null | tr -d '\n'") -endfunction - -function! StatuslineGit() - let l:branchname = GitBranch() - return strlen(l:branchname) > 0?' '.l:branchname.' ':'' -endfunction - - -set number " Show line number -set statusline= " Enable status line -set statusline+=%{StatuslineGit()} -set statusline +=%1*\ %n\ %* " buffer number -set statusline +=%5*%{&ff}%* " file format -set statusline +=%3*%y%* " file type -set statusline +=%4*\ %<%{expand('%:p:h')}/%* " full path excluding file name -set statusline+=\%f " file name -set statusline +=%2*%m%* " modified flag -set statusline +=%1*%=%5l%* " current line -set statusline +=%2*/%L:%* " total lines -set statusline +=%1*%1v\ %* " virtual column number -set statusline +=%1*\ %* " add a space for separation -set statusline +=%2*%{char2nr(getline('.')[col('.')-1])}\ %* " character under cursor ASCII code" - - -"set statusline +=%4*\ %<%F%* " full path -"set statusline +=%2*0x%02B\ %* " character under cursor hexadecimal -"set statusline +=%8*\ [%{strftime('%u/%d/%m/%y\ %R:%S\')}\] " Date & Time -"set statusline +=%8*\ [%{strftime('%u/%d/%m/%y')}] " Just the date -"set statusline+=%#PmenuSel# |