vim 101 - my vimrc

Monday, December 20, 2010

 "colorscheme ron  
"colorscheme jagadeesh
"color ir_black
colorscheme koehler
set nu
set nocindent
set hlsearch
set tabstop=4 shiftwidth=4 expandtab
set laststatus=2
"i don't want a toolbar in gvim
set guioptions-=T
"i dont want to see menu in gvim
set guioptions-=m
"map "+y
"imap "+y
"map "+gP
"imap "+gP
nmap "+g
map tnext
map tprev
map "+y
map "+x
map "+gP
imap "+y
imap "+x
imap "+gP
map gj
map gk
imap gki
imap gji
map []
map ][
imap []i
imap ][i
map gg
imap ggi
"Tab navigation
map gt
imap gta
au FileType tex set ai et tw=70 spell
au FileType c set cindent tw=80 nospell
au FileType h set cindent tw=80 nospell
au FileType cpp set cindent tw=80 nospell
autocmd BufEnter *.cu set cindent tw=80 nospell
au FileType cuh set cindent tw=80 nospell
autocmd BufEnter *.c,*.C,*.cpp,*.CPP,*.h,*.H,*.cu,*.cuh set guifont=Courier\ 10\ Pitch\ 12
autocmd BufEnter *.c,*.C,*.cpp,*.CPP,*.h,*.H,*.cu,*.cuh map [[
autocmd BufEnter *.c,*.C,*.cpp,*.CPP,*.h,*.H,*.cu,*.cuh map ]]
filetype plugin on
set ofu=syntaxcomplete#Complete
" OmniCppComplete
let OmniCpp_NamespaceSearch = 1
let OmniCpp_GlobalScopeSearch = 1
let OmniCpp_ShowAccess = 1
let OmniCpp_ShowPrototypeInAbbr = 1 " show function parameters
let OmniCpp_MayCompleteDot = 1 " autocomplete after .
let OmniCpp_MayCompleteArrow = 1 " autocomplete after ->
let OmniCpp_MayCompleteScope = 1 " autocomplete after ::
let OmniCpp_DefaultNamespaces = ["std", "_GLIBCXX_STD"]
" automatically open and close the popup menu / preview window
au CursorMovedI,InsertLeave * if pumvisible() == 0|silent! pclose|endif
set completeopt=menuone,menu,longest,preview
let c_no_if0=0

0 comments: