set backspace=indent,eol,start syntax onBasic:
S 'sc' 'smd' S 'hls' 'is' C 'ic' 'scs' L 'list' 'lcs' I 'ai' 'bs' N 'nu' 'ru' T 'ts' 'sw' 'lbr' 'so' | set showcmd set showmode set hlsearch set incsearch set ignorecase set smartcase set list set listchars=tab:›\ ,trail:·,extends:▶,precedes:◀ set autoindent set backspace=indent,eol,start filetype plugin indent on set number set ruler set tabstop=4 set shiftwidth=4 color torte set linebreak " note: canceled by list set scrolloff=2 |
Core insert commands:
^H
deletes character (backwards), ^W
deletes word (backwards), ^O
lets you do one normal command.^C
will also get you out of insert mode, just without abbreviations. Wow, I should try using abbreviations.Switch to directory of currently edited file
command Cwd cd %:p:h
Occasionally useful
function Hex(n) return printf("%x", n) endfunction
function Bin(n) if a:n == 0 return "0" elseif a:n == 1 return "1" else return Bin(a:n/2) . (a:n%2) endfunction
No comments:
Post a Comment