Skip to main content

Posts

Showing posts from July, 2012

Linux - Bash - .Xdefaults - To have customized xterm window

Open a file in your root folder named .Xdefaults Add the following code in the file. XTerm*Background:   black XTerm*Foreground:   linen XTerm*font:  9x15 XTerm*saveLines:    1000 XTerm*HiForeColor: white XTerm*HiBackColor: #c06077 XTerm*geometry: 150x40+10+10 XTerm*font:             -*-courier 10 pitch-medium-r-*-*-14-*-*-*-*-*-iso8859-* To select the code for any required font, run the command  xfontsel -print This opens a GUI where you can select the required font, whose code would be displayed while it is selected and at the time when you exit the application.  Add this code in the .Xdefaults file.

Linux - vim - Useful vimrc

"set line numbers " set number noremap :n noremap :N set autoindent set cindent set smartindent set formatoptions=tcroqn " see help set incsearch set ignorecase set smartcase nnoremap :set invpaste paste? set pastetoggle= set showmode " Xml Alignment map :1,$!xmllint --format - "background "set bg=dark set bg=light "Auto close braces... "inoremap {      {} "inoremap {  { } O "inoremap {{     { "inoremap {}     {} "to map any key to do a repeated action map %s/LOG_DEBUG/LOG_INFO/g "nmap :tabnext nmap :tabprev nmap :tabnext "highlight OverLength ctermbg=darkred ctermfg=white guibg=#FFD9D9 guifg=#FFFFFF "match OverLength /\%81v.*/ "control number of spaces for a tab set tabstop=4 " makes the spaces feel like real tabs set softtabstop=4 "change the number of space characters for indentation set shiftwidth=4 "put spaces instead of tabs ...