diff options
-rw-r--r-- | .vimrc | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -12,9 +12,34 @@ let g:tex_flavor = "latex" set visualbell set background=dark set runtimepath=~/.vim,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,~/.vim/after +set autowrite +set autoread +set ttyfast +set mouse=a let g:airline_powerline_fonts = 1 syntax on +" Make search better +set gdefault +set ignorecase +set smartcase +set hlsearch +noremap <silent> <Leader>, :noh<cr> +set incsearch +set showmatch + +" 80 character margin +set textwidth=80 +set formatoptions=qrnl +set wrapmargin=0 +set colorcolumn=+1 + +" X11 clipboard support +set pastetoggle=<F2> "to preserve indentation +vnoremap <C-c> "*y +map <silent><Leader>p :set paste<CR>o<esc>"*]p:set nopaste<cr>" +map <silent><Leader><S-p> :set paste<CR>O<esc>"*]p:set nopaste<cr>" + " Turn off swap files set noswapfile set nobackup @@ -77,6 +102,7 @@ nnoremap <C-L> <C-W><C-L> nnoremap <C-H> <C-W><C-H> nmap <Leader>s :source ~/.vimrc nmap <Leader>v :e ~/.vimrc +let mapleader = " " " Email options au BufRead /tmp/mutt-* set tw=72 |