Re: visual problem

2007-03-12 Thread Andy Wokula

Simon Jackson schrieb:

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

second line is enough


set gdefault  " Use 'g' flag by default with :s/foo/bar/

Can result in obscure errors with some badly written plugin,
that does not reset 'gdefault' to the default.

! Looks like you're not happy with

set selectmode=mouse,key,cmd



au FileType helpfile set nonumber " no line numbers when viewing help
au FileType helpfile nnoremap  " Enter selects subject
au FileType helpfile nnoremap  " Backspace to go back

Does this work for you?  On helpfiles,
:set ft?
returns "help", not "helpfile".


highlight Pmenu guibg=black gui=bold

Works as long as you don't change colorschemes.


Andy

--
EOM


___ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de


Re: visual problem

2007-03-12 Thread Charles E Campbell Jr

Simon Jackson wrote:


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?


Would you please give an example of the problem?

Regards,
C Campbell



visual problem

2007-03-10 Thread Simon Jackson

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  " Enter selects subject
au FileType helpfile nnoremap  " 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]