热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

极点五笔forUbuntu安装

最喜欢的五笔输入法极点五笔终于出Linux版本了下载地址:http:210.22.22.150:1278freewb_0.1.3_amd64.deb安装Fcitx输入法apti

最喜欢的五笔输入法极点五笔终于出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 :bprev
nmap :bnext
nmap q :SyntasticCheck # :bp bd #"=====================================================
"" 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 :set relativenumber!"=====================================================
"" 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 :call comfortable_motion#flick(g:comfortable_motion_impulse_multiplier * winheight(0) * 2)
nnoremap :call comfortable_motion#flick(g:comfortable_motion_impulse_multiplier * winheight(0) * -2)
nnoremap :call comfortable_motion#flick(g:comfortable_motion_impulse_multiplier * winheight(0) * 4)
nnoremap :call comfortable_motion#flick(g:comfortable_motion_impulse_multiplier * winheight(0) * -4)"=====================================================
"" 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 g :YcmCompleter GoTo
nmap d :YcmCompleter GoToDefinitionlet 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" 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;b&#39;" syntax highlight
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;&#39;let g:ale_sign_column_always = 0
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 :w:!clear;python %no
no
no
no ino
ino
ino
ino vno
vno
vno
vno autocmd StdinReadPre * let g:isReadingFromStdin = 1
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(二)

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 :w:!clear;python %"=====================================================
" 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 pumvisible() ? &#39;&#39; : &#39;\&#39;
"上下左右键行为"
inoremap pumvisible() ? &#39;\&#39; : &#39;\&#39;
inoremap pumvisible() ? &#39;\&#39; : &#39;\&#39;
inoremap

pumvisible() ? &#39;\

\\&#39; : &#39;\

&#39;
inoremap

pumvisible() ? &#39;\

\\&#39; : &#39;\

&#39;"=====================================================
" NERDTree
"
"F2开启和关闭树"
map :NERDTreeToggle
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 ci "=====================================================
"ctrlp.vim工程中定位文件\在NORMAL模式同时按下ctrl + p就可以调用
"ctrlsf.vim工程中搜索特定字符使用命令:CtrlSF 名字
""Enter :跳转到选择的行;"t : 在新建标签中打开该文件;"p : 在预览窗口中打开;"q : 退出CtrlSF窗口。
"映射快捷方式为f \ F
map f

CtrlSFPrompt
map F

CtrlSFQuickfixPrompt"=====================================================
"tagbar显示文件中的类、函数、变量的功能
"使用命令:TagbarToggle开启
"映射快捷方式为F3
map :TagbarToggle"===================================================== "vim-airline & vim-airline-themes
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

 


推荐阅读
  • 本文介绍了在Windows环境下如何配置php+apache环境,包括下载php7和apache2.4、安装vc2015运行时环境、启动php7和apache2.4等步骤。希望对需要搭建php7环境的读者有一定的参考价值。摘要长度为169字。 ... [详细]
  • Vagrant虚拟化工具的安装和使用教程
    本文介绍了Vagrant虚拟化工具的安装和使用教程。首先介绍了安装virtualBox和Vagrant的步骤。然后详细说明了Vagrant的安装和使用方法,包括如何检查安装是否成功。最后介绍了下载虚拟机镜像的步骤,以及Vagrant镜像网站的相关信息。 ... [详细]
  • 本文介绍了在Ubuntu系统中清理残余配置文件和无用内容的方法,包括清理残余配置文件、清理下载缓存包、清理不再需要的包、清理无用的语言文件和清理无用的翻译内容。通过这些清理操作可以节省硬盘空间,提高系统的运行效率。 ... [详细]
  • 通过Anaconda安装tensorflow,并安装运行spyder编译器的完整教程
    本文提供了一个完整的教程,介绍了如何通过Anaconda安装tensorflow,并安装运行spyder编译器。文章详细介绍了安装Anaconda、创建tensorflow环境、安装GPU版本tensorflow、安装和运行Spyder编译器以及安装OpenCV等步骤。该教程适用于Windows 8操作系统,并提供了相关的网址供参考。通过本教程,读者可以轻松地安装和配置tensorflow环境,以及运行spyder编译器进行开发。 ... [详细]
  • tcpdump 4.5.1 crash 深入分析
    tcpdump 4.5.1 crash 深入分析 ... [详细]
  • systemd-nspawn可以创建最轻量级的容器(ns的意思就是namespace),本文的实验平台是Ubuntu16.04,x86_64机器。本文的目的是:在Ubuntu中用syst ... [详细]
  • Spring源码解密之默认标签的解析方式分析
    本文分析了Spring源码解密中默认标签的解析方式。通过对命名空间的判断,区分默认命名空间和自定义命名空间,并采用不同的解析方式。其中,bean标签的解析最为复杂和重要。 ... [详细]
  • 本文讨论了在Windows 8上安装gvim中插件时出现的错误加载问题。作者将EasyMotion插件放在了正确的位置,但加载时却出现了错误。作者提供了下载链接和之前放置插件的位置,并列出了出现的错误信息。 ... [详细]
  • Windows下配置PHP5.6的方法及注意事项
    本文介绍了在Windows系统下配置PHP5.6的步骤及注意事项,包括下载PHP5.6、解压并配置IIS、添加模块映射、测试等。同时提供了一些常见问题的解决方法,如下载缺失的msvcr110.dll文件等。通过本文的指导,读者可以轻松地在Windows系统下配置PHP5.6,并解决一些常见的配置问题。 ... [详细]
  • 本文介绍了在Linux下安装Perl的步骤,并提供了一个简单的Perl程序示例。同时,还展示了运行该程序的结果。 ... [详细]
  • Ubuntu 9.04中安装谷歌Chromium浏览器及使用体验[图文]
    nsitionalENhttp:www.w3.orgTRxhtml1DTDxhtml1-transitional.dtd ... [详细]
  • 本文介绍了在mac环境下使用nginx配置nodejs代理服务器的步骤,包括安装nginx、创建目录和文件、配置代理的域名和日志记录等。 ... [详细]
  • Windows 7 部署工具DISM学习(二)添加补丁的步骤详解
    本文详细介绍了在Windows 7系统中使用部署工具DISM添加补丁的步骤。首先需要将光驱中的安装文件复制到指定文件夹,并进行挂载。然后将需要的MSU补丁解压并集成到系统中。文章给出了具体的命令和操作步骤,帮助读者完成补丁的添加过程。 ... [详细]
  • 本文介绍了在CentOS上安装Python2.7.2的详细步骤,包括下载、解压、编译和安装等操作。同时提供了一些注意事项,以及测试安装是否成功的方法。 ... [详细]
  • 单页面应用 VS 多页面应用的区别和适用场景
    本文主要介绍了单页面应用(SPA)和多页面应用(MPA)的区别和适用场景。单页面应用只有一个主页面,所有内容都包含在主页面中,页面切换快但需要做相关的调优;多页面应用有多个独立的页面,每个页面都要加载相关资源,页面切换慢但适用于对SEO要求较高的应用。文章还提到了两者在资源加载、过渡动画、路由模式和数据传递方面的差异。 ... [详细]
author-avatar
Ajax
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有