最喜欢的五笔输入法极点五笔终于出Linux版本了
下载地址:http://210.22.22.150:1278/freewb_0.1.3_amd64.deb
安装Fcitx输入法apt install fcitx-bin
首先说明一下极点五笔官方使用的是Fcitx输入法系统
可以选择将Ubuntu系统自带的IBUS输入法删除
apt remove ibus 或者 apt purge ibus
安装极点五笔dpkg -i freewb.deb
配置操作:注意fcitx配置默认键盘-英语然后才是极点五笔,否则配置后无法输入字母
如果没有中文语言支持还得在语言支持中安装中文
输入法配置
在Window 操作Linux 最好的终端工具putty及psftp:
C:\Users\Downloads>psftp -P 22
psftp: no hostname specified; use "open host.name" to connect
psftp> open 46.29.*.*
login as: root
root@46.29.*.*'s password:
Remote working directory is /root
psftp> put -r D:/*.py
local:D:/*.py => remote:/root/*.py
psftp> exit
传递D盘下*.py文件到linux主用户目录
在Window下使用python多线程出现以下问题
RuntimeError: An attempt has been made to start a new process before thecurrent process has finished its bootstrapping phase.This probably means that you are not using fork to start yourchild processes and you have forgotten to use the proper idiomin the main module:if __name__ == '__main__':freeze_support()...The "freeze_support()" line can be omitted if the programis not going to be frozen to produce an executable.
解决办法:
from multiprocessing imoprt Pool
if __name__ == '__main__':with Pool(processes=4) as pool:df_list = pool.map(backtest, sorted(roi_list))
VIM及插件安装https://github.com/paldepind/vim-python-ide#bash
sudo apt-get remove vim-tiny
sudo apt-get install vim
# 调试插件
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple ipdb
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple neovim
安装文件setup.sh
#!/usr/bin/env bash
wrapper() {RED="\033[0;31m"GREEN="\033[0;32m"YELLOW="\033[0;33m"BLUE="\033[0;36m"NORMAL="\033[0m"REPO_HTTPS="https://github.com/jarolrod/vim-python-ide.git"VUNDLE_HTTPS="https://github.com/VundleVim/Vundle.vim.git"echo "${BLUE}"
cat <<"HELLO_TEXT"...::::.___________ :;;;;:`____________\_________/ ?????L \__________/|.....| ????????> :.......&#39;|:::::| $$$$$$"`.:::::::&#39; ,,|:::::| $$$$"`.:::::::&#39; .OOS.,7D|;;;;;| $$"`.;;;;;;;&#39; .OOO888S..GDDD|;;;;;| ?`.;;;;;;;&#39; .OO8DDDDDNNS.&#39;DDO|IIIII| .7IIIII7&#39; .DDDDDDDDNNNF`&#39;D|IIIIII7IIIII7&#39; .DDDDDDDDNNNF`|EEEEEEEEEE7&#39; .DDDDDDDNNNNF`|EEEEEEEEZ&#39; .DDDDDDDDNNNF`|888888Z&#39; .DDDDDDDDNNNF`|8888Z&#39; ,DDDDDDDNNNNF`|88Z&#39; "DNNNNNNN"&#39;"&#39; "MMMM"""___ ____ __ _ _ ________ ___/ | / / / __ ______ __ __ ____ ___ ___ ____/ / (_)____ | | / / _/ |/ // /| | / / / / / / / __ \/ / / / / __ \/ _ \/ _ \/ __ / / / ___/ | | / // // /|_/ // ___ |/ / / / /_/ / /_/ / /_/ / / / / / __/ __/ /_/ / / (__ ) | |/ // // / / /
/_/ |_/_/_/ \__, /\____/\__,_/ /_/ /_/\___/\___/\__,_/ /_/____/ |___/___/_/ /_//_/
HELLO_TEXT
echo "${NORMAL}"if [ ! -n "$VIM" ]; thenVIM=~/.vimfiif [ -d "$VIM" ]; thenprintf "${YELLOW}%s${NORMAL}\n" "You already have $VIM directory."printf "${YELLOW}%s${NORMAL}\n" "You have to remove $VIM if you want to re-install."exit 0fi# Prevent the cloned repository from having insecure permissions. Failing to do# so causes compinit() calls to fail with "command not found: compdef" errors# for users with insecure umasks (e.g., "002", allowing group writability). Note# that this will be ignored under Cygwin by default, as Windows ACLs take# precedence over umasks except for filesystems mounted with option "noacl".umask g-w,o-wprintf "${BLUE}%s${NORMAL}\n" "Cloning vimrc from ${REPO_HTTPS}"hash git >/dev/null 2>&1 || {printf "${RED}%s${NORMAL}\n" "Error: git is not installed."exit 1}env git clone --depth=1 $REPO_HTTPS $VIM || {printf "${RED}%s${NORMAL}\n" "Error: git clone of vimrc repo failed."exit 1}printf "${BLUE}%s${NORMAL}\n" "Looking for an existing vim config..."if [ -f ~/.vimrc ] || [ -h ~/.vimrc ]; thenprintf "${YELLOW}%s${NORMAL}\n" "Found ~/.vimrc."printf "${BLUE}%s${NORMAL}\n" "You will see your old ~/.vimrc as $VIM/vimrc.bak"mv ~/.vimrc $VIM/vimrc.bakfiprintf "${BLUE}%s${NORMAL}\n" "Symlinking $VIM/vimrc with ~/.vimrc..."ln -fs $VIM/vimrc ~/.vimrcif [ ! -d "$VIM/bundle/Vundle.vim" ]; thenprintf "${BLUE}%s${NORMAL}\n" "Installing Vundle..."env git clone --depth=1 $VUNDLE_HTTPS "$VIM/bundle/Vundle.vim"git clone https://github.com/chriskempson/base16-shell.git ~/.config/base16-shellfiif [ ! -f $VIM/colors/wombat256mod.vim ]; thenif [ ! -d $VIM/colors/ ]; thenmkdir -p $VIM/colorsfiwget &#39;http://www.vim.org/scripts/download_script.php?src_id=13400&#39; -O $VIM/colors/wombat256mod.vimfiprintf "${GREEN}%s${NORMAL}\n" "Vimrc has been configured ;)"printf "${YELLOW}%s${NORMAL}\n" "Do not worry about error messages. When it occurs just press enter and wait till all plugins are installed."printf "${BLUE}%s${NORMAL}\n" "Keep calm and use VIM!"
}wrapper
vim +PluginInstall
配置文件(~/.vimrc)
" 关闭 vi 兼容模式
set nocompatible " required
filetype off " required
" 允许在有未保存的修改时切换缓冲区,此时的修改由 vim 负责保存
set hidden
set showtabline=0" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()" alternatively, pass a path where Vundle should install plugins
"call vundle#begin(&#39;~/some/path/here&#39;)" let Vundle manage Vundle, required
Plugin &#39;gmarik/Vundle.vim&#39; " Vundle Plugin Manager" Add all your plugins here (note older versions of Vundle used Bundle instead of Plugin)
"-------------------=== Code/Project navigation ===-------------
Plugin &#39;scrooloose/nerdtree&#39; " Project and file navigation
Plugin &#39;Xuyuanp/nerdtree-git-plugin&#39; " NerdTree git functionality
Plugin &#39;majutsushi/tagbar&#39; " Class/module browser
Plugin &#39;vim-ctrlspace/vim-ctrlspace&#39; " Tabs/Buffers/Fuzzy/Workspaces/Bookmarks
Plugin &#39;mileszs/ack.vim&#39; " Ag/Grep
Plugin &#39;vim-airline/vim-airline&#39; " Lean & mean status/tabline for vim
Plugin &#39;vim-airline/vim-airline-themes&#39; " Themes for airline
Plugin &#39;fisadev/FixedTaskList.vim&#39; " Pending tasks list
Plugin &#39;yuttie/comfortable-motion.vim&#39; " Smooth scrolling
Plugin &#39;MattesGroeger/vim-bookmarks&#39; " Bookmarks
Plugin &#39;thaerkh/vim-indentguides&#39; " Visual representation of indents
Plugin &#39;w0rp/ale&#39; " Async Lint Engine
Plugin &#39;Valloric/YouCompleteMe&#39; " Code Completion"-------------------=== Other ===-------------------------------
Plugin &#39;tpope/vim-surround&#39; " Parentheses, brackets, quotes, XML tags, and more
Plugin &#39;flazz/vim-colorschemes&#39; " Colorschemes
Plugin &#39;vimwiki/vimwiki&#39; " Personal Wiki
Plugin &#39;jreybert/vimagit&#39; " Git Operations
Plugin &#39;kien/rainbow_parentheses.vim&#39; " Rainbow Parentheses
Plugin &#39;ryanoasis/vim-devicons&#39; " Dev Icons
Plugin &#39;mhinz/vim-startify&#39; " Vim Start Page
"-------------------=== Snippets support ===--------------------
Plugin &#39;garbas/vim-snipmate&#39; " Snippets manager
Plugin &#39;MarcWeber/vim-addon-mw-utils&#39; " dependencies #1
Plugin &#39;tomtom/tlib_vim&#39; " dependencies #2
Plugin &#39;honza/vim-snippets&#39; " snippets repo"-------------------=== Languages support ===-------------------
Plugin &#39;scrooloose/nerdcommenter&#39; " Easy code documentation
Plugin &#39;mitsuhiko/vim-sparkup&#39; " Sparkup(XML/jinja/htlm-django/etc.) support"-------------------=== Python ===-----------------------------
Plugin &#39;klen/python-mode&#39; " Python mode (docs, refactor, lints...)
Plugin &#39;hynek/vim-python-pep8-indent&#39;
Plugin &#39;mitsuhiko/vim-python-combined&#39;
Plugin &#39;mitsuhiko/vim-jinja&#39;
Plugin &#39;jmcantrell/vim-virtualenv&#39;" All of your Plugins must be added before the following line
call vundle#end() " required
filetype on
filetype plugin on
" 开启插件和缩进
filetype plugin indent on"=====================================================
"" General settings
"=====================================================
if filereadable(expand("~/.vimrc_background"))source ~/.vimrc_background
endif
set encoding=utf-8
set t_Co=256 " 256 colors
set guifOnt=mononoki\ Nerd\ Font\ 18
colorscheme wombat256mod " set vim colorscheme
let g:airline_theme=&#39;wombat&#39; " set airline theme
" 开启语法高亮
syntax enable " enable syntax highlightingset pyxversion=0
let g:loaded_python_provider = 1
set shell=/bin/bash
" 显示行号
set number " show line numbers
" 打开状态栏标尺
set ruler
set ttyfast " terminal acceleration" 设定 tab 长度为 4
set tabstop=4 " 4 whitespaces for tabs visual presentation
" 设定 shift 宽度为 4
set shift shift lines by 4 spaces
set smarttab " set tabs for a shifttabs logic
set expandtab " expand tabs into spaces
set autoindent " indent when moving to the next line while writing code" 高亮当前行
set cursorline " shows line under the cursor&#39;s line
" 插入括号时,短暂地跳转到匹配的对应括号
set showmatch " shows matching part of bracket pairs (), [], {}set enc=utf-8 " utf-8 by default" 覆盖文件时不备份
set nobackup " no backup files
set nowritebackup " only in case you don&#39;t want a backup file while editing
set noswapfile " no swap filesset backspace=indent,eol,start " backspace removes all (indents, EOLs, start) What is start?set scrolloff=20 " let 10 lines before/after cursor during scrollset clipboard=unnamed " use system clipboardset exrc " enable usage of additional .vimrc files from working directory
set secure " prohibit .vimrc files to execute shell, create files, etc..."=====================================================
"" Tabs / Buffers settings
"=====================================================
tab sball
set switchbuf=useopen
" 显示状态栏
set laststatus=2
nmap
nmap
nmap
"" YouCompleteMe Settings
"====================================================="=====================================================
"" Ale Settings (Linting)
"=====================================================
" Use Ale.
" Show Ale in Airline
let g:airline#extensions#ale#enabled = 1" Ale Gutter
let g:ale_sign_column_always = 1"=====================================================
"" Relative Numbering
"=====================================================
nnoremap
"" Search settings
"=====================================================
" 输入搜索内容时就显示搜索结果
set incsearch " incremental search
" 搜索时高亮显示被找到的文本
set hlsearch " highlight search results"=====================================================
"" Comfortable Motion Settings
"=====================================================
" 按ctrl + Vim的标准移动键切换窗口
let g:comfortable_motion_scroll_down_key = "j"
let g:comfortable_motion_scroll_up_key = "k"
let g:comfortable_motion_no_default_key_mappings = 1
let g:comfortable_motion_impulse_multiplier = 25 " Feel free to increase/decrease this value.
nnoremap
nnoremap
nnoremap
nnoremap
"" AirLine settings
"=====================================================
let g:airline#extensions#tabline#enabled=1
let g:airline#extensions#tabline#formatter=&#39;unique_tail&#39;
let g:airline_powerline_fOnts=1"=====================================================
"" TagBar settings
"=====================================================
let g:tagbar_autofocus=0
let g:tagbar_=====================================================
"" NERDTree settings
"=====================================================
let NERDTreeIgnore=[&#39;\.pyc$&#39;, &#39;\.pyo$&#39;, &#39;__pycache__$&#39;] " Ignore files in NERDTree
let NERDTreeWinSize=40
nmap " :NERDTreeToggle
"" NERDComment Settings
"=====================================================
" Add spaces after comment delimiters by default
let g:NERDSpaceDelims = 1" Use compact syntax for prettified multi-line comments
let g:NERDCompactSexyComs = 1" Align line-wise comment delimiters flush left instead of following code indentation
let g:NERDDefaultAlign = &#39;left&#39;" Set a language to use its alternate delimiters by default
let g:NERDAltDelims_java = 1" Add your own custom formats or override the defaults
let g:NERDCustomDelimiters = { &#39;c&#39;: { &#39;left&#39;: &#39;/**&#39;,&#39;right&#39;: &#39;*/&#39; } }" Allow commenting and inverting empty lines (useful when commenting a region)
let g:NERDCommentEmptyLines = 1" Enable trimming of trailing whitespace when uncommenting
let g:NERDTrimTrailingWhitespace = 1"=====================================================
"" DevIcon Settings
"=====================================================
" loading the plugin
let g:webdevicons_enable = 1" adding the flags to NERDTree
let g:webdevicons_enable_nerdtree = 1" adding to vim-airline&#39;s tabline
let g:webdevicons_enable_airline_tabline = 1" adding to vim-airline&#39;s statusline
let g:webdevicons_enable_airline_statusline = 1" turn on/off file node glyph decorations (not particularly useful)
let g:WebDevIcOnsUnicodeDecorateFileNodes= 1" use double-width(1) or single-width(0) glyphs
" only manipulates padding, has no effect on terminal or set(guifont) font
let g:WebDevIcOnsUnicodeGlyphDoubleWidth= 1" whether or not to show the nerdtree brackets around flags
let g:webdevicons_conceal_nerdtree_brackets = 0" the amount of space to use after the glyph character (default &#39; &#39;)
let g:WebDevIcOnsNerdTreeAfterGlyphPadding= &#39; &#39;" Force extra padding in NERDTree so that the filetype icons line up vertically
let g:WebDevIcOnsNerdTreeGitPluginForceVAlign= 1 " change the default character when no match found
let g:WebDevIcOnsUnicodeDecorateFileNodesDefaultSymbol= &#39;ƛ&#39;" set a byte character marker (BOM) utf-8 symbol when retrieving file encoding
" disabled by default with no value
let g:WebDevIcOnsUnicodeByteOrderMarkerDefaultSymbol= &#39;&#39;" enable folder/directory glyph flag (disabled by default with 0)
let g:WebDevIcOnsUnicodeDecorateFolderNodes= 1" enable open and close folder/directory glyph flags (disabled by default with 0)
let g:DevIcOnsEnableFoldersOpenClose= 1" enable pattern matching glyphs on folder/directory (enabled by default with 1)
let g:DevIcOnsEnableFolderPatternMatching= 1" enable file extension pattern matching glyphs on folder/directory (disabled by default with 0)
let g:DevIcOnsEnableFolderExtensionPatternMatching= 0"=====================================================
"" SnipMate settings
"=====================================================
let g:snippets_dir=&#39;~/.vim/vim-snippets/snippets&#39;"=====================================================
"" Rainbow Parentheses Autoload
"=====================================================
au VimEnter * RainbowParenthesesToggle
au Syntax * RainbowParenthesesLoadRound
au Syntax * RainbowParenthesesLoadSquare
au Syntax * RainbowParenthesesLoadBraces"=====================================================
"" Indent Guides Settings
"=====================================================
set listchars=tab:›\ ,trail:•,extends:#,nbsp:.
"=====================================================
"" Python settings
"=====================================================" python executables for different plugins
let g:pymode_python=&#39;python&#39;nmap
nmap
let g:airline#extensions#ale#enabled = 1
let g:pymode_rope_lookup_project = 0
let g:airline#extensions#tabline#enabled = 1" rope
let g:pymode_rope=0
let g:pymode_rope_completion=0
let g:pymode_rope_complete_on_dot=0
let g:pymode_rope_auto_project=0
let g:pymode_rope_enable_autoimport=0
let g:pymode_rope_autoimport_generate=0
let g:pymode_rope_guess_project=0" documentation
let g:pymode_doc=0
let g:pymode_doc_bind=&#39;K&#39;" lints
let g:pymode_lint=0" virtualenv
let g:pymode_virtualenv=1" breakpoints
let g:pymode_breakpoint=1
let g:pymode_breakpoint_key=&#39;
let g:pymode_syntax=1
let g:pymode_syntax_slow_sync=1
let g:pymode_syntax_all=1
let g:pymode_syntax_print_as_function=g:pymode_syntax_all
let g:pymode_syntax_highlight_async_await=g:pymode_syntax_all
let g:pymode_syntax_highlight_equal_operator=g:pymode_syntax_all
let g:pymode_syntax_highlight_stars_operator=g:pymode_syntax_all
let g:pymode_syntax_highlight_self=g:pymode_syntax_all
let g:pymode_syntax_indent_errors=g:pymode_syntax_all
let g:pymode_syntax_string_formatting=g:pymode_syntax_all
let g:pymode_syntax_space_errors=g:pymode_syntax_all
let g:pymode_syntax_string_format=g:pymode_syntax_all
let g:pymode_syntax_string_templates=g:pymode_syntax_all
let g:pymode_syntax_doctests=g:pymode_syntax_all
let g:pymode_syntax_builtin_objs=g:pymode_syntax_all
let g:pymode_syntax_builtin_types=g:pymode_syntax_all
let g:pymode_syntax_highlight_exceptiOns=g:pymode_syntax_all
let g:pymode_syntax_docstrings=g:pymode_syntax_all" highlight &#39;long&#39; lines (>= 80 symbols) in python files
augroup vimrc_autocmdsautocmd!autocmd FileType python,rst,c,cpp highlight Excess ctermbg=DarkGrey guibg=Blackautocmd FileType python,rst,c,cpp match Excess /\%81v.*/autocmd FileType python,rst,c,cpp set nowrapautocmd FileType python,rst,c,cpp set colorcolumn=80
augroup END" code folding
let g:pymode_folding=0" pep8 indents
let g:pymode_indent=1" code running
let g:pymode_run=1
let g:pymode_run_bind=&#39;
let g:ale_emit_conflict_warnings = 0
let g:airline#extensions#ale#enabled = 1
let g:pymode_rope_lookup_project = 0
let g:airline#extensions#tabline#enabled = 1" :sv
" za 折叠方法和类代码
" 其他一此功能如pep8代码风格也可通过Plugin &#39;插件来实现
" F5保存并执行编辑的py文件
imap
no
no
no
ino
ino
ino
vno
vno
vno
autocmd VimEnter * nested if !argc() && !exists(&#39;g:isReadingFromStdin&#39;) | Startify | endif
autocmd VimEnter * nested if !argc() && !exists(&#39;g:isReadingFromStdin&#39;) | NERDTree | endif
自己的配置文件,参考把vim配置成顺手的python轻量级IDE(一),把vim配置成顺手的python轻量级IDE(二)
pumvisible() ? &#39;\ \ &#39; pumvisible() ? &#39;\ \ &#39;"===================================================== CtrlSFPrompt CtrlSFQuickfixPrompt"=====================================================set nocompatible " required
filetype off " required
set hidden
set showtabline=0" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()" alternatively, pass a path where Vundle should install plugins
"call vundle#begin(&#39;~/some/path/here&#39;)" let Vundle manage Vundle, required
Plugin &#39;VundleVim/Vundle.vim&#39; " Vundle Plugin Manager" Add all your plugins here (note older versions of Vundle used Bundle instead of Plugin)
"-------------------=== Code/Project navigation ===-------------
Plugin &#39;Valloric/YouCompleteMe&#39;
Plugin &#39;scrooloose/nerdtree&#39;
Plugin &#39;Yggdroot/indentLine&#39;
Plugin &#39;jiangmiao/auto-pairs&#39;
Plugin &#39;tell-k/vim-autopep8&#39;
Plugin &#39;scrooloose/nerdcommenter&#39;
Plugin &#39;ctrlpvim/ctrlp.vim&#39;
Plugin &#39;dyng/ctrlsf.vim&#39;
Plugin &#39;majutsushi/tagbar&#39;
Plugin &#39;vim-airline/vim-airline&#39;
Plugin &#39;vim-airline/vim-airline-themes&#39;
Plugin &#39;kien/rainbow_parentheses.vim&#39;
"-------------------=== Python ===-----------------------------
Plugin &#39;klen/python-mode&#39; " Python mode (docs, refactor, lints...)
Plugin &#39;hynek/vim-python-pep8-indent&#39;
Plugin &#39;mitsuhiko/vim-python-combined&#39;
Plugin &#39;mitsuhiko/vim-jinja&#39;
Plugin &#39;jmcantrell/vim-virtualenv&#39;
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype on
filetype plugin on
filetype plugin indent on"=====================================================
"" General settings
if filereadable(expand("~/.vimrc_background"))source ~/.vimrc_background
endif
set encoding=utf-8
set t_Co=256 " 256 colors
set guifOnt=mononoki\ Nerd\ Font\ 18
colorscheme wombat256mod " set vim colorscheme
let g:airline_theme=&#39;wombat&#39; " set airline theme
syntax enable " enable syntax highlightingset pyxversion=0
let g:loaded_python_provider = 1
set shell=/bin/bash
set number " show line numbers
set ruler
set ttyfast " terminal acceleration
set mouse=aset tabstop=4 " 4 whitespaces for tabs visual presentation
set shift shift lines by 4 spaces
set smarttab " set tabs for a shifttabs logic
set expandtab " expand tabs into spaces
set autoindent " indent when moving to the next line while writing codeset cursorline " shows line under the cursor&#39;s line
set cursorcolumn
set showmatch " shows matching part of bracket pairs (), [], {}set enc=utf-8 " utf-8 by defaultset nobackup " no backup files
set nowritebackup " only in case you don&#39;t want a backup file while editing
set noswapfile " no swap filesset backspace=indent,eol,start " backspace removes all (indents, EOLs, start) What is start?set scrolloff=20 " let 10 lines before/after cursor during scrollset clipboard=unnamed " use system clipboardset exrc " enable usage of additional .vimrc files from working directory
set secure " prohibit .vimrc files to execute shell, create files, etc...
"=====================================================
imap
" YouCompleteMe代码自动补全
"
"默认配置文件路径"
let g:ycm_global_ycm_extra_cOnf= &#39;~/.ycm_extra_conf.py&#39;
"打开vim时不再询问是否加载ycm_extra_conf.py配置"
let g:ycm_confirm_extra_cOnf=0
set completeopt=longest,menu"python解释器\路径"
let g:ycm_path_to_python_interpreter=&#39;/home/firebirds/anaconda3/bin/python&#39;"是否开启语义补全"
let g:ycm_seed_identifiers_with_syntax=1
"是否在注释中也开启补全"
let g:ycm_complete_in_comments=1
let g:ycm_collect_identifiers_from_comments_and_strings = 0
"开始补全的字符数"
let g:ycm_min_num_of_chars_for_completion=2
"补全后自动关机预览窗口"
let g:ycm_autoclose_preview_window_after_completion=1
" 禁止缓存匹配项,每次都重新生成匹配项"
let g:ycm_cache_omnifunc=0
"字符串中也开启补全"
let g:ycm_complete_in_strings = 1
"离开插入模式后自动关闭预览窗口"
autocmd InsertLeave * if pumvisible() == 0|pclose|endif
"回车即选中当前项"
inoremap
"上下左右键行为"
inoremap
inoremap
inoremap
inoremap
" NERDTree
"
"F2开启和关闭树"
map
let NERDTreeChDirMode=1
"显示书签"
let NERDTreeShowBookmarks=1
"设置忽略文件类型"
let NERDTreeIgnore=[&#39;\~$&#39;, &#39;\.pyc$&#39;, &#39;\.swp$&#39;]
"窗口大小"
let NERDTreeWinSize=25"=====================================================
" indentLine
"
"缩进指示线"
let g:indentLine_char=&#39;┆&#39;
let g:indentLine_enabled = 1"=====================================================
" autopep8"autopep8设置 按F8格式化代码"
let g:autopep8_disable_show_diff=1"=====================================================
" auto-pairs & nerdcommenter
"
let mapleader=&#39;,&#39;
map
"ctrlp.vim工程中定位文件\在NORMAL模式同时按下ctrl + p就可以调用
"ctrlsf.vim工程中搜索特定字符使用命令:CtrlSF 名字
""Enter :跳转到选择的行;"t : 在新建标签中打开该文件;"p : 在预览窗口中打开;"q : 退出CtrlSF窗口。
"映射快捷方式为f \ F
map f
map F
"tagbar显示文件中的类、函数、变量的功能
"使用命令:TagbarToggle开启
"映射快捷方式为F3
map
let g:airline_powerline_fOnts= 1
" 是否启用顶部tabline
let g:airline#extensions#tabline#enabled = 1
" 顶部tabline显示方式
let g:airline#extensions#tabline#left_sep = &#39; &#39;
let g:airline#extensions#tabline#left_alt_sep = &#39;|&#39;"=====================================================\
" rainbow_parentheses.vim为括号添加颜色\
let g:rbpt_colorpairs = [ [&#39;brown&#39;, &#39;RoyalBlue3&#39;], [&#39;Darkblue&#39;, &#39;SeaGreen3&#39;], [&#39;darkgray&#39;, &#39;DarkOrchid3&#39;], [&#39;darkgreen&#39;, &#39;firebrick3&#39;],[&#39;darkcyan&#39;, &#39;RoyalBlue3&#39;],[&#39;darkred&#39;, &#39;SeaGreen3&#39;],[&#39;darkmagenta&#39;, &#39;DarkOrchid3&#39;],[&#39;brown&#39;, &#39;firebrick3&#39;],[&#39;gray&#39;, &#39;RoyalBlue3&#39;],[&#39;black&#39;, &#39;SeaGreen3&#39;],[&#39;darkmagenta&#39;, &#39;DarkOrchid3&#39;],[&#39;Darkblue&#39;, &#39;firebrick3&#39;],[&#39;darkgreen&#39;, &#39;RoyalBlue3&#39;],[&#39;darkcyan&#39;, &#39;SeaGreen3&#39;],[&#39;darkred&#39;, &#39;DarkOrchid3&#39;],[&#39;red&#39;, &#39;firebrick3&#39;]]
let g:rbpt_max = 16
au VimEnter * RainbowParenthesesToggle
au Syntax * RainbowParenthesesLoadRound
au Syntax * RainbowParenthesesLoadSquare
au Syntax * RainbowParenthesesLoadBraces