linux vim emacs,vim和emacs_我的Vim Emacs和其他配置文件

vim和emacs

My .vimrc .emacc files can be downloaded from here:

https://github.com/zma/config_files

我的.vimrc .emacc 文件可以从这里下载:

https://github.com/zma/config_files

My text editors are especially configured for source code such as C/C++/shell editing. I prefer to use spaces instead of tab. And my favourite tab size is 4.

我的文本编辑器专门配置用于C / C ++ / shell编辑等源代码。 我更喜欢使用空格而不是制表符。 我最喜欢的标签大小是4。

Some vimrc parameters and the comments are listed here. Details and the updated configuration files please refer to the git repository.

这里列出了一些vimrc参数和注释。 详细信息和更新的配置文件请参考git存储库。

The .vimrc:

.vimrc:

set number " show line number

set backup " keep a backup file

set backupdir=~/.vibackup " keep all backup files in one central dir

set backupcopy=yes

set tabstop=4

set shiftwidth=4

set expandtab

set autoindent " always set autoindenting on

set cindent " indent c code

syntax on

set incsearch " do incremental searching

set hlsearch " high light the search content

set history=50 " keep 50 lines of command line history

set ruler " show the cursor position all the time

set showcmd " display incomplete commands

This xstartup configuration files makes VNC to use gnome as the desktop environment of remote server instead of the default (twm).

该xstartup配置文件使VNC可以将gnome用作远程服务器的桌面环境,而不是默认值(twm)。

The ~/.vnc/xstartup file:

〜/ .vnc / xstartup文件:

#!/bin/sh

# Uncomment the following two lines for normal desktop:

# unset SESSION_MANAGER

# exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup

[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources

xsetroot -solid grey

vncconfig -iconic &

#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &

#twm &

gnome-session

翻译自: https://www.systutorials.com/my-vim-emacs-configuration-files/

vim和emacs

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值