- 折腾spacevim-头一天:处处都是坑
Jumbo Jing
杂技vim
安装终于装上了就是这个命令curl-sLfhttps://spacevim.org/cn/install.sh|bash-s---h,第一次失败了,不知道为啥?结果所有的nvim的设置也回到了原始状态。。。查了一下原来这些配置都被加了*_back*,还删不掉,去掉那个链接就可以了,改回了原来的名字,有docker了一下,终于看到了spacevim界面,可是弄不好docker好吧。。。又用curl-
- neovim 增加python3.5的支持
梦落迹南天
由于spacevim对neovim支持更好,对vim似乎有很多bug,所以尝试使用一下nvimnvim的安装很简单,但是装完之后,启动了ycm总是报错YouCompleteMeunavailable:unabletoloadPython怀疑是nvim安装的时候没有增加python支持的原因,遂在nvim中使用:checkhealth,然后发现果然没有##Python3provider(option
- 使用 Vim 开发 golang
xiasuhuei321
vimgolang
前言从Android开发转go开发之后有很长一段时间都是用的vim,主要是因为公司go工程本身并不是很复杂,也一直想试试脱离鼠标写代码是怎样的感受。刚开始用的是SpaceVim,开箱即用,集成了大部分常用的插件,支持的语言也非常的多。但是最近突然开始报错,有一些文件夹无法创建,自己切到相应的目录底下mkdir也不行,于是便想着自己整一套最简单的可以用来开发vim的配置,我集成的插件:Vundle:
- [VIM]spcaevim
ldinvicible
VIMvimlinux
Home|SpaceVimSpaceVim-知乎关于Vim/Neovim/SpaceVim的一些思考-知乎vim高配版(1)–SpaceVim简介SpaceVim是国内的一个大佬将一些NB的插件整合到一起的一个插件包.一键式安装,功能强大.官网参见Home|SpaceVimvim高配版(2)–vimplus简介vimplus是国内的又一个大佬打造的一个vim开发工具包.为cpp开发者量身定做.界面
- Vim折腾记录(1) --剪贴板支持(未解决)
Gaarahan
剪贴板支持(未解决)发现自己的SpaceVim不能使用系统剪贴板,寄存器中也没有"+原因是自己安装的vim没有clipboard支持文档中提到X11提供剪贴板支持选择重新编译安装
[email protected]:vim/vim.git$cdvim/src$make发现依旧不支持X11:同时还有报错:noterminallibraryfoundcheckingfortgetent
- SpaceVim安装与环境配置
dalalaa
配置vim是一件很让人头疼的事,网速差的同学可能安装个YouCompleteMe都要几个小时。本文要介绍一种vim的预配置方案——SpaceVim的安装过程(注意SpaceVim和space-vim是不一样的)。SpaceVim安装安装指令:curl-sLfhttps://spacevim.org/install.sh|bash-s----installvim显示如下:1594362947(1).
- vim 的配置文件和Spacevim 的配置
梦落迹南天
spacevim配置sshsu/my_spacevim_config编译的config./configure--with-features=huge--enable-largefile--disable-netbeans--with-x--enable-pythoninterp--enable-python3interp--with-python3-config-dir=/usr/lib/pyth
- Spacevim,设置expandtab,tab键展开设置
king_sperm
1.使用SpaceVim的默认设置,tab键默认被展开成2个space。2.修改~/.SpaceVim.d/init.toml中的设置,在option中添加[options]default_indent=4expand_tab=false其中,default_indent表示tab被展开成space的大小expand_tab表示是否将tab展开成tab.
- SpaceVim - 让你的vim变得更加高效和强大
weixin_30387799
开发工具gitui
SpaceVim使用指南项目主页:https://spacevim.org/cn/Github地址:https://github.com/SpaceVim/SpaceVim码云地址:https://gitee.com/spacevim/SpaceVimSpaceVim是一个社区驱动的模块化VimIDE,以模块的方式组织管理插件以及相关配置,为不同的语言开发量身定制了相关的开发模块,该模块提供代码自
- Go语言 linux下开发 IDE -SpaceVim\NeoVim
西京刀客
linuxidegolang
文章目录Go语言linux下开发IDE-SpaceVim一、NeoVim和SpaceVim区别二、NeoVim安装NeoVimNeovimGitHubCopilot插件安装常见错误执行完PlugInstall报错fatal:couldnotreadUsernamefor'https://github.com':terminalpromptsdisabled三、SpaceVimSpaceVim安装使
- 卸载 spacevim
panw3i
curl-sLfhttps://spacevim.org/install.sh|bash-s----uninstallsh/path/to/install.sh--uninstall
- 关于Vim/Neovim/SpaceVim的一些思考
vimspacevim
1前言最近看到了Neovim以及SpaceVim,于是上手试了一下。2Neovim与SpaceVimNeovim是Vim的一个分支,具有更加现代的GUI、嵌入式以及脚本化的终端、异步工作控制等等特点,默认配置文件为~/.config/nvim/init.vim。而SpaveVim,是一个社区驱动的模块化的VimIDE,以模块的方式组织管理插件以及相关配置,为不同的语言开发量身定制了相关的开发模块,
- 关于Vim/Neovim/SpaceVim的一些思考
vimspacevim
1前言最近看到了Neovim以及SpaceVim,于是上手试了一下。2Neovim与SpaceVimNeovim是Vim的一个分支,具有更加现代的GUI、嵌入式以及脚本化的终端、异步工作控制等等特点,默认配置文件为~/.config/nvim/init.vim。而SpaveVim,是一个社区驱动的模块化的VimIDE,以模块的方式组织管理插件以及相关配置,为不同的语言开发量身定制了相关的开发模块,
- 南京大学 计算机系统基础 课程实验 2018(PA0-1)
Martins3
申明,本人并非是南京大学的学生,此实验一共完成其中四部分,试验环境为Manjaro(并非PA0中间的docker)+SpaceVim,此文为记录试验的部分心得。PA0正如在本课程试验中间反复提到的基础设施的重要性,比如PA1中间gdb的构建,PA2中间的difftest创建,同样的搭建一个良好的试验环境也可以让自己注意力集中关键的部分。方案一:vscode方案二:vim不推荐不熟悉vim的用户使用
- 1.5 万 Star!Vim 党不能缺少的 IDE:SpaceVim
ide
【导语】:SpaceVim是一个社区驱动的模块化的VimIDE,以模块的方式管理插件,旨在维护一个模块化、开箱即用、稳定的Vim开发环境。目前在GitHub的Star数已有15.2k。简介SpaceVim是一个社区驱动的模块化的VimIDE,以模块的方式组织管理插件以及相关配置,为不同的语言开发定制了相关的开发模块,提供代码自动补全,语法检查、格式化、调试、REPL等特性。用户加载相应的模块插件就
- 1.5 万 Star!Vim 党不能缺少的 IDE:SpaceVim
ide
【导语】:SpaceVim是一个社区驱动的模块化的VimIDE,以模块的方式管理插件,旨在维护一个模块化、开箱即用、稳定的Vim开发环境。目前在GitHub的Star数已有15.2k。简介SpaceVim是一个社区驱动的模块化的VimIDE,以模块的方式组织管理插件以及相关配置,为不同的语言开发定制了相关的开发模块,提供代码自动补全,语法检查、格式化、调试、REPL等特性。用户加载相应的模块插件就
- vim常用操作
Gaarahan
本文许多内容借鉴于spacevim中文社区:https://github.com/vim-china/hello-vim.git模式vim有三种常见的模式Normal(普通模式)Insert(插入模式)visual(可视模式)NormalVim打开是默认的模式是Normal模式,在这一模式下,按键不能直接将字符插入至文件,而是执行各种命令.在任何模式下单击都能进入到normal模式下从Normal
- SpaceVim中vimproc的vimproc_linux64.so未找到
weixin_30377461
开发工具操作系统嵌入式
vimproc是我使用的SpaceVim中自动安装的插件,在启动时出现了“找不到dll文件”的提示,通过查阅官网(https://github.com/Shougo/vimproc.vim#install)了解到需要编译安装,以下仅介绍自动安装,如果先问题或需要手动编译安装请查看官网。自动编译安装在Vim/SpaceVim的命令模式执行:VimProcInstall手动编译安装请参考:https:
- SpaceVim 发布 v1.2.0
wsdjeg
vimspacevim
SpaceVim最新发布v1.2.0版本,该版本新增了12种编程语言模块,同时添加了一个待办事项管理工具:https://spacevim.org/SpaceVim...
- SpaceVim 发布最新版 v1.1.0
wsdjeg
vimspacevim
SpaceVim发布最新版v1.1.0,该版本主要是新增了悬浮窗口支持,快捷键导航、模糊搜索都使用了该特性。https://spacevim.org/SpaceVim...
- 使用 Vim 搭建 Lua 开发环境
wsdjeg
luavimspacevim
使用Vim搭建Lua开发环境原文链接:https://spacevim.org/cn/use-v...SpaceVim是一个模块化的VimIDE,针对lua这一语言的支持主要依靠lang#lua模块以及与之相关的其它模块。的这篇文章主要介绍如何使用SpaceVim搭建lua的开发环境,侧重介绍跟lua开发相关使用技巧。在阅读这篇文章之前,可以先阅读《使用Vim搭建基础的开发环境》,对语言相关以外的
- SpaceVim 语言支持状态
wsdjeg
spacevim
在这个列表里,将列出所有SpaceVim已经支持和计划支持的语言,如果你对其中某个语言有兴趣,欢迎进入相关连接讨论,对于没有连接的,可以在SpaceVim的github仓库新建issue讨论。https://github.com/SpaceVim/S...语言名称相关链接模块维护者agdahttps://spacevim.org/layers/l...asciidocTODO:SpaceVim/S
- SpaceVim - 一个模块化加载的vim配置
wsdjeg
spacevimvim
SpaceVim中文手册项目主页:spacevim.orgGithub地址:SpaceVimGitHub,欢迎Star或fork。SpaceVim是一个社区驱动的模块化vim/neovim配置集合,其中包含了多种功能模块,并且针对neovim做了功能优化。spacevim有多种功能模块可供选择,用户只需要选择需要的模块,就可以配置出一个适合自己的开发环境。使用过程中遇到问题或者有什么功能需求可以在
- SpaceVim+NeoVim
dadaHaHa1234
我觉得:对于程序编辑器,需求驱动。找到自己想要的需求,看如何实现,不必太花哨而迷失主要需求参考https://github.com/yangyangwithgnu/use_vim_as_ide#3作者:老亨来源:CSDN安装spacevim:自己百度安装neovim:参考https://blog.csdn.net/henryhu712/article/details/80458753首先,如果没有
- 如何配置 SpaceVim
wsdjeg
spacevimvimvimrc
本文将系统地介绍如何配置SpaceVim,配置SpaceVim主要包括以下几个内容:设置SpaceVim选项启动/禁用模块添加自定义插件添加自定义按键映射以及插件配置设置SpaceVim选项原先,在老版本的SpaceVim中,默认的配置文件是init.vim。在init.vim文件内,我们可以通过letg:spacevim_*这样的语句来设置SpaceVim选项。而在新版的SpaceVim中,我们
- 如何配置 SpaceVim
wsdjeg
spacevimvimvimrc
本文将系统地介绍如何配置SpaceVim,配置SpaceVim主要包括以下几个内容:设置SpaceVim选项启动/禁用模块添加自定义插件添加自定义按键映射以及插件配置设置SpaceVim选项原先,在老版本的SpaceVim中,默认的配置文件是init.vim。在init.vim文件内,我们可以通过letg:spacevim_*这样的语句来设置SpaceVim选项。而在新版的SpaceVim中,我们
- 终极 Vim 配置:SpaceVim
wsdjeg
spacevimvimgithubJavapython
SpaceVim中文手册项目主页:https://spacevim.org/cn/Github地址:https://github.com/SpaceVim/SpaceVimSpaceVim是一个社区驱动的模块化vim/neovim配置集合,以模块的方式组织管理插件以及相关配置,为不同的语言开发量身定制了相关的开发模块,该模块提供代码自动补全,语法检查、格式化、调试、REPL等特性。用户仅需载入相关
- vim和spaceVim的buffer, 窗口,和tab的使用
梦落迹南天
1.buffer,windows和tab一个tab下可以存在多个windows,可以类比成tab相当于一个直播页面,而windows是同时在这个直播页面上的直播房间,buffer则是直播房间的内容。查看tab和windows使用:tabs查看tab和windows布局tab切换使用space+w+f创建一个新的tab使用\呼出菜单,根据tab号以及提示进行切换使用gt以及gT进行前一个以及后一个t
- SpaceVim 发布 v0.5.0
wsdjeg
NewFeaturesAddclojurelayer#964Addlang#soliditylayer#959Addcompletescript#954Addremotemanager#949addwiki#946Addedanewpluginthinca/vim-quickrun#939Addedanewpluginvimwiki/vimwiki#938Addedanewpluginvimwik
- Jetson Nano + TensorFlow2.0
秋名山小卖部
ML-serverAgroBot
置顶,懒得看具体细节的同学可以直接用我的GitHub安装脚本进行环境配置1环境配置1.1工作环境自带python3.6+python3.6-dev+TensorFlow2.0+TF2.0相关包1.2其他美化zsh+oh_my_zsh美化终端;SpaceVim加强vim2常见问题2.1APT包找不到建议使用中科大源,而非清华源,因为清华源对Ubuntu和Ros更新速度较慢。(如本次我就没有在清华源找
- PHP如何实现二维数组排序?
IT独行者
二维数组PHP排序
二维数组在PHP开发中经常遇到,但是他的排序就不如一维数组那样用内置函数来的方便了,(一维数组排序可以参考本站另一篇文章【PHP中数组排序函数详解汇总】)。二维数组的排序需要我们自己写函数处理了,这里UncleToo给大家分享一个PHP二维数组排序的函数:
代码:
functionarray_sort($arr,$keys,$type='asc'){
$keysvalue= $new_arr
- 【Hadoop十七】HDFS HA配置
bit1129
hadoop
基于Zookeeper的HDFS HA配置主要涉及两个文件,core-site和hdfs-site.xml。
测试环境有三台
hadoop.master
hadoop.slave1
hadoop.slave2
hadoop.master包含的组件NameNode, JournalNode, Zookeeper,DFSZKFailoverController
- 由wsdl生成的java vo类不适合做普通java vo
darrenzhu
VOwsdlwebservicerpc
开发java webservice项目时,如果我们通过SOAP协议来输入输出,我们会利用工具从wsdl文件生成webservice的client端类,但是这里面生成的java data model类却不适合做为项目中的普通java vo类来使用,当然有一中情况例外,如果这个自动生成的类里面的properties都是基本数据类型,就没问题,但是如果有集合类,就不行。原因如下:
1)使用了集合如Li
- JAVA海量数据处理之二(BitMap)
周凡杨
java算法bitmapbitset数据
路漫漫其修远兮,吾将上下而求索。想要更快,就要深入挖掘 JAVA 基础的数据结构,从来分析出所编写的 JAVA 代码为什么把内存耗尽,思考有什么办法可以节省内存呢? 啊哈!算法。这里采用了 BitMap 思想。
首先来看一个实验:
指定 VM 参数大小: -Xms256m -Xmx540m
- java类型与数据库类型
g21121
java
很多时候我们用hibernate的时候往往并不是十分关心数据库类型和java类型的对应关心,因为大多数hbm文件是自动生成的,但有些时候诸如:数据库设计、没有生成工具、使用原始JDBC、使用mybatis(ibatIS)等等情况,就会手动的去对应数据库与java的数据类型关心,当然比较简单的数据类型即使配置错了也会很快发现问题,但有些数据类型却并不是十分常见,这就给程序员带来了很多麻烦。
&nb
- Linux命令
510888780
linux命令
系统信息
arch 显示机器的处理器架构(1)
uname -m 显示机器的处理器架构(2)
uname -r 显示正在使用的内核版本
dmidecode -q 显示硬件系统部件 - (SMBIOS / DMI)
hdparm -i /dev/hda 罗列一个磁盘的架构特性
hdparm -tT /dev/sda 在磁盘上执行测试性读取操作
cat /proc/cpuinfo 显示C
- java常用JVM参数
墙头上一根草
javajvm参数
-Xms:初始堆大小,默认为物理内存的1/64(<1GB);默认(MinHeapFreeRatio参数可以调整)空余堆内存小于40%时,JVM就会增大堆直到-Xmx的最大限制
-Xmx:最大堆大小,默认(MaxHeapFreeRatio参数可以调整)空余堆内存大于70%时,JVM会减少堆直到 -Xms的最小限制
-Xmn:新生代的内存空间大小,注意:此处的大小是(eden+ 2
- 我的spring学习笔记9-Spring使用工厂方法实例化Bean的注意点
aijuans
Spring 3
方法一:
<bean id="musicBox" class="onlyfun.caterpillar.factory.MusicBoxFactory"
factory-method="createMusicBoxStatic"></bean>
方法二:
- mysql查询性能优化之二
annan211
UNIONmysql查询优化索引优化
1 union的限制
有时mysql无法将限制条件从外层下推到内层,这使得原本能够限制部分返回结果的条件无法应用到内层
查询的优化上。
如果希望union的各个子句能够根据limit只取部分结果集,或者希望能够先排好序在
合并结果集的话,就需要在union的各个子句中分别使用这些子句。
例如 想将两个子查询结果联合起来,然后再取前20条记录,那么mys
- 数据的备份与恢复
百合不是茶
oraclesql数据恢复数据备份
数据的备份与恢复的方式有: 表,方案 ,数据库;
数据的备份:
导出到的常见命令;
参数 说明
USERID 确定执行导出实用程序的用户名和口令
BUFFER 确定导出数据时所使用的缓冲区大小,其大小用字节表示
FILE 指定导出的二进制文
- 线程组
bijian1013
java多线程threadjava多线程线程组
有些程序包含了相当数量的线程。这时,如果按照线程的功能将他们分成不同的类别将很有用。
线程组可以用来同时对一组线程进行操作。
创建线程组:ThreadGroup g = new ThreadGroup(groupName);
&nbs
- top命令找到占用CPU最高的java线程
bijian1013
javalinuxtop
上次分析系统中占用CPU高的问题,得到一些使用Java自身调试工具的经验,与大家分享。 (1)使用top命令找出占用cpu最高的JAVA进程PID:28174 (2)如下命令找出占用cpu最高的线程
top -Hp 28174 -d 1 -n 1
32694 root 20 0 3249m 2.0g 11m S 2 6.4 3:31.12 java
- 【持久化框架MyBatis3四】MyBatis3一对一关联查询
bit1129
Mybatis3
当两个实体具有1对1的对应关系时,可以使用One-To-One的进行映射关联查询
One-To-One示例数据
以学生表Student和地址信息表为例,每个学生都有都有1个唯一的地址(现实中,这种对应关系是不合适的,因为人和地址是多对一的关系),这里只是演示目的
学生表
CREATE TABLE STUDENTS
(
- C/C++图片或文件的读写
bitcarter
写图片
先看代码:
/*strTmpResult是文件或图片字符串
* filePath文件需要写入的地址或路径
*/
int writeFile(std::string &strTmpResult,std::string &filePath)
{
int i,len = strTmpResult.length();
unsigned cha
- nginx自定义指定加载配置
ronin47
进入 /usr/local/nginx/conf/include 目录,创建 nginx.node.conf 文件,在里面输入如下代码:
upstream nodejs {
server 127.0.0.1:3000;
#server 127.0.0.1:3001;
keepalive 64;
}
server {
liste
- java-71-数值的整数次方.实现函数double Power(double base, int exponent),求base的exponent次方
bylijinnan
double
public class Power {
/**
*Q71-数值的整数次方
*实现函数double Power(double base, int exponent),求base的exponent次方。不需要考虑溢出。
*/
private static boolean InvalidInput=false;
public static void main(
- Android四大组件的理解
Cb123456
android四大组件的理解
分享一下,今天在Android开发文档-开发者指南中看到的:
App components are the essential building blocks of an Android
- [宇宙与计算]涡旋场计算与拓扑分析
comsci
计算
怎么阐述我这个理论呢? 。。。。。。。。。
首先: 宇宙是一个非线性的拓扑结构与涡旋轨道时空的统一体。。。。
我们要在宇宙中寻找到一个适合人类居住的行星,时间非常重要,早一个刻度和晚一个刻度,这颗行星的
- 同一个Tomcat不同Web应用之间共享会话Session
cwqcwqmax9
session
实现两个WEB之间通过session 共享数据
查看tomcat 关于 HTTP Connector 中有个emptySessionPath 其解释如下:
If set to true, all paths for session cookies will be set to /. This can be useful for portlet specification impleme
- springmvc Spring3 MVC,ajax,乱码
dashuaifu
springjquerymvcAjax
springmvc Spring3 MVC @ResponseBody返回,jquery ajax调用中文乱码问题解决
Spring3.0 MVC @ResponseBody 的作用是把返回值直接写到HTTP response body里。具体实现AnnotationMethodHandlerAdapter类handleResponseBody方法,具体实
- 搭建WAMP环境
dcj3sjt126com
wamp
这里先解释一下WAMP是什么意思。W:windows,A:Apache,M:MYSQL,P:PHP。也就是说本文说明的是在windows系统下搭建以apache做服务器、MYSQL为数据库的PHP开发环境。
工欲善其事,必须先利其器。因为笔者的系统是WinXP,所以下文指的系统均为此系统。笔者所使用的Apache版本为apache_2.2.11-
- yii2 使用raw http request
dcj3sjt126com
http
Parses a raw HTTP request using yii\helpers\Json::decode()
To enable parsing for JSON requests you can configure yii\web\Request::$parsers using this class:
'request' =&g
- Quartz-1.8.6 理论部分
eksliang
quartz
转载请出自出处:http://eksliang.iteye.com/blog/2207691 一.概述
基于Quartz-1.8.6进行学习,因为Quartz2.0以后的API发生的非常大的变化,统一采用了build模式进行构建;
什么是quartz?
答:简单的说他是一个开源的java作业调度框架,为在 Java 应用程序中进行作业调度提供了简单却强大的机制。并且还能和Sp
- 什么是POJO?
gupeng_ie
javaPOJO框架Hibernate
POJO--Plain Old Java Objects(简单的java对象)
POJO是一个简单的、正规Java对象,它不包含业务逻辑处理或持久化逻辑等,也不是JavaBean、EntityBean等,不具有任何特殊角色和不继承或不实现任何其它Java框架的类或接口。
POJO对象有时也被称为Data对象,大量应用于表现现实中的对象。如果项目中使用了Hiber
- jQuery网站顶部定时折叠广告
ini
JavaScripthtmljqueryWebcss
效果体验:http://hovertree.com/texiao/jquery/4.htmHTML文件代码:
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>网页顶部定时收起广告jQuery特效 - HoverTree<
- Spring boot内嵌的tomcat启动失败
kane_xie
spring boot
根据这篇guide创建了一个简单的spring boot应用,能运行且成功的访问。但移植到现有项目(基于hbase)中的时候,却报出以下错误:
SEVERE: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.Lif
- leetcode: sort list
michelle_0916
Algorithmlinked listsort
Sort a linked list in O(n log n) time using constant space complexity.
====analysis=======
mergeSort for singly-linked list
====code======= /**
* Definition for sin
- nginx的安装与配置,中途遇到问题的解决
qifeifei
nginx
我使用的是ubuntu13.04系统,在安装nginx的时候遇到如下几个问题,然后找思路解决的,nginx 的下载与安装
wget http://nginx.org/download/nginx-1.0.11.tar.gz
tar zxvf nginx-1.0.11.tar.gz
./configure
make
make install
安装的时候出现
- 用枚举来处理java自定义异常
tcrct
javaenumexception
在系统开发过程中,总少不免要自己处理一些异常信息,然后将异常信息变成友好的提示返回到客户端的这样一个过程,之前都是new一个自定义的异常,当然这个所谓的自定义异常也是继承RuntimeException的,但这样往往会造成异常信息说明不一致的情况,所以就想到了用枚举来解决的办法。
1,先创建一个接口,里面有两个方法,一个是getCode, 一个是getMessage
public
- erlang supervisor分析
wudixiaotie
erlang
当我们给supervisor指定需要创建的子进程的时候,会指定M,F,A,如果是simple_one_for_one的策略的话,启动子进程的方式是supervisor:start_child(SupName, OtherArgs),这种方式可以根据调用者的需求传不同的参数给需要启动的子进程的方法。和最初的参数合并成一个数组,A ++ OtherArgs。那么这个时候就有个问题了,既然参数不一致,那