John Guidry avatar John Guidry committed feca536

Add more informative statusline

Comments (0)

Files changed (1)

 set ruler
 set laststatus=2
 
+" Statusline
+set statusline=%<%F       "tail of the filename
+
+"display a warning if fileformat isnt unix
+set statusline+=%#warningmsg#
+set statusline+=%{&ff!='unix'?'['.&ff.']':''}
+set statusline+=%*
+
+"display a warning if file encoding isnt utf-8
+set statusline+=%#warningmsg#
+set statusline+=%{(&fenc!='utf-8'&&&fenc!='')?'['.&fenc.']':''}
+set statusline+=%*
+
+set statusline+=%h      "help file flag
+set statusline+=%r      "read only flag
+set statusline+=%m      "modified flag
+
+set statusline+=\    " Space.
+
+" Line and column position and counts.
+set statusline+=(line\ %l\/%L,\ col\ %03c)
+
+set statusline+=\    " Space.
+
+set statusline+=%=      "right align.
+
+set statusline+=%{&ft}                                  "filetype (python).
+
 " Begin scroll three lines from edge 
 set scrolloff=3
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.