1
0
mirror of https://github.com/eoli3n/dotfiles synced 2024-11-23 07:21:58 +01:00
eoli3n-dotfiles/.vimrc

55 lines
1.3 KiB
VimL
Raw Normal View History

2016-03-16 12:23:43 +01:00
" lines numbers
set nu
" better contrast
" set background=dark
" active colors
syntax on
" choose colors
2016-03-28 23:31:38 +02:00
set background=dark
2017-02-07 18:40:08 +01:00
" colorscheme solarized
2016-03-28 23:31:38 +02:00
hi Normal ctermbg=none
2017-02-07 18:40:08 +01:00
" let g:solarized_termtrans=1
2016-10-11 19:30:38 +02:00
" highlight NonText ctermbg=none
2016-03-16 12:23:43 +01:00
" no tab when pasting
" set paste
" mouse selection to not have line numbers
" mac : CMD+ALT+SELECTION
" linux : SHIFT+SELECTION
set mouse=r
2017-02-07 18:40:08 +01:00
2016-03-16 12:23:43 +01:00
" no tilde files
set nobackup
" python options
2017-01-05 14:00:46 +01:00
au BufNewFile,BufRead *.py
\ set tabstop=4 |
\ set softtabstop=4 |
\ set shiftwidth=4 |
\ set textwidth=79 |
\ set expandtab |
\ set autoindent |
\ set fileformat=unix
2016-03-16 12:23:43 +01:00
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
2016-09-18 22:13:41 +02:00
" powerline
set laststatus=2
set t_Co=256
let g:powerline_pycmd="py3"