chxuan / vimplus

:rocket:An automatic configuration program for vim
https://github.com/chxuan/vimplus
MIT License
3.91k stars 1.13k forks source link

xshell连接主机,在xshell那里使用vim编辑,可以支持鼠标滚动吗 #228

Open wangshangxiu opened 4 years ago

wangshangxiu commented 4 years ago

[wsx@192 labor]$ ll 总用量 5064 -rw-rw-r--. 1 wsx wsx 1655 12月 11 08:48 Labor.hpp -rw-rw-r--. 1 wsx wsx 975 12月 11 08:48 Loader.cpp -rw-rw-r--. 1 wsx wsx 682 12月 11 08:48 Loader.hpp -rw-rw-r--. 1 wsx wsx 629736 12月 16 23:19 Loader.o -rw-rw-r--. 1 wsx wsx 21900 12月 11 08:48 Manager.cpp -rw-rw-r--. 1 wsx wsx 3934 12月 11 08:48 Manager.hpp -rw-rw-r--. 1 wsx wsx 2660488 12月 16 23:19 Manager.o -rw-rw-r--. 1 wsx wsx 3772 12月 11 08:48 NodeInfo.hpp -rw-rw-r--. 1 wsx wsx 11648 12月 11 08:48 Worker.cpp -rw-rw-r--. 1 wsx wsx 3448 12月 11 08:48 Worker.hpp -rw-rw-r--. 1 wsx wsx 1828504 12月 16 23:19 Worker.o [wsx@192 labor]$ vim Worker.cpp

Worker.cpp ? ?? buffers 196 bool Worker::InitLogger(const CJsonObject& oJsonConf)
197 { 198 if (nullptr != m_pLogger) // 已经被初始化过,只修改日志级别 199 { 200 int32 iLogLevel = 0; 201 int32 iNetLogLevel = 0; 202 oJsonConf.Get("log_level", iLogLevel); 203 oJsonConf.Get("net_log_level", iNetLogLevel); 204 m_pLogger->SetLogLevel(iLogLevel); 205 m_pLogger->SetNetLogLevel(iNetLogLevel); 206 return(true); 207 } 208 else 209 { 210 int32 iMaxLogFileSize = 0; 211 int32 iMaxLogFileNum = 0; 212 int32 iMaxLogLineLen = 1024; 213 int32 iLogLevel = 0; 214 int32 iNetLogLevel = 0; 215 std::string strLogname = m_stNodeInfo.strWorkPath + std::string("/") + oJsonConf("log_path") 216 + std::string("/") + getproctitle() + std::string(".log"); 217 std::string strParttern = "[%D,%d{%q}][%p] [%l] %m%n"; 218 oJsonConf.Get("max_log_file_size", iMaxLogFileSize); 219 oJsonConf.Get("max_log_file_num", iMaxLogFileNum); 220 oJsonConf.Get("log_max_line_len", iMaxLogLineLen); 221 oJsonConf.Get("net_log_level", iNetLogLevel); 222 oJsonConf.Get("log_level", iLogLevel); 223 m_pLogger = std::make_shared(strLogname, iLogLevel, iMaxLogFileSize, iMaxLogFileNum, iMaxLogLineLen, this); 224 m_pLogger->SetNetLogLevel(iNetLogLevel);

目前的情况是,这个vim如果是直接在Linux系统的终端下(bash)使用,鼠标滚动支持,就像使用IDE一样,但是如果是xshell去连接的话,xshell这个终端打开vim不支持鼠标滚动,滚轮操作直接是xshell的垂直滚动体在移动。请问这个有方法解决吗?

chxuan commented 4 years ago

@wangshangxiu 你好,我这边目前没有xshell环境,无法验证,我一般是使用命令来上下滚动的,向上滚动:Ctrl+u,向下滚动:Ctrl+d