"disable text wrapping via carriage returns, should only wrap visually
settextwidth=0
setwrapmargin=0
setwrap
setlinebreak
setbreakindent
"adds a ruler to the side of the screen
setnumber
"displays the coordinates of your cursour in the statusbar
setruler
"scrollofff sets the number of lines from the top or bottom of the screen before vim will scroll. sidescroll off does the same thing for the sides of the window
setscrolloff=5
setsidescrolloff=5
"better command line completion
setwildmenu
"ignore cases in search unless you have a capital letter in the search
setignorecase
setsmartcase
"this allows putting the cursor just after the last character of the line.
"set virtualedit=onemore
"show unfinished commands on the RIGHT side of the statusbar. yes, it is working.
setshowcmd
"make regex a bit easier to type
setmagic
sethidden
"always display status line
setlaststatus=2
"keycodes time out fast, mappings have a bit longer
"indent folding: really basic fold method. eventually I may make some custom folds, but with the foldtext fixed a bit, this shouldn't annoy me too much.
iffoldtype==# "basicindent"
"make vim fold automatically based on indentation.
setfoldmethod=indent
"make sure that comment are counted in indent folding!
"set the fold text for this method, in most cases, the line just above our fold is what we want, so we wont put any text into it. just level and linecount.