-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
44 lines (33 loc) · 1.41 KB
/
.vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
set t_Co=256
set background=light
"" pathogen not installed by default
"" execute pathogen#infect()
set nocompatible " choose no compatibility with legacy vi
syntax enable
set encoding=utf-8
set showcmd " display incomplete commands
filetype on " try to detect filetypes
filetype plugin indent on " load file type plugins + indentation
"" Whitespace
set nowrap " don't wrap lines
set tabstop=2
set softtabstop=2
set shiftwidth=2 " a tab is four spaces
set expandtab " use spaces, not tabs (optional)
set backspace=indent,eol,start " backspace through everything in insert mode
"" Searching
set hlsearch " highlight matches
set incsearch " incremental searching
set ignorecase " searches are case insensitive...
set smartcase " ... unless they contain at least one capital letter
set laststatus=2 " Always display the statusline in all windows
set noshowmode " Hide the default mode text (e.g. -- INSERT -- below the statusline)
nnoremap <F2> :set invpaste paste?<CR>
set pastetoggle=<F2>
set showmode
autocmd BufWritePre *.py normal m`:%s/\s\+$//e ``
au FileType python set omnifunc=pythoncomplete#Complete
let g:SuperTabDefaultCompletionType = "context"
set completeopt=menuone,longest,preview
let g:flake8_max_line_length=120
colors pablo