Writing things down so I can remember them later

WaltCo Tech

« Installing Ruby and Ruby on Rails in Ubuntu 7.10 Gutsy Gibbon
Adding languages to Google Syntax Highlighter plugins for WordPress »

My .vimrc file

December 25th, 2007 by Walter Wilfinger
These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Reddit
” set options
set    background=dark
set    nocompatible
set    hlsearch
set    incsearch
set    ignorecase
set    ruler
set    showcmd
set    showmatch
set    showmode
set    tabstop=2
set    shiftwidth=2
set    expandtab
set    wmh=0
set   cindent

colorscheme torte

” set mappings

” control n kills search hilighting
nmap <silent> <C-N> :silent noh<CR>

” control j and control k switch panes and maximize
nmap <C-J> <C-W>j<C-W>_
nmap <C-K> <C-W>k<C-W>_

” moving over wrapped lines moves to next visual not physical line
imap <silent> <Down> <C-o>gj
imap <silent> <Up> <C-o>gk
nmap <silent> <Down> gj
nmap <silent> <Up> gk
nmap <silent> j gj
nmap <silent> k gk

” block commenting mappings , and comment characteer will add lhs comment
” character ,c will clear
map ,# :s/^/#/<CR>
map ,/ :s/^/\/\//<CR>
map ,> :s/^/> /<CR>
map ,” :s/^/\”/<CR>
map ,% :s/^/%/<CR>
map ,! :s/^/!/<CR>
map ,; :s/^/;/<CR>
map ,- :s/^/–/<CR>
map ,c :s/^\/\/\\|^–\\|^> \\|^[#”%!;]//<CR>
Filed under InstallationAndSetup having
« Installing Ruby and Ruby on Rails in Ubuntu 7.10 Gutsy Gibbon
Adding languages to Google Syntax Highlighter plugins for WordPress »

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.