I have a problem when i am in visual mode and i have text highlighted.
Instead of being able to run a command, it just overwrites my selected
text instead. im sure its because of something in my vimrc but i just
cant pinpoint it, can anyone help?
P.S.: If anyone sees some errors in my vimrc or maybe how something
can be done more efficiently please let me know.
filetype on " detect the type of file
filetype plugin indent on " enable filetype plugin
set nocompatible " use VIM defaults (much better!)
set magic " change special characters used in search patterns
set history=1000 " How many lines of history to remember
set clipboard+=unnamed " turns out I do like is sharing windows clipboard
set viminfo+=! " make sure it can save viminfo
set gdefault " Use 'g' flag by default with :s/foo/bar/
"*************************************************************************
" Folding
"*************************************************************************
"set foldmethod=indent
"au BufWinLeave * mkview
"au BufWinEnter * silent loadview
"*************************************************************************
" Backups
"*************************************************************************
set backup " make backup file
set backupdir=~/.vim/backup " where to put backup file
set directory=~/.vim/temp " directory is the directory for temp file
"*************************************************************************
" Vim UI
"*************************************************************************
set backspace=2 " make backspace work normal
set showmode " show mode at bottom of screen
set title " show title in console title bar
set number " show line numbers
set mousemodel=popup
set selectmode=mouse,key,cmd
set mouse=a " make sure mouse is used in all cases.
set mousemodel=extend " set the model of mouse
if has("gui_running")
set guioptions-=T " removes gui toolbar
endif
set ruler " ruler display in status line
set wrapscan " search around end of file
set textwidth=78 " max length of line for inserting text
if has("gui_running")
colorscheme darkblue
"set guifont=Lucida_Console:h8:cDEFAULT
else
colorscheme marklar
endif
set background=dark " adapt colors for background
syntax on " turn on syntax
au FileType helpfile set nonumber " no line numbers when viewing help
au FileType helpfile nnoremap <buffer><cr> <c-]> " Enter selects subject
au FileType helpfile nnoremap <buffer><bs> <c-T> " Backspace to go back
"au GUIEnter * simalt ~x
"*************************************************************************
" File Browsing
"*************************************************************************
"*************************************************************************
" Visual Cues
"*************************************************************************
set mat=5 " how many tenths of a second to blink
matching brackets for
set incsearch " search for text as you type
set hls " highlight all search matches
if has("gui_running")
"set lines=54 " lines tall
"set columns=175 " 160 cols wide
endif
set so=10 " Keep 10 lines (top/bottom) for scope
set showmatch " show matching brackets
"*************************************************************************
" Text Formatting
"*************************************************************************
set autoindent " pressing return puts new line at same indention
set smartindent " assumes coding indents
set shiftwidth=3 " shift width size
set expandtab " use spaces instead of tabs
set tabstop=3 " tabs take up 3 spaces
"*************************************************************************
" Abbreviations
"*************************************************************************
ab teh the
"*************************************************************************
" Ruby
"*************************************************************************
autocmd FileType ruby setlocal sts=2 et
"*************************************************************************
" CakePHP
"*************************************************************************
au BufNewFile,BufRead *.thtml setfiletype php
"*************************************************************************
" OmniComplete
"*************************************************************************
setlocal omnifunc=syntaxcomplete#Complete
set wildmenu
set wildmode=list:longest,full
highlight Pmenu guibg=black gui=bold
--
Simon Jackson
107 Austin Elaine St.
Georgetown, TX 78628
United States
1-832-386-5069
[EMAIL PROTECTED]