From 4083c26204047aaf44e97dc5dba88387394e0fd1 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 19 Aug 2015 14:34:37 -0700 Subject: [vim] various small fixes --- vimrc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/vimrc b/vimrc index eb6d241..a79ea56 100644 --- a/vimrc +++ b/vimrc @@ -14,7 +14,7 @@ set encoding=utf-8 set winminheight=0 set hidden " allows files to be open in invisible buffers set wildmenu -set wildmode=full +set wildmode=list:longest,full set smartcase " seriously, no backup @@ -22,6 +22,9 @@ set nobackup set nowritebackup set noswapfile +" Toggle paste mode on and off with comma p. +map ,p :se invpaste paste? + set expandtab set tabstop=2 set shiftwidth=2 @@ -54,5 +57,5 @@ au FileType python setlocal keywordprg=pydoc shiftwidth=2 softtabstop=2 tabsto au FileType make setlocal shiftwidth=8 tabstop=8 noexpandtab au FileType markdown setlocal tw=100 au FileType sh setlocal shiftwidth=2 softtabstop=2 tabstop=2 tw=80 -au FileType go setlocal tw=100 noexpandtab tabstop=4 shiftwidth=4 nolist +au FileType go setlocal tw=100 noexpandtab tabstop=2 shiftwidth=2 nolist au FileType go autocmd BufWritePre Fmt -- cgit 1.4.1