aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxero <x@xero.nu>2016-01-13 21:56:28 -0500
committerxero <x@xero.nu>2016-01-13 21:56:28 -0500
commit527836e5c50029cf2d9299353358ba6a36ca102d (patch)
treedc841374ff24da9ab8e57b9fdcd7e431af77790f
parent322b3c56a089697d39e931a1f2d70ad0fdc93747 (diff)
downloaddotfiles_ascii-527836e5c50029cf2d9299353358ba6a36ca102d.tar.xz
dotfiles_ascii-527836e5c50029cf2d9299353358ba6a36ca102d.zip
vim updates
-rw-r--r--vim/.vimrc14
1 files 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 <buffer> :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