Last active
December 26, 2015 19:59
-
-
Save distransient/7205192 to your computer and use it in GitHub Desktop.
vim config file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" vim's standard search mode is all wonky, make it normal like on browsers | |
set incsearch | |
" make indents into double spaces | |
filetype plugin indent on | |
set tabstop=2 | |
set shiftwidth=2 | |
" highlight syntax | |
syntax on | |
" show line numbers | |
set number | |
" allow mouse usage | |
set mouse=a | |
" the rest of this stuff is used to set the title of the window | |
set title | |
set whichwrap=b,s,<,>,[,] | |
let s = "" | |
let s .= "%<" | " truncate at the start | |
let s .= "%f%8* " | " file name | |
let s .= "%r" | " readonly flag | |
let s .= '%{&bomb?"!":""} ' | " byte-order mark flag | |
let s .= "%*%=" | " right-justify after here | |
let s .= "%9*%m%* " | " modified flag | |
let s .= "0x%02B " | " hex value of current byte | |
let s .= "%l" | " current line | |
let s .= ":%c%V" | " column number, virtual column (if different) | |
let s .= " %P" | " percentage | |
let s .= "/%LL" | " number of lines | |
set statusline=%!s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment