首页 > 系统相关 >linux vim environment setting

linux vim environment setting

时间:2022-11-23 18:35:38浏览次数:39  
标签:only manager vim environment bashrc window setting your


I tried to use the python autocomplete in vim  and setting the environment

in ~/.bashrc,then it works in shell . but not works when i opening gvim from a window.

find it on line and i get some useful information:

 

When you are  launching gvim from your window manager, which gets
its environment from a number of places, but not from your bashrc
since your window manager was not run from bash.

Stuff like PATH and other environment settings that you expect to be
seen by applications launched from your window manager should really
be defined in your ~/.profile instead of in your ~/.bashrc.  Your
~/.profile is read when you log in, whether through X or through a
terminal.  Environment settings (but not aliases) made there and
exported will be seen by all your processes.  Your ~/.bashrc should
really be used to make only those settings that you expect to use
only from the command line (including aliases and functions) or by
applications launched only from the command line.

标签:only,manager,vim,environment,bashrc,window,setting,your
From: https://blog.51cto.com/fangkailove/5881605

相关文章

  • vim-python全能补全与python环境变量设置
    vim针对python的万能补全对于python自带的模块库都能够正常使用全能补全,但一些自定义的模块却不行,这是因为vim当前进程需要找到相应模块并做导入分析获取补全用的词......
  • ubuntu vim中获取sudo权限保存
    有时在ubuntu下,用vim编辑了半天文本发现没有权限保存,这时可以用这种方式强制保存:w!sudotee%w保存!执行外部命令tee写入到文件%vim中的变量,当前文件地址,一般是......
  • Vim简单入门
    值此五四运动100周年之际,写篇文章纪念一下。“要把所有的夜归还给星河,把所有的春光归还给疏疏篱落,把所有的慵慵沉迷与不前,归还给过去的我。明日之我,胸中有丘壑,立马振山河。......
  • GVIM使用及模板制作
    「教程」GVIM使用及模板制作原创2022-11-2209:26·​​明德扬FPGA科教​​GVIM是类似于记事本的代码编辑工具,但相比于记事本其输入效率更高,可以更好的提升工作效率。由于......
  • Vim实用技巧(4)——可视模式
    可视模式可视模式技巧20深入理解可视模式技巧20深入理解可视模式可视模式允许选中一个文本区域并在其上操作。h,j,k,l仍可当作光标键使用,f{char}配合,,;,查找......
  • linux vim 复制粘贴代码
    将光标移动到复制的起始位置,按一下大写V或小写v,(大写V是整行,小写是光标处),然后上下左右将光标移动到复制的末尾,然后按下y,移动到要粘贴的位置,按下大写P或小写p(大写P:光标之前......
  • No compiler is provided in this environment. Perhaps you are running on a JRE ra
    Nocompilerisprovidedinthisenvironment.PerhapsyouarerunningonaJREratherthanaJDK?Nocompilerisprovidedinthisenvironment.Perhapsyouarerun......
  • vim显示行数
    一种是临时显示。进入vim编辑器后,在命令行模式下,输入:setnu或者setnumber,按下回车后,就会显示行数。输入:setnonu,就会隐藏行数。此方法,在关闭当前vim后再次打开vim编辑......
  • Vim实用技巧(3)——插入模式
    插入模式插入模式技巧13在插入模式中即可即时更正错误技巧14返回普通模式技巧15不离开插入模式,粘贴寄存器中的文本技巧16随时随地做运算技巧13在插入模式......
  • settings配置文件和源码
    BASE_DIR:用来在项目中构建路径SECRET_KEY:项目生成时候用的秘钥DEBUG:调试模式,在写代码的时候打开,投入使用了就不用了ALLOWED_HOSTS=['']:运行那些ip来进行访问......