My Vim Emacs and Other Configuration Files

My .vimrc .emacc files can be downloaded from here:
http://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.

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

The .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).

The ~/.vnc/xstartup file:

    #!/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

About Eric Zhiqiang Ma

Eric Zhiqiang Ma is a PhD candidate at Dep. of CSE, HKUST. He is interested in system software for cloud computing, virtualization of large-scale distributed systems and etc. Also find Eric on Facebook, Twitter, LinkedIn and Google+. The views or opinions expressed here are solely Eric's own and do not necessarily represent those of any third parties. More Posts - Website

One thought on “My Vim Emacs and Other Configuration Files”

  1. I am genuinely pleased to glance at this webpage posts which consists of lots of valuable facts, thanks for providing these
    kinds of information.

Leave a Reply

Your email address will not be published. Required fields are marked *

eighty + = eighty seven

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Click to subscribe to Fclose.com Posts by Email if you have not.