forked from tuxcanfly/CalVIM
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.vimrc
104 lines (79 loc) · 2.42 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
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
" bundles
call pathogen#runtime_append_all_bundles()
filetype plugin on
filetype plugin indent on
syn on
colorscheme elflord
set noic
set softtabstop=4
set expandtab
set nowrap " don't wrap lines
set tabstop=4 " a tab is four spaces
set backspace=indent,eol,start
" allow backspacing over everything in insert mode
set autoindent " always set autoindenting on
set copyindent " copy the previous indentation on autoindenting
set number " always show line numbers
set shiftwidth=4 " number of spaces to use for autoindenting
set shiftround " use multiple of shiftwidth when indenting with '<' and '>'
set showmatch " set show matching parenthesis
set ignorecase " ignore case when searching
set smartcase " ignore case if search pattern is all lowercase,
" case-sensitive otherwise
set hlsearch " highlight search terms
set incsearch " show search matches as you type
set nobackup
set noswapfile
set pastetoggle=<F2>
set nocompatible
set makeprg=python\ manage.py\ validate " django stuff
set cmdheight=2 " silent shell prompts
" nerdtree commentor
map <Leader>c ,c
map <Leader>e <C-e>
" toggle NERDTree
map <F4> :NERDTreeToggle<CR>
"toggle Taglist
map <F3> :TlistToggle<CR>
" toggle fugitive status
map <silent><leader>s :Gstatus<CR>
" toggle fugitive diff
map <silent><leader>d :Gdiff<CR>
" change escpae
:inoremap <C-leader> <Esc>
" ignore python cruft
let NERDTreeIgnore=['\.pyc']
set wildignore=*.py[co]
" insert newline but dont enter insert mode
map <silent><leader><Enter> o<Esc>k
" python ctags
set tags+=$HOME/.vim/tags/python.ctags
" tabbing
map <silent><A-Right> :tabnext<CR>
map <silent><A-Left> :tabprevious<CR>
map <silent><C-x> :tabclose<CR>
" auto nerd tree
autocmd VimEnter * NERDTree
" clear search highlight
nnoremap <leader><space> :noh<cr>
" clipboard
set clipboard=unnamed
" shortcuts
nnoremap ; :
" vimango
let vimango_app_prefix = 'apps/'
let vimango_template_prefix = 'templates/'
:set hidden
let Tlist_Close_On_Select = 1
let Tlist_Use_Right_Window = 1
" clear ^M messup
noremap <Leader>m mmHmt:%s/<C-V><cr>//ge<cr>'tzt'm
"Mapping used to execute sparkup.
"g:sparkupExecuteMapping (Default: '<c-e>') -
"Mapping used to jump to the next empty tag/attribute.
"let g:sparkupNextMapping (Default: '<c-n>')
autocmd FileType python set omnifunc=pysmell#Complete
set gfn=Inconsolata\ Medium\ 13
if has("gui_running")
colorscheme ir_black
endif