vim使用及python 插件设置
安装python.vim语法高亮
copy python.vim to ~/.vim/afer/ftplugin
在~/.vimrc中添加配置
set smartindent " next level indent
set expandtab
set tabstop=4
set shiftwidth=4
set softtabstop=4
安装pydiction自动完成:
UNIX/LINUX: Place python_pydiction.vim in: ~/.vim/after/ftplugin/
If this directory doesn't already exist, create it. Vim looks there automatically.
WINDOWS: Assuming you installed Vim to C:\vim\, put python_pydiction.vim in C:\vim\vimfiles\ftplugin
You may install the other files (complete-dict and pydiction.py) anywhere you want. For this example, we'll assume you put them in C:\vim\vimfiles\ftplugin\pydiction\
Don't put any files but python_pydiction.vim in the ftplugin directory, only .vim files should go there.
In your vimrc file, first add the following line to enable ftplugins:
filetype plugin on
then make sure you set "g:pydiction_location" to the full path of where you installed complete-dict, i.e.:
let g:pydiction_location = 'C:/vim/vimfiles/ftplugin/pydiction/complete-dict'
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】博客园携手 AI 驱动开发工具商 Chat2DB 推出联合终身会员
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· .NET Core 对象分配(Alloc)底层原理浅谈
· 聊一聊 C#异步 任务延续的三种底层玩法
· 敏捷开发:如何高效开每日站会
· 为什么 .NET8线程池 容易引发线程饥饿
· golang自带的死锁检测并非银弹
· 2024年终总结:5000 Star,10w 下载量,这是我交出的开源答卷
· 一个适用于 .NET 的开源整洁架构项目模板
· AI Editor 真的被惊到了
· API 风格选对了,文档写好了,项目就成功了一半!
· 【开源】C#上位机必备高效数据转换助手