[vim] proper highlighting of cnf files

Forces dosini on a few file types. Also eliminates the need to indent
files as the colors are enough of a section marker. Seems there was some
stray dotprivate shit still floating around as well.
This commit is contained in:
Josh Sherman 2016-11-20 11:11:54 -06:00
parent d4556b1e81
commit 09a935c987
3 changed files with 20 additions and 17 deletions

View file

@ -1,32 +1,32 @@
[user]
name = Josh Sherman
email = josh@gravityblvd.com
name = Josh Sherman
email = josh@gravityblvd.com
[github]
user = joshtronic
user = joshtronic
[credential]
helper = cache --timeout=86400
helper = cache --timeout=86400
[color]
branch = auto
diff = auto
status = auto
branch = auto
diff = auto
status = auto
[core]
editor = vim
editor = vim
[diff]
compactionHeuristic = true
rename = copy
compactionHeuristic = true
rename = copy
[pager]
color = true
color = true
[push]
default = simple
default = simple
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true

6
my.cnf
View file

@ -1,4 +1,6 @@
!include ~/.dotprivate/my.cnf
[client]
user = root
password = mysql
[mysql]
pager = grcat ~/.grcat
pager = grcat ~/.grcat

View file

@ -47,6 +47,7 @@ set wildmode=list:longest
" TODO: Should clean this shit up
" Sets up our filetypes
autocmd BufRead,BufNewFile *.cnf,*.conf,*gitconfig setf dosini
autocmd BufNewFile,BufRead *.dust,*.dustjs,*.tl set filetype=dustjs
autocmd BufNewFile,BufRead *.less set filetype=less
autocmd BufNewFile,BufRead nginx.conf set filetype=nginx