-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
68 lines (55 loc) · 1.85 KB
/
Copy pathvimrc
File metadata and controls
68 lines (55 loc) · 1.85 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
filetype off
"pathogen plugin organization
set nocp
source /home/ubu/.vim/autoload/pathogen.vim
call pathogen#infect()
call pathogen#helptags()
"Python folding plugin
set foldmethod=indent
set foldlevel=99
" mapping --------------------------------------------------------------------
let mapleader = ',' " another set of key shourtcuts, after pressing ,
" this one has to be remapped so tasklist.vim doesn't complain.
nnoremap <leader>v <Plug>TaskList
" map sort function to leader key + s
vnoremap <Leader>s :sort<CR>
" insert python print()
nnoremap <leader>p iprint("
" split window on leader+n
nnoremap <leader>n :vsp
" easier moving of code blocks
vnoremap < <gv " better indention
vnoremap > >gv
:inoremap ll <Esc>`^
map <c-j> <c-w>j
map <c-k> <c-w>k
map <c-l> <c-w>l
map <c-h> <c-w>h
"syntax highlightinga
syntax on " syntax highlighing
filetype on " try to detect filetypes
filetype plugin indent on " enable loading indent file for filetype
let g:pyflakes_use_quickfix = 1
let g:pep8_map='<leader>8'
au FileType python set omnifunc=pythoncomplete#Complete ts=4 sw=4 et
let g:SuperTabDefaultCompletionType = "context"
set completeopt=menuone,longest,preview
" better copy paste
set pastetoggle=<F2>
set clipboard=unnamed " standard copy paste behavior
" Mouse and backspace
set mouse=a " Mauscursor benutzen, evntl mit strg
set bs=2 "make backspace behavior normal
"show whitespace (must be inserted before colorscheme
"autocmd ColorScheme * highlight ExtraWhitespace ctermbg=red guibg=red
"au InsertLeave * match ExtraWhitespace /\s\+$/
" Showing line numbers and length
set number "lilne numbers
set tw=79 " width of doc
set colorcolumn=80
set nowrap " don't autom wrap on load
set fo-=t " don't autom wrap when typing
highlight ColorColumn ctermbg=233
"Spaces instead of tabs
set softtabstop=4
set shiftround