X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vim%2Fvimrc;h=84813d960d6bf5758a7be09a2a17d3eadfd1e49e;hb=c282b1a7e828b5d9244d1ba0e8afb6134f818984;hp=bb7ac1e3f59b81979ab9d9905e5a3530062496e1;hpb=3bf45b718764886c0145179534536f91c5e6df5b;p=config%2Fdotfiles.git diff --git a/vim/vimrc b/vim/vimrc index bb7ac1e..84813d9 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -920,11 +920,10 @@ if has('eval') endif " Settings for securemodelines. - " Only allow items I need (also includes spl which is not enabled by - " default). + " Only allow items I need if v:version >= 700 " need lists let g:secure_modelines_allowed_items = ['ft', 'spl', 'fdm', - \ 'sw', 'sts', 'noet'] + \ 'ts', 'sw', 'sts', 'noet'] endif " Settings for gnupg. @@ -946,6 +945,16 @@ if has('eval') " Only highlight the current placeholder. let g:xptemplate_highlight = 'current' +" Fzf settings + + " Use FZF if available + if executable('fzf') + nmap :FZF + + " Disable CtrlP + let g:ctrlp_map = '' + endif + " CtrlP settings. " Don't manage the working directory (the default setting is too slow for " me). @@ -1072,21 +1081,22 @@ if has('autocmd') autocmd FileType vimperator setlocal commentstring=\"%s " Use TeX compiler for (La)TeX files. autocmd FileType tex compiler tex +" Go always uses tabs for indentation; use BufRead so modelines can overwrite +" settings like 'tabstop' + autocmd BufRead,StdinReadPost *.go call UseTabs() " FTDETECT AUTO COMMANDS " Recognize .test as Tcl files. autocmd BufRead,BufNewFile *.test set filetype=tcl +" /etc/network/interfaces + autocmd BufRead,BufNewFile /etc/network/interfaces set filetype=interfaces " OTHER AUTO COMMANDS " Disable spell checking, displaying of list characters and long lines when " viewing documentation. autocmd BufReadPost /usr/share/doc/* setlocal nospell nolist | 2match - -" Use diff filetype for mercurial patches in patch queue. - autocmd BufReadPost */.hg/patches/* set filetype=diff - augroup END endif