dotfiles/vim/vimrc

57 lines
1.1 KiB
VimL
Raw Normal View History

" Pathogen setup
filetype off
call pathogen#runtime_append_all_bundles()
filetype plugin indent on
syntax on
colorscheme railscasts
set tabstop=2
set shiftwidth=2
set autoindent
set smarttab
set expandtab
set guioptions=aAce
set mouse=a
2010-11-24 17:43:17 +11:00
" Window manipulation
2010-11-30 01:02:57 +11:00
"map tt <C-w>
2010-11-24 17:43:17 +11:00
map <C-w><Backspace> <C-w><Left> | " This and the below are also useful for colemak
map <C-w><Space> <C-w><Right>
" Surrounds shortcuts for visual selections
2010-11-30 01:02:57 +11:00
"vmap " s"
"vmap ' s'
"vmap ( s)
"vmap [ s]
"vmap { s}
"vmap < s>
2010-11-24 17:43:17 +11:00
" Pressing backspace with selection does something weird
" thanks to above surrounds shortcuts so let's be specific
" here:
vmap <Backspace> xi
" Colemak
"
" * Switch 'h' and 'n' (so 'up' is on top of 'down').
" * Use <Space> and <Backspace> for <Right> and <Left>, instead (and disable 'j'
" and 'l' which are where 'y' and 'u' are in in QWERTY)
nmap h <Up>
nmap k <Down>
" Nicer split controls
"map <C-_> normal :split<CR>
"map <C-\|> normal :vsplit<CR>
" Emacs-like keys for the command line
cnoremap <C-A> <Home>
cnoremap <C-E> <End>
cnoremap <C-K> <C-U>
set wildignore+=Transmission*Remote*GUI
2010-11-30 01:03:50 +11:00
let g:ragtag_global_maps = 1