Vim

(add links, categorise)
(Configuration)
Line 8: Line 8:
<pre>
<pre>
-
# Map the comma key to colon
+
" Map the comma key to colon
map , :
map , :
-
# Press jk while in insert mode to press escape
+
 
-
inoremap jk <esc>
+
" Press jj while in insert mode to press escape
 +
inoremap jj <esc>
 +
 
 +
 
 +
" CTRL+Up to page up, CTRL+Down to page down
 +
map <c-up> <c-u>
 +
map <c-down> <c-d>
 +
 
 +
 
 +
" Use 256 colors
 +
set t_Co=256
</pre>
</pre>
[[Category:Software]]
[[Category:Software]]

Revision as of 08:15, 31 May 2011

Vim is a text editor based off the classic vi editor. It is different from other text editors in that it has different modes of operation. You can learn about vim through various websites.

Vim is a very capable editor for mobile devices because of its low footprint and efficiency of key strokes.

Configuration

Vim can be configured through the ~/.vimrc file. Here are some items that make it easier to use vim on the N900.

" Map the comma key to colon
map , :


" Press jj while in insert mode to press escape
inoremap jj <esc>


" CTRL+Up to page up, CTRL+Down to page down
map <c-up> <c-u>
map <c-down> <c-d>


" Use 256 colors
set t_Co=256
Retrieved from "https://wiki.maemo.org/Vim"