The UNIX way.

Around the clock, across the globe. By Vladimir Legeza

My ~/.vimrc file.

leave a comment »

My ~/.vimrc file was сhanged a little bit, since I started to learn Solaris/Linux internals architecture and began to programming on C.

The most recent changes are:

  • Showing invisible characters in light yellow color that can be turned On and Off by [CTRL]-M+[CTRL]-L combination.
    Characters (U+25B8) and ¬ (U+00AC) is “Tab” and “End Of Line” respectively.
  • Turned on autoindentation (that can be swithed On/Off by [CTRL]-M+[CTRL]-I key combination in insert mode only).
  • Uses 4 spaces instead of tab.

Now it looks like below:

syn on
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
set autoindent
set listchars=tab:▸\ ,eol:¬
"Invisible character colors
"highlight NonText guifg=#fefefe
"highlight SpecialKey guifg=#fefefe
highlight NonText ctermfg=Yellow guifg=Yellow term=standout
highlight SpecialKey ctermfg=Yellow guifg=Yellow term=standout

set viminfo='100,"100,<50,s10,h
function! ResCur()
if line("'\"") normal! g`"
return 1
endif
endfunction

augroup resCur
autocmd!
autocmd BufWinEnter * call ResCur()
augroup END

nnoremap :set invpaste paste?
set pastetoggle=
set showmode

set list
let g:listSt=1
function! TurnList()
if g:listSt == 1
let g:listSt = 0
set nolist
else
let g:listSt = 1
set list
endif
endfunction
map :call TurnList()

Written by Vladimir Legeza

December 25, 2010 at 1:18 am

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: