Friday, November 11, 2011

my ~/.vimrc file

set hlsearch
set nu
set ignorecase
set expandtab
set shiftwidth=4
set softtabstop=4

if has ("autocmd")
    autocmd BufRead *.file set tw=150
    autocmd BufRead *.prvc set nobackup nowritebackup foldmethod=indent fdo=insert
    filetype plugin indent on
    au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif


For gVim, following options can be added to "_vimrc" file
at path: C:\Users\\_vimrc

set noswf

if has("gui_running")
    if has("gui_win32")
        set guifont=Fixedsys:h11
    endif
endif


# other options:
# gui_gtk2 / gui_macvim / gui_gtk3 / gui_win32
 



No comments:

Post a Comment