add vim configuration
This commit is contained in:
parent
a391cdcc50
commit
f6006258bb
1 changed files with 34 additions and 0 deletions
34
vimrc
Normal file
34
vimrc
Normal 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
|
||||
Loading…
Reference in a new issue