Skip to content

Commit 0527119

Browse files
committed
Add snippets plugin, vimpdb, and more Python tweaks
1 parent 04cfdee commit 0527119

31 files changed

+3466
-1600
lines changed

.vimrc

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,12 +142,18 @@ endif
142142

143143
set wildignore+=*.o,*.obj,.git,public/dojo-release**,public/javascript/dojoroot/**,public/images/**,*.css,public/img/**,public/css/**
144144

145-
"":set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [POS=%04l,%04v][%p%%]\ [LEN=%L]\ %{fugitive#statusline()}
146145
set statusline=
147146
set statusline+=%#MatchParen#
148147
set statusline+=%*
149148
set statusline+=%F
150-
set statusline+=\ %l:%v
149+
set statusline+=\ %l,%v
151150
set statusline+=\ %#DiffChange#
152151
set statusline+=\ %p%%
153-
set statusline+=\ %{fugitive#statusline()}\ %Y
152+
set statusline+=%=
153+
set statusline+=\ %{fugitive#statusline()}
154+
set statusline+=\ \ %Y
155+
156+
set makeprg=pylint\ --reports=n\ --output-format=parseable\ %:p
157+
set errorformat=%f:%l:\ %m
158+
159+
set guioptions-=T

after/plugin/snipMate.vim

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
" These are the mappings for snipMate.vim. Putting it here ensures that it
2+
" will be mapped after other plugins such as supertab.vim.
3+
if !exists('loaded_snips') || exists('s:did_snips_mappings')
4+
finish
5+
endif
6+
let s:did_snips_mappings = 1
7+
8+
ino <silent> <tab> <c-r>=TriggerSnippet()<cr>
9+
snor <silent> <tab> <esc>i<right><c-r>=TriggerSnippet()<cr>
10+
ino <silent> <s-tab> <c-r>=BackwardsSnippet()<cr>
11+
snor <silent> <s-tab> <esc>i<right><c-r>=BackwardsSnippet()<cr>
12+
ino <silent> <c-r><tab> <c-r>=ShowAvailableSnips()<cr>
13+
14+
" The default mappings for these are annoying & sometimes break snipMate.
15+
" You can change them back if you want, I've put them here for convenience.
16+
snor <bs> b<bs>
17+
snor <right> <esc>a
18+
snor <left> <esc>bi
19+
snor ' b<bs>'
20+
snor ` b<bs>`
21+
snor % b<bs>%
22+
snor U b<bs>U
23+
snor ^ b<bs>^
24+
snor \ b<bs>\
25+
snor <c-x> b<bs><c-x>
26+
27+
" By default load snippets in snippets_dir
28+
if empty(snippets_dir)
29+
finish
30+
endif
31+
32+
call GetSnippets(snippets_dir, '_') " Get global snippets
33+
34+
au FileType * if &ft != 'help' | call GetSnippets(snippets_dir, &ft) | endif
35+
" vim:noet:sw=4:ts=4:ft=vim

0 commit comments

Comments
 (0)