pymode
This commit is contained in:
@@ -6,6 +6,7 @@ from pathlib import Path
|
||||
from subprocess import check_call
|
||||
import shutil
|
||||
|
||||
|
||||
def install_vim(pdotfiles, force=False):
|
||||
phome = Path(os.path.expanduser("~")).resolve()
|
||||
phome_vimrc = phome / Path(".vimrc")
|
||||
@@ -26,7 +27,7 @@ def install_vim(pdotfiles, force=False):
|
||||
print("Symlinking {} to {}".format(phome_vimrc, pdotfiles_vimrc))
|
||||
phome_vimrc.symlink_to(pdotfiles_vimrc)
|
||||
|
||||
#vundle
|
||||
# vundle
|
||||
pvundle = phome / Path(".vim/bundle/Vundle.vim")
|
||||
|
||||
if not force and pvundle.exists():
|
||||
@@ -35,9 +36,10 @@ def install_vim(pdotfiles, force=False):
|
||||
if force and pvundle.exists():
|
||||
shutil.rmtree(pvundle.as_posix())
|
||||
print("Install Vundle")
|
||||
check_call(["git", "clone", "https://github.com/VundleVim/Vundle.vim.git", pvundle.as_posix()])
|
||||
check_call(
|
||||
["git", "clone", "https://github.com/VundleVim/Vundle.vim.git",
|
||||
pvundle.as_posix()])
|
||||
|
||||
if __name__ == "__main__":
|
||||
if len(sys.argv) == 2:
|
||||
install_vim(Path(sys.argv[1]))
|
||||
|
||||
|
||||
11
vim/vimrc
11
vim/vimrc
@@ -19,6 +19,10 @@ Plugin 'chrisbra/SudoEdit.vim'
|
||||
" Fuzzy finder (files, mru, etc)
|
||||
Plugin 'ctrlpvim/ctrlp.vim'
|
||||
|
||||
" Python Mode "
|
||||
Plugin 'klen/python-mode'
|
||||
|
||||
|
||||
" The following are examples of different formats supported.
|
||||
" Keep Plugin commands between vundle#begin/end.
|
||||
" plugin on GitHub repo
|
||||
@@ -72,6 +76,11 @@ set wildignore+=*\\tmp\\*,*.swp,*.zip,*.exe " Windows
|
||||
" chrisbra/SudoEdit.vim
|
||||
:let g:sudo_no_gui=1
|
||||
|
||||
" Python mode
|
||||
" Enable colorcolumn display at max_line_length *'g:pymode_options_colorcolumn'*
|
||||
let g:pymode_options_colorcolumn = 1
|
||||
let g:pymode_options_max_line_length = 100
|
||||
|
||||
" -------------------------------------------"
|
||||
|
||||
set backspace=indent,eol,start
|
||||
@@ -108,7 +117,7 @@ set nrformats+=alpha " incr/decr letters C-a/-x
|
||||
set smartindent
|
||||
set smarttab
|
||||
|
||||
|
||||
set nofoldenable " unfold by default
|
||||
|
||||
" UTF-8 als Default-Encoding
|
||||
set enc=utf-8
|
||||
|
||||
Reference in New Issue
Block a user