I don't like the hjkl key for moving cursor. Instead, I prefer jkli. Is noremap the best command that I should use to keep maximum copatibilities? I am quite confused with all remap commands. Please suggest the best command for the following configuration. Thank you.
" rearrange arrow key and PgUp PgDn Home End noremap k <Down> noremap j <Left> noremap i <Up> noremap u <PageDown> noremap o <PageUp> noremap ; <End> noremap h <Home> " remap insert noremap <Space> i nnoremap <ESC> a " remap add line nnoremap m o nnoremap M O " PE2 Compatible " delete a line inoremap <C-BS> <ESC>dda noremap <C-BS> dd " select a line inoremap <C-l> <ESC>V noremap <C-l> V " select a block by cursor inoremap <C-b> <ESC>v noremap <C-b> v " windows compatible " save file noremap <C-s> :w<CR> lnoremap <C-s> :w<CR> "find inoremap <C-f> <ESC>/ noremap <C-f> / "replace inoremap <C-r> <ESC>:%s/ / /c noremap <C-r> :%s/ / /c "split windows and move cursor "new windows inoremap <C-n> <ESC><C-w>n<C-w>r noremap <C-n> <C-w>n<C-w>r "close current windows inoremap <C-w> <ESC><C-w>q " Maximize current windows and close all other windows "inoremap <C-m> <ESC><C-w>o "noremap <C-m> <C-w>o " move cursor to the other windows inoremap <silent> <A-Up> <ESC>:wincmd k<CR> inoremap <silent> <A-Down> <ESC>:wincmd j<CR> inoremap <silent> <A-Left> <ESC>:wincmd h<CR> inoremap <silent> <A-Right> <ESC>:wincmd l<CR> noremap <silent> <A-Up> :wincmd k<CR> noremap <silent> <A-Down> :wincmd j<CR> noremap <silent> <A-Left> :wincmd h<CR> noremap <silent> <A-Right> :wincmd l<CR> --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
