Skip to content
Closed

F2 #6

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .vimrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#进入list mode, 显示以$结尾表示的换行符
set list
#退出list mode
set nolist
#显示行号
set nu
#不显示行号
set nonu
#显示相对行号
set relativenumber
23 changes: 23 additions & 0 deletions Python代码检测工具.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
flake8,是pyflakes和pep8的结合。
错误提示:在保存的时候提示格式和语法错误信息。

下载:http://www.vim.org/scripts/script.php?script_id=4440
解压到:~/.vim/
配置cat >>.vimrc
"Auto-check file for errors on write:
let g:PyFlakeOnWrite = 1
"List of checkers used:
let g:PyFlakeCheckers = 'pep8,mccabe,pyflakes'
"Default maximum complexity for mccabe:
let g:PyFlakeDefaultComplexity=10
"List of disabled pep8 warnings and errors:
let g:PyFlakeDisabledMessages = 'E501'
"Default height of quickfix window:
let g:PyFlakeCWindow = 6
"Whether to place signs or not:
let g:PyFlakeSigns = 1
"Maximum line length for PyFlakeAuto command
let g:PyFlakeMaxLineLength = 100
"Visual-mode key command for PyFlakeAuto
let g:PyFlakeRangeCommand = 'Q'

8 changes: 8 additions & 0 deletions autoComplete.method
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
install supertab #用tab进行代码补全:
--Download package of supertab.vmb in http://www.vim.org/scripts/script.php?script_id=1643
--安装方法:
$ vim supertab.vmb
:source %

$ echo 'let g:SuperTabDefaultCompletionType="context"' >>~/.vimrc
--完成!
1 change: 1 addition & 0 deletions copy-paste.configure
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
set mouse-=a # Make copy/paste working normally in vim
8 changes: 8 additions & 0 deletions issues
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
1.crontab -e
Error:
no crontab for samz - using an empty one
/bin/sh: /bin/vi: cannot execute binary file: Exec format error
crontab: "/bin/vi" exited with status 126
Solution:
export EDITOR=vim

8 changes: 8 additions & 0 deletions merge-conflict-test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
def test(a):
print "hallo"
print a


def test2():
print "blank"
print 'f2'
1 change: 1 addition & 0 deletions sshl
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sshpass -p "$REPLY" ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no $1