Watch
1
0
Fork
You've already forked dotfiles
0

add vim configuration

This commit is contained in:
coderkun 2016-03-19 15:53:07 +01:00
commit f6006258bb

34
vimrc Normal file
View file

@ -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 <silent> <F5> :let _s=@/<Bar>:%s/\s\+$//e<Bar>:let @/=_s<Bar>:nohl<CR>
" 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