...
Showing posts with label
VIM
.
Show all posts
Showing posts with label
VIM
.
Show all posts
Tuesday, 30 August 2011
vim misc
copy from vim to vim command line:
yank text then
:^r"
execute yanked vim code
yank code then
:@"
" is register
display hex, octal ... of character under cursor
ga
display special characters
:digraphs
insert special character
press ctlr+k plus key from ":digraphs" in insert mode
Wednesday, 22 September 2010
vimrc
general vimrc file
" indent
set autoindent
set smartindent
" spaces instead of tab
set tabstop=4
set shiftwidth=4
" briefly jumps to the matching brace/bracket
set showmatch
" flashes the screen when the command does not work instead of beep
set vb t_vb=
set ruler " show the cursor position all the time
set scrolloff=3 " keep 3 lines when scrolling
syntax on " syntax highlighing
" font and color
set guifont=Courier_New
colorscheme koehler
" turn backup off
set nobackup
" line numbers
:set nu
Home
Subscribe to:
Posts (Atom)