vim:

vim记得以前版本是8.0;现在最新的版本是8.1;而且是安装版本,不是已经编译好的版本;可以直接安装

需要git vundle安装 到bundle/vundle目录下;

安装插件的命令全部由bundle 改成plugin

vimrc文件配置用以前很多错误

目前没有错误的先记录下:

" Vim with all enhancements
source $VIMRUNTIME/vimrc_example.vim" Use the internal diff if available.
" Otherwise use the special 'diffexpr' for Windows.
if &diffopt !~# 'internal'set diffexpr=MyDiff()
endif
function MyDiff()let opt = '-a --binary 'if &diffopt =~ 'icase' | let opt = opt . '-i ' | endifif &diffopt =~ 'iwhite' | let opt = opt . '-b ' | endiflet arg1 = v:fname_inif arg1 =~ ' ' | let arg1 = '"' . arg1 . '"' | endiflet arg1 = substitute(arg1, '!', '\!', 'g')let arg2 = v:fname_newif arg2 =~ ' ' | let arg2 = '"' . arg2 . '"' | endiflet arg2 = substitute(arg2, '!', '\!', 'g')let arg3 = v:fname_outif arg3 =~ ' ' | let arg3 = '"' . arg3 . '"' | endiflet arg3 = substitute(arg3, '!', '\!', 'g')if $VIMRUNTIME =~ ' 'if &sh =~ '\<cmd'if empty(&shellxquote)let l:shxq_sav = ''set shellxquote&endiflet cmd = '"' . $VIMRUNTIME . '\diff"'elselet cmd = substitute($VIMRUNTIME, ' ', '" ', '') . '\diff"'endifelselet cmd = $VIMRUNTIME . '\diff'endiflet cmd = substitute(cmd, '!', '\!', 'g')silent execute '!' . cmd . ' ' . opt . arg1 . ' ' . arg2 . ' > ' . arg3if exists('l:shxq_sav')let &shellxquote=l:shxq_savendif
endfunction" =============================================Bundle_start=========================
set rtp+=$vim/vim81/bundle/vundle
"call vundle#begin('$vim/vim81/bundle')
call vundle#begin()
Plugin 'gmarik/vundle'
"===tagbar
Plugin 'majutsushi/tagbar'
"nmap <Leader>tb :TagbarToggle<CR>                           "autocmd BufReadPost *.cpp,*.c,*.h,*.hpp,*.cc,*.cxx call tagbar#autoopen()     "如果是c语言的程序的话,tagbar自动开启
"======NERDTree
Plugin 'scrooloose/nerdtree'Plugin 'bling/vim-airline'
Plugin 'powerline/powerline'"=========自动补全
"Bundle 'Valloric/YouCompleteMe'
"==========安装VIM-IPYTHON插件
"Bundle 'vim-ipython'
"================快速运行,一键运行python代码,此处设置F10
Plugin 'thinca/vim-quickrun'"=============自动补全单引号,双引号等
Plugin 'Raimondi/delimitMate'"syntastic检查语法与编码风格
"Bundle 'scrooloose/syntastic'
Plugin 'christoomey/vim-tmux-navigator'"markdown
Plugin 'godlygeek/tabular'
Plugin 'plasticboy/vim-markdown'
Plugin 'iamcco/mathjax-support-for-mkdp'
Plugin 'iamcco/markdown-preview.vim'
call vundle#end()
filetype plugin indent on
"=============================================Bundle_over========================="=============================================Plugin set start==========================
let NERDTreeWinPos='left'
let NERDTreeWinSize=30
set laststatus=2
map <F2> :NERDTreeToggle<CR>"=============================================Plugin set over==========================" ===============================system_set_start=======================
inoremap ( ()<ESC>i
inoremap [ []<ESC>i
inoremap { {}<ESC>i
inoremap < <><ESC>i
inoremap ' ''<ESC>i
inoremap " ""<ESC>i
set ts=4
set number
set ruler
syntax on
set mouse=a
set cindent
set shiftwidth=4
set expandtab
let &termencoding=&encoding
set fileencodings=utf-8,gbk
" 设置不产生交换文件
set noswapfile
" 设置高亮行
set cursorcolumn
set cursorline" 设置显行号
set nu
"设置折叠set fdm=marker
" 取消VIM的自动备份功能
set noundofile
set nobackup
set noswapfile
" 设置缩进,以4个空格作为缩进
set tabstop=4set sts=4set expandtabset softtabstop=4set shiftwidth=4set autoindentset cindent
" 修改配色方案
colorscheme solarized
" change 目录
set gfn=Courier_New:h14
" ====修改文件打开目录====
" cd D:\code\Python
set autochdir" gvim内部编码
set encoding=utf-8" 当前编辑的文件编码
set fileencoding=utf-8" gvim打开支持编码的文件
set fileencodings=ucs-bom,utf-8,gbk,cp936,gb2312,big5,euc-jp,euc-kr,latin1
set langmenu=zh_CN
let $LANG = 'zh_CN.UTF-8'" 解决consle输出乱码
language messages zh_CN.utf-8" 解决菜单乱码
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim" 设置终端编码为gvim内部编码encoding
let &termencoding=&encoding" 防止特殊符号无法正常显示
set ambiwidth=double
" ===============================system_set_end=======================================" ================================python set start====================================autocmd BufNewFile *.py,*.sh exec ":call SetTitle()"
""定义函数SetTitle,自动插入文件头
func SetTitle()"如果文件类型为.sh文件if &filetype == 'sh'call setline(1,"\#########################################################################")call append(line("."), "\# File Name: ".expand("%"))call append(line(".")+1, "\# Author: Nyang")call append(line(".")+2, "\# mail: ning.y@hongfans.cn")call append(line(".")+3, "\# Created Time: ".strftime("%c"))call append(line(".")+4, "\######################################################################")call append(line(".")+5, "\#!/bin/bash")call append(line(".")+6, "")elseif &filetype == 'python'call setline(1, "/**************************************************************")call append(line("."), "\#        > File Name: ".expand("%"))call append(line(".")+1, "\#      > Author: Nyang")call append(line(".")+2, " \#     > Mail: ning.y@hongfans.cn")call append(line(".")+3, " \#     > Created Time: ".strftime("%c"))call append(line(".")+4, " \######################################################")call append(line(".")+5, "#!/usr/bin/python")call append(line(".")+6, "# -*- coding:utf-8 -*-")call append(line(".")+7,"")elsecall setline(1, "/*************************************************************************")call append(line("."), "        > File Name: ".expand("%"))call append(line(".")+1, "      > Author: xxxxx")call append(line(".")+2, "      > Mail: xxxxxxxx@gmail.com ")call append(line(".")+3, "      > Created Time: ".strftime("%c"))call append(line(".")+4, " \######################################################")call append(line(".")+5, "")endif"新建文件后,自动定位到文件末尾autocmd BufNewFile * normal G
endfunc
" for # indent, python文件中输入新行时#号注释不切回行首
autocmd BufNewFile,BufRead *.py inoremap # X<c-h>#" ================================python set over====================================

python:

anaconda distributioin版本要安装64版本;不小心安装了个32版本;最后tensorflow安装不上;tensorflow一定要求64位的python

后面安装了最新的anaconda python3.7,最后发现tensorflow版本还没跟上;最新只能支持python3.6的

vim的配置安装和Python安装细节记录20190109相关推荐

  1. python3里的pillow怎么安装_“python安装pillow教程“python3.4怎么安装pil

    "python安装pillow教程"python3.4怎么安装pil python安装pillow教程2020-10-09 03:37:02人已围观 如何在python3.6中装p ...

  2. ubuntu14.04下安装cudnn5.1.3,opencv3.0,编译caffe及配置matlab和python接口过程记录

    已有条件: ubuntu14.04+cuda7.5+anaconda2(即python2.7)+matlabR2014a 上述已经装好了,开始搭建caffe环境. 1. 装cudnn5.1.3,参照: ...

  3. VSCode安装和Python安装及其配置

    Visual Studio Code(VSCode)是微软出品的一款可扩展的轻量级开源编辑器,并且支持全平台系统.这些特性使得VSCode颇受欢迎,可以说是目前最火的代码编辑器之一了,在程序员圈子里, ...

  4. django配置数据驱动,python安装失败问题

    在win7下安装了Python后,想安装python-MySQL,使用pip安装出现如下问题: >pip install mysql-python _mysql.c(42) : fatal er ...

  5. python软件安装-学python安装的软件总结

    学python安装什么软件? Python开发软件可根据其用途不同分为两种,一种是Python代码编辑器,一种是Python集成开发工具,两者的配合使用可以极大的提高Python开发人员的编程效率,以 ...

  6. python安装流程-Python安装与卸载流程

    Python安装流程: 一.下载 在网上(输入网址https://www.python.org/downloads/)下载Windows最新的python程序(我电脑为64位) 二.安装 根据自己的电 ...

  7. python的安装教程-python安装教程

    第一步:下载Python安装包 在Python的官网 www.python.org 中找到最新版本的Python安装包,点击进行下载,请注意,当你的电脑是32位的机器,请选择32位的安装包,如果是64 ...

  8. python安装步骤电脑版-超详细的小白python3.X安装教程|Python安装

    安装Python 因为Python是跨平台的,它可以运行在Windows.Mac和各种Linux/Unix系统上.在Windows上写Python程序,放到Linux上也是能够运行的. 目前,Pyth ...

  9. python安装库-python 安装库

    广告关闭 2017年12月,云+社区对外发布,从最开始的技术博客到现在拥有多个社区产品.未来,我们一起乘风破浪,创造无限可能. 安装插件使用命令 pip install opencv-python下载 ...

  10. python安装流程-python安装流程和注意事项

    Python安装流程 点击下载选项进入下载界面,选择你需要下载的python版本,一般我们选择win系统的下载: 选择你对应的机器位数的版本,如果不知道电脑是多少位的,可以点击我的电脑右键--> ...

最新文章

  1. mysql 万亿数据_sql-server – 哪个数据库可以处理数十亿/数万亿条记录的存储?...
  2. JavaScript权威设计--事件冒泡,捕获,事件句柄,事件源,事件对象(简要学习笔记十八)...
  3. 无法打开此修补程序包”或“这个产品的安装来源无法使用”解决(转)
  4. cobbler自动化安装Linux系统
  5. linux新的API signalfd、timerfd、eventfd使用说明
  6. BOSS直聘上线春雷行动 首周吸引上万名应届生参与活动
  7. 【Android手机测试】OOM
  8. nginx代理tomcat
  9. 安装torch与luarocks的一些问题
  10. python-定义类的属性
  11. matlab数细胞实验图片,献给初学者:手把手教你做细胞计数实验
  12. 博观约取,厚积薄发,聊一聊最近读完的几本书,太上头了~
  13. java设计triangle三角形_Java:【三角形类Triangle】设计一个名为Triangle的类来扩展GeometricObject类。该类包括:...
  14. 高级图表常用颜色RGB参数
  15. java创建二维码并赋予url链接
  16. Jenkins升级大坑-插件问题
  17. 基于javaweb+jsp的鲜花花卉销售管理系统(JavaWeb MySQL JSP Bootstrap Servlet SSM SpringBoot)
  18. MacOS好用的播放速度控制扩展(插件)推荐
  19. Hive场景模拟SQL编程实例 (销售业绩表)实验
  20. 为promise部署complete方法

热门文章

  1. Python基础教程:条件语句的七种写法
  2. Python那些优雅的写法:switch-case
  3. Python super超类方法
  4. python 文件读写模式r,r+,w,w+,a,a+的区别(附代码示例)
  5. 函数matlab,Matlab函数
  6. linux下c 多线程如何映射文件夹,c - 在Linux中使用多个线程进行信号处理
  7. C语言数据结构(大话数据结构——笔记4)第六章:树
  8. 【放置奇兵】魔兽资源总消耗
  9. Java进阶:CyclicBarrier基本使用
  10. mariadb导入sql数据_「译」关系型数据库介绍