Skip to content

Commit 3417d0d

Browse files
committed
python mode vim cfg
1 parent 23c8837 commit 3417d0d

File tree

5 files changed

+67
-3
lines changed

5 files changed

+67
-3
lines changed

spell/en.utf-8.add

+43
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,46 @@ async
1818
Cmd
1919
TODO
2020
Deoplete
21+
https
22+
vim
23+
vim
24+
Elankath's
25+
Tarun
26+
stackoverflow
27+
vim
28+
Modeline
29+
Config
30+
toolbar
31+
BufEnter
32+
buftype
33+
startinsert
34+
endif
35+
Cygwin
36+
mswin
37+
vim
38+
Ctrl
39+
cmdline
40+
etc
41+
undos
42+
Clojure
43+
Clojurescript
44+
autocmd
45+
FileType
46+
imap
47+
css
48+
expr
49+
emmet
50+
deoplete
51+
zshrc
52+
sourceforge
53+
foldlevel
54+
foldmethod
55+
rupa
56+
plugins
57+
zshguide02
58+
Autoloading
59+
zstyle
60+
plugin
61+
base16
62+
vim
63+
foldmarker

spell/en.utf-8.add.spl

494 Bytes
Binary file not shown.

vimcfg/vimrc

+14-2
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ Plug 'godlygeek/tabular'
243243
Plug 'plasticboy/vim-markdown'
244244
Plug 'shime/vim-livedown'
245245
Plug 'vim-scripts/SyntaxRange'
246+
Plug 'python-mode/python-mode', { 'branch': 'develop' }
246247

247248
"Plugins for Clojure
248249
Plug 'guns/vim-clojure-static' "Syntax highlighting for clojure
@@ -501,6 +502,7 @@ autocmd BufRead,BufNewFile Cargo.toml,Cargo.lock,*.rs compiler cargo
501502
"Taken from example mappings in https://github.com/fatih/vim-go
502503
"
503504
function! ConfigureVimGo()
505+
setlocal nospell
504506
au FileType go nmap <Leader>x <Plug>(go-run)
505507
au FileType go nmap <leader>b <Plug>(go-build)
506508
au FileType go nmap <leader>t <Plug>(go-test)
@@ -518,8 +520,6 @@ function! ConfigureVimGo()
518520
au FileType go nmap <leader>r <Plug>(go-rename)
519521
au FileType go set path+=~/src,~/src/go/src
520522

521-
522-
523523
endfunction
524524
"See https://hackernoon.com/my-neovim-setup-for-go-7f7b6e805876
525525
let g:go_fmt_command = "goimports"
@@ -545,10 +545,22 @@ autocmd FileType go if exists(":GoBuild") | call ConfigureVimGo() | endif
545545

546546
" }
547547

548+
" { * Configure Python Mode
549+
" https://github.com/python-mode/python-mode
550+
"
551+
function! ConfigurePythonMode()
552+
setlocal nospell
553+
endfunction
554+
autocmd FileType python if exists(":PymodeVersion") | call ConfigurePythonMode() | endif
555+
let g:pymode_run_bind = '<leader>x'
556+
557+
" }
558+
548559
" { * Configure Typescript Lang
549560
" See: https://github.com/Quramy/tsuquyomi
550561
"
551562
function! ConfigureVimTypescript()
563+
setlocal nospell
552564
autocmd FileType typescript setlocal completeopt+=menu,preview
553565
let g:tsuquyomi_completion_detail = 1
554566
au FileType typescript nmap <leader>i <Plug>(TsuquyomiSignatureHelp)

zshcfg/zshenv

+5
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,11 @@ defenv_python() {
194194
local pybin=$(echo ~/Library/Python/3.*/bin | awk '{print $NF}')
195195
[ -d $pybin ] && path+="$pybin" && export PATH
196196
fi
197+
# http://virtualenvwrapper.readthedocs.io/en/latest/_sources/install.txt
198+
if [[ -f /usr/bin/python3 ]]; then
199+
export WORKON_HOME=$HOME/.virtualenvs
200+
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
201+
fi
197202
#TODO: configure python environment for linux/wsl too!
198203
}
199204

zshcfg/zshrc

+5-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ main() {
1919
neovim_config
2020
pet_config
2121
java_config
22+
python_config
2223
def_autoloads
2324
exec_autoruns
2425
exec_compinit
@@ -229,7 +230,10 @@ java_config() {
229230
fi
230231
}
231232

232-
233+
python_config() {
234+
[[ -f /usr/local/bin/virtualenvwrapper.sh ]] && source /usr/local/bin/virtualenvwrapper.sh
235+
[[ -f ~/.local/bin/virtualenvwrapper.sh ]] && source ~/.local/bin/virtualenvwrapper.sh
236+
}
233237

234238
exec_autoruns() {
235239
if [[ -d $dotfiles ]] ; then

0 commit comments

Comments
 (0)