-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
80 lines (71 loc) · 2.59 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
"""2012-04-22
"""From https://github.com/tpope/vim-pathogen
set runtimepath+=~/dotfiles/vim
call pathogen#infect('~/dotfiles/vim/bundle')
set modeline
set modelines=5
set textwidth=0
set tabstop=4
set shiftwidth=4
set autoindent
set hidden
set expandtab
set list
set listchars=tab:>-,eol:$,trail:·
syntax enable
"fffffffuuuuuuuuu DarkBlue
highlight Comment ctermfg=DarkGreen
"""2011-06-25
"""From http://www.ktaylor.name/2009/11/vim-screen-lisp-programming-environment.html
"For screen.vim send block
"to SendScreen function
"(eg Scheme interpreter)
" screen.vim REPL: send paragraph to parallel process
vmap <C-c><C-c> :ScreenSend<CR>
nmap <C-c><C-c> mCvip<C-c><C-c>
imap <C-c><C-c> <Esc><C-c><C-c><Right>
:command Scheme :ScreenShell /Applications/mit-scheme.app/Contents/Resources/mit-scheme
"""2012-04-22
"""From https://github.com/bukzor/buck_dotfiles/blob/master/.vimrc
"set ruler showcmd "give line, column, and command in the status line
set laststatus=2 "always show the status line
"make filename-completion more terminal-like
set wildmode=longest:full
set wildmenu "a menu for resolving ambiguous tab-completion
"files we never want to edit
set wildignore=*.pyc,*.sw[pno]
set incsearch "search as you type
set hlsearch "highlight the search
"quick buffer switching with TAB, even with edited files
nmap <TAB> :bn<CR>
nmap <S-TAB> :bp<CR>
set autoread "auto-reload files, if there's no conflict
set smarttab "backspace to remove space-indents
"smart indenting by filetype, better than smartindent
filetype on
filetype indent on
filetype plugin on
"""2012-04-23
"""From https://trac.yelpcorp.com/wiki/VimTips
"Initialize with:
"/usr/bin/ctags -L <(find . -name '*.py') --fields=+iaS --python-kinds=-i --sort=yes --extra=+q
"Or for ruby:
"ctags -R --languages=ruby --exclude=.git --exclude=log . $(bundle list --paths)
"Or for go (using https://github.com/jstemmer/gotags):
"~/code/go/bin/gotags -R . > tags
set tags=./tags;/
"""2012-04-24
"""From https://github.com/scrooloose/syntastic/blob/master/doc/syntastic.txt
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
"""2012-07-09
"""From striglia
" Fix vim trying to double indent by hardcoding a single indent at all times.
let g:pyindent_open_paren = '&sw'
let g:pyindent_nested_paren = '&sw'
let g:pyindent_continue = '&sw'
"""2020-08-06
"""https://stackoverflow.com/questions/23177561/switch-python-version-for-vim-syntastic
let g:syntastic_python_python_exec = 'python3'
let g:syntastic_python_checkers = ['python']