From f20096022de6453ad6e054357ade2fbba97a2423 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Fri, 21 Mar 2014 20:15:34 +0100 Subject: Maybe some other time… MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vim/ftplugin/mail.vim | 20 ++++++++++++++++++-- vim/vimrc | 5 ++++- 2 files changed, 22 insertions(+), 3 deletions(-) (limited to 'vim') diff --git a/vim/ftplugin/mail.vim b/vim/ftplugin/mail.vim index 7b38173..49a1b8e 100644 --- a/vim/ftplugin/mail.vim +++ b/vim/ftplugin/mail.vim @@ -1,2 +1,18 @@ -set tw=78 -set fo+=aw +set formatoptions=w + +" * to re-format the current paragraph correctly +" * to format a line which is too long, and go to the next line +" * to merge the previous line with the current one, with a correct +" formatting (sometimes useful associated with ) +" +" These keys might be used both in command mode and edit mode. +" +" might be smarter to use with the Mail_Del_Empty_Quoted() function +" defined below + +nmap gqap +nmap gqqj +nmap kgqj +map! gqapi +map! gqqji +map! kgqji diff --git a/vim/vimrc b/vim/vimrc index 51f0672..5e2dac8 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -31,12 +31,13 @@ colorscheme Darkcustomside " Smart Tabs (http://www.emacswiki.org/emacs/SmartTabs) NeoBundle 'gustavo-hms/vim-smart-tabs' +NeoBundle 'rust' + syntax on filetype plugin indent on set autoindent " always set autoindenting on set copyindent " copy the previous indentation on autoindenting set number " always show line numbers -set showmatch " set show matching parenthesis set smartcase " ignore case if search pattern is all lowercase, " case-sensitive otherwise set hlsearch " highlight search terms @@ -99,3 +100,5 @@ autocmd BufWinEnter * match ExtraWhitespace /\s\+$/ autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@