"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
settimeouttimeoutlen=50ttimeoutttimeoutlen=5
"make it so the session feature wont overwrite our vimrc if the vimrc has newer bindings than this session.
setsessionoptions-=options
"tab stuff
settabstop=4
setshiftwidth=4
setautoindent
"highlighting/colour stuff
"sets the colorscheme. to get a list of the available colors, do :colorscheme <Space> <C-d>
colorschemeron
syntaxenable
"highlight search results
sethlsearch
"search as you type
setincsearch
"<leader> L clears the search highlighting
noremap<leader>l :nohls<Enter>
"neovim stuff
ifhas('nvim')
setguicursor=
endif
"folding stuff TODO: implement other folding methods.
"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.