Problems with my .vimrc

2011-04-20 Thread Tobias Lindgaard
My problem is that my keymappings doesn't seem to work.
But that would not be particularly strange it only happens to some of
them
for instance I have changed ; to : in normal-mode and visual-mode
but all that starts with either LEADER or ',' or '\' seems to be
broken.


my vimrc:
silent! call pathogen#runtime_append_all_bundles()
silent! call pathogen#helptags()
nmap LEADERnn :colorscheme navajo-nightCR
nmap ,bn ESC:bnCR
nmap ,bp ESC:bpCR
nmap ,bd ESC:bdCR
nmap ,ne ESC:NERDTreeCR
nmap ,nc ESC:NERDTreeCloseCR
nnoremap : ;
nnoremap ; :
vnoremap : ;
vnoremap ; :
cnoremap ; :
cnoremap : ;
 I just happen to edit a lot of latex stuff for my local chessclub,
and these
 are in high use, as they include a big part of my native language.
nmap F3 ESC:GundoToggleCR
nmap LEADERo ESC:so ~/.vimrcCR
 One thing to remember C-[ actually = ESC!
map C-h C-Wh
map C-j C-Wj
map C-k C-Wk
map C-l C-Wl
nmap ,c :onlyCR
map ,sp ESC:spCR

set nocp No compatability.
set expandtab
set noautoindent
set nohls
set tw=0
set ruler
set laststatus=2
set wildmenu
set showcmd
set nu  Put line numbers
set hidden  the mysterius hidden, which makes vim more graceful about
 changing away from files that have changes..
 Fold Section
set foldlevel=0  fold level says don't fold automatically
set foldmethod=manual
set foldenable
 Done Fold section
set nobackup  I really don't like ~ files.
set nowritebackup  I don't like any backup files..
set noswapfile  I hate .swp files.
set tabstop=2
set showmatch  Shows matchin paren
set statusline=\ File:\ %F%m%r%h\ %w\ \ \ Current\ dir:\%r%{getcwd()}
%h

colors xoria256  I kind of like this however navajo-night is also
good.

Navajo-night is kind of what I would use for nighttime, if I had no
light on.
 This is for some latex stuff.
 Mostly relevant if I get the magasine in our chess club
filetype plugin on
filetype indent on
let g:tex_flavor='latex'

all my spell mistakes.
iab helo hello
iab gyu guy
iab thansk thanks
iab mster master
iab mastre master
iab musci music
iab hell  hello

-- 
You received this message from the vim_use maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php


Re: Problems with my .vimrc

2011-04-20 Thread Ben Schmidt

nmap ,bn ESC:bnCR

...

nnoremap : ;


So first the nmap types Esc, but you are already in Normal mode, so
Esc usually just beeps, which might abort the mapping; so that's not a
good idea.

Even if it does get past that, though, it then types : but : has been
mapped to ; so instead of doing :bnCR it does ;bnCR (repeat last f
or t search in the same direction, or if there isn't one, probably just
beep and abort the mapping; or if it gets past that, then go back a
word, repeat the last search, and probably abort if the pattern is not
found, and then move down a line).

Try :nnoremap in place of :nmap even for the ones which don't swap keys
and see how far that gets you.

Smiles,

Ben.



--
You received this message from the vim_use maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php


Re: Problems with my .vimrc

2011-04-20 Thread Ben Schmidt

On 20/04/11 11:49 PM, Ben Schmidt wrote:

nmap ,bn ESC:bnCR

...

nnoremap : ;


So first the nmap types Esc, but you are already in Normal mode, so
Esc usually just beeps, which might abort the mapping; so that's not a
good idea.

Even if it does get past that, though, it then types : but : has been
mapped to ; so instead of doing :bnCR it does ;bnCR (repeat last f
or t search in the same direction, or if there isn't one, probably just
beep and abort the mapping; or if it gets past that, then go back a
word, repeat the last search, and probably abort if the pattern is not
found, and then move down a line).

Try :nnoremap in place of :nmap even for the ones which don't swap keys
and see how far that gets you.


O, and leave out the Esc. E.g.

:nnoremap ,bn :bnCR

Smiles,

Ben.



--
You received this message from the vim_use maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php


Re: Problems with my .vimrc

2011-04-20 Thread Tobias Lindgaard
On Wed, Apr 20, 2011 at 3:52 PM, Ben Schmidt
mail_ben_schm...@yahoo.com.au wrote:
 On 20/04/11 11:49 PM, Ben Schmidt wrote:

 nmap ,bn ESC:bnCR

 ...

 nnoremap : ;

 So first the nmap types Esc, but you are already in Normal mode, so
 Esc usually just beeps, which might abort the mapping; so that's not a
 good idea.

 Even if it does get past that, though, it then types : but : has been
 mapped to ; so instead of doing :bnCR it does ;bnCR (repeat last f
 or t search in the same direction, or if there isn't one, probably just
 beep and abort the mapping; or if it gets past that, then go back a
 word, repeat the last search, and probably abort if the pattern is not
 found, and then move down a line).

 Try :nnoremap in place of :nmap even for the ones which don't swap keys
 and see how far that gets you.

 O, and leave out the Esc. E.g.

 :nnoremap ,bn :bnCR

 Smiles,

 Ben.





-- 
You received this message from the vim_use maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php


Re: Problems with my .vimrc

2011-04-20 Thread Tobias Lindgaard
It turns out that my mappings to change ; : aren't to clever so I just
dump that.
It destroys a lot of things with plugins who are giving keybindings..
So I just reverted that change

On Wed, Apr 20, 2011 at 4:01 PM, Tobias Lindgaard
tobias.priv...@gmail.com wrote:
 On Wed, Apr 20, 2011 at 3:52 PM, Ben Schmidt
 mail_ben_schm...@yahoo.com.au wrote:
 On 20/04/11 11:49 PM, Ben Schmidt wrote:

 nmap ,bn ESC:bnCR

 ...

 nnoremap : ;

 So first the nmap types Esc, but you are already in Normal mode, so
 Esc usually just beeps, which might abort the mapping; so that's not a
 good idea.

 Even if it does get past that, though, it then types : but : has been
 mapped to ; so instead of doing :bnCR it does ;bnCR (repeat last f
 or t search in the same direction, or if there isn't one, probably just
 beep and abort the mapping; or if it gets past that, then go back a
 word, repeat the last search, and probably abort if the pattern is not
 found, and then move down a line).

 Try :nnoremap in place of :nmap even for the ones which don't swap keys
 and see how far that gets you.

 O, and leave out the Esc. E.g.

 :nnoremap ,bn :bnCR

 Smiles,

 Ben.






-- 
You received this message from the vim_use maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php


Re: Problems with my .vimrc

2011-04-20 Thread ZyX
Reply to message «Re: Problems with my .vimrc», 
sent 18:07:39 20 April 2011, Wednesday
by Tobias Lindgaard:

 It turns out that my mappings to change ; : aren't to clever so I just
 dump that.
 It destroys a lot of things with plugins who are giving keybindings..
 So I just reverted that change
You should write a bug report for each of these plugins: every clever plugin 
writer uses `*noremap' unless he wants to deal with such bugs.

Original message:
 It turns out that my mappings to change ; : aren't to clever so I just
 dump that.
 It destroys a lot of things with plugins who are giving keybindings..
 So I just reverted that change
 
 On Wed, Apr 20, 2011 at 4:01 PM, Tobias Lindgaard
 
 tobias.priv...@gmail.com wrote:
  On Wed, Apr 20, 2011 at 3:52 PM, Ben Schmidt
  
  mail_ben_schm...@yahoo.com.au wrote:
  On 20/04/11 11:49 PM, Ben Schmidt wrote:
  nmap ,bn ESC:bnCR
  
  ...
  
  nnoremap : ;
  
  So first the nmap types Esc, but you are already in Normal mode, so
  Esc usually just beeps, which might abort the mapping; so that's not a
  good idea.
  
  Even if it does get past that, though, it then types : but : has been
  mapped to ; so instead of doing :bnCR it does ;bnCR (repeat last f
  or t search in the same direction, or if there isn't one, probably just
  beep and abort the mapping; or if it gets past that, then go back a
  word, repeat the last search, and probably abort if the pattern is not
  found, and then move down a line).
  
  Try :nnoremap in place of :nmap even for the ones which don't swap keys
  and see how far that gets you.
  
  O, and leave out the Esc. E.g.
  
  :nnoremap ,bn :bnCR
  
  Smiles,
  
  Ben.


signature.asc
Description: This is a digitally signed message part.


Re: Problems with my .vimrc

2011-04-20 Thread Tobias Lindgaard
Hmm it just seemed that lusty had such a problem. But i am not since sure
about it.

Anyway it is nice to have my own mappings working as expected.
Den 20/04/2011 17.45 skrev ZyX zyx@gmail.com:
 Reply to message «Re: Problems with my .vimrc»,
 sent 18:07:39 20 April 2011, Wednesday
 by Tobias Lindgaard:

 It turns out that my mappings to change ; : aren't to clever so I just
 dump that.
 It destroys a lot of things with plugins who are giving keybindings..
 So I just reverted that change
 You should write a bug report for each of these plugins: every clever
plugin
 writer uses `*noremap' unless he wants to deal with such bugs.

 Original message:
 It turns out that my mappings to change ; : aren't to clever so I just
 dump that.
 It destroys a lot of things with plugins who are giving keybindings..
 So I just reverted that change

 On Wed, Apr 20, 2011 at 4:01 PM, Tobias Lindgaard

 tobias.priv...@gmail.com wrote:
  On Wed, Apr 20, 2011 at 3:52 PM, Ben Schmidt
 
  mail_ben_schm...@yahoo.com.au wrote:
  On 20/04/11 11:49 PM, Ben Schmidt wrote:
  nmap ,bn ESC:bnCR
 
  ...
 
  nnoremap : ;
 
  So first the nmap types Esc, but you are already in Normal mode, so
  Esc usually just beeps, which might abort the mapping; so that's not
a
  good idea.
 
  Even if it does get past that, though, it then types : but : has been
  mapped to ; so instead of doing :bnCR it does ;bnCR (repeat last
f
  or t search in the same direction, or if there isn't one, probably
just
  beep and abort the mapping; or if it gets past that, then go back a
  word, repeat the last search, and probably abort if the pattern is
not
  found, and then move down a line).
 
  Try :nnoremap in place of :nmap even for the ones which don't swap
keys
  and see how far that gets you.
 
  O, and leave out the Esc. E.g.
 
  :nnoremap ,bn :bnCR
 
  Smiles,
 
  Ben.

-- 
You received this message from the vim_use maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php