From f6006258bb55fac8ddede99312610c2abfedd23c Mon Sep 17 00:00:00 2001 From: coderkun Date: Sat, 19 Mar 2016 15:53:07 +0100 Subject: [PATCH] add vim configuration --- vimrc | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 vimrc diff --git a/vimrc b/vimrc new file mode 100644 index 0000000..f83cf90 --- /dev/null +++ b/vimrc @@ -0,0 +1,34 @@ +filetype plugin on +syntax on +set number +set nowrap +set wildmode=longest,list +set colorcolumn=80 +colorscheme solarized + +" Indentation +set smartindent +set tabstop=4 +set softtabstop=4 +set shiftwidth=4 +set expandtab + +" Search +set incsearch +set hlsearch +set ignorecase +set smartcase + +" Whitespaces +set listchars=tab:>-,trail:ยท +set list +:nnoremap :let _s=@/:%s/\s\+$//e:let @/=_s:nohl + + +" Break lines for tex-files +augroup WrapLineInTeXFile + autocmd! + autocmd FileType tex setlocal wrap + autocmd FileType tex setlocal linebreak + autocmd FileType tex setlocal nonumber +augroup END