Revisions

gist: 200694 Download_button fork
public
Public Clone URL: git://gist.github.com/200694.git
Embed All Files: show embed
.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
syntax on
 
"==========================================
"" General Settings
"==========================================
"" General Settings
set backspace=indent,eol,start
set browsedir=buffer
set fileformat=unix
set hidden
set history=100
set modeline
set nobackup
set noswapfile
set title
set nojoinspaces
 
" Search
set hlsearch
set incsearch
set showmatch
set smartcase
 
" Tabs
set autoindent
set expandtab
set shiftwidth=4
set smartindent
set smarttab
set softtabstop=4
set tabstop=4
 
" Visual Display
set laststatus=2
set noequalalways
set number
set ruler
set scrolloff=4
set showcmd
set virtualedit=all
set wildmenu
set nowrap
set splitright
set splitbelow
set showtabline=2
 
set guitablabel=%t
 
set number
 
nnoremap <F2> :set nonumber!<CR>:set foldcolumn=0<CR>
nnoremap :TlistToggle
 
augroup vimrc_autocmds
  au!
  autocmd BufRead * highlight OverLength ctermbg=red ctermfg=white guibg=#592929
  autocmd BufRead * match OverLength /\%81v.*/
augroup END
 
 
filetype plugin indent on
autocmd FileType python set complete+=k~/.vim/syntax/python.vim isk+=.,(
 
command Pylint :call Pylint()
function! Pylint()
    setlocal makeprg=(echo\ '[%]';\ pylint\ %)
    setlocal efm=%+P[%f],%t:\ %#%l:%m
    silent make
    cwindow
endfunction