1
0
mirror of https://github.com/eoli3n/dotfiles synced 2024-11-22 23:12:32 +01:00
eoli3n-dotfiles/.vimrc
2017-01-05 14:00:46 +01:00

54 lines
1.3 KiB
VimL

" lines numbers
set nu
" better contrast
" set background=dark
" active colors
syntax on
" choose colors
set background=dark
colorscheme solarized
hi Normal ctermbg=none
let g:solarized_termtrans=1
" highlight NonText ctermbg=none
" no tab when pasting
" set paste
" mouse selection to not have line numbers
" mac : CMD+ALT+SELECTION
" linux : SHIFT+SELECTION
set mouse=r
" no tilde files
set nobackup
" python options
au BufNewFile,BufRead *.py
\ set tabstop=4 |
\ set softtabstop=4 |
\ set shiftwidth=4 |
\ set textwidth=79 |
\ set expandtab |
\ set autoindent |
\ set fileformat=unix
filetype indent on
" This beauty remembers where you were the last time you edited the file, and returns to the same position.
au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif
" Use Vim settings, rather than Vi settings (much better!).
" This must be first, because it changes other options as a side effect.
set nocompatible
" allow backspacing over everything in insert mode
set backspace=indent,eol,start
set ruler " show the cursor position all the time
set showcmd " display incomplete commands
set incsearch " do incremental searching
set autoindent " always set autoindenting on
" powerline
set laststatus=2
set t_Co=256
let g:powerline_pycmd="py3"