After listening to Damien Conways More Instantly Better Vim I've switch colon and semicolon in my vimrc like so
" remap colon to semicolon in norman and visual mode, but not in insert mode
nnoremap ; :
nnoremap : ;
vnoremap ; :
vnoremap : ;
And it was really convenient for me. But recently I've learned from vim help (I've finally started reading it systematically) that not only I can search for next occurence of character in line with f, but also repeat this search with semicolon and with comma in backward direction.
This creates the conflict between this two. So initially I've disabled remapping colon to semicolon. But it's so annoying now, that I'm trying to find another solution.
Can I change the key at which vim found repeat search, not just remap it for all commands?
;
,:
,,
mapping and I have other mappings for quick access to the command line. Otherwise you should be able to sort this with a function that keep track of your current "status" (searching/not searching).<leader>w
to save,<leader>q
to quit,<leader>o
to open the command line for search file (was previoulsy mapped toctrlp
). I don't use a lot of mapping, I tend to prefer using command.