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