From 527836e5c50029cf2d9299353358ba6a36ca102d Mon Sep 17 00:00:00 2001 From: xero Date: Wed, 13 Jan 2016 21:56:28 -0500 Subject: vim updates --- vim/.vimrc | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/vim/.vimrc b/vim/.vimrc index ad42e6f..6dea16b 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -18,6 +18,9 @@ " must be first, because it changes other options as a side effect set nocompatible +" security +set modelines=0 + " paste without auto indentation set paste @@ -37,6 +40,7 @@ set wildignorecase " case insensitive search set ignorecase set smartcase +set infercase " the /g flag on :s substitutions by default set gdefault @@ -60,6 +64,9 @@ set tabstop=2 " let backspace delete indent set softtabstop=2 +" enable auto indentation +set autoindent + " remove trailing whitespaces and ^M chars autocmd FileType c,cpp,java,php,js,python,twig,xml,yml autocmd BufWritePre :call setline(1,map(getline(1,"$"),'substitute(v:val,"\\s\\+$","","")')) @@ -84,6 +91,9 @@ command Nobl :g/^\s*$/d " toggle spellcheck command Spell :setlocal spell! spell? +" make current buffer executable +command Chmodx :!chmod a+x % + " ╻┏┓╻╺┳╸┏━╸┏━┓┏━╸┏━┓┏━╸┏━╸ " ┃┃┗┫ ┃ ┣╸ ┣┳┛┣╸ ┣━┫┃ ┣╸ " ╹╹ ╹ ╹ ┗━╸╹┗╸╹ ╹ ╹┗━╸┗━╸ @@ -133,7 +143,6 @@ if 1 " boolean for plugin loading Plugin 'airblade/vim-gitgutter' Plugin 'isa/vim-matchit' Plugin 'shawncplus/phpcomplete.vim' - Plugin 'mustache/vim-mustache-handlebars' Plugin 'rking/ag.vim' Plugin 'itchyny/lightline.vim' Plugin 'tpope/vim-fugitive' @@ -167,9 +176,6 @@ if 1 " boolean for plugin loading highlight GitGutterDelete ctermfg=red ctermbg=237 highlight GitGutterChangeDelete ctermfg=red ctermbg=237 - " vim mustache http://git.io/vim-stash - let g:mustache_abbreviations = 1 - " ag, the silver searcher http://git.io/AEu3dQ + http://git.io/d9N0MA let g:agprg="ag -i --vimgrep" let g:ag_highlight=1 -- cgit v1.2.1