Last active
August 29, 2015 14:08
-
-
Save mortie/6fd8a671d9ed88e51b41 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible " be iMproved | |
filetype off " required! | |
" Coffeescript | |
call pathogen#infect() | |
syntax enable | |
filetype plugin indent on | |
" Vundle start | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" Plugins | |
Plugin 'gmarik/Vundle.vim' | |
Plugin 'kchmck/vim-coffee-script' | |
" Vundle end | |
call vundle#end() " required | |
filetype plugin indent on " required | |
" Bind keys | |
set mouse=a | |
map <ScrollWheelUp> <C-Y><C-Y><C-Y> | |
map <ScrollWheelDown> <C-E><C-E><C-E> | |
map <C-n> :NERDTreeToggle<CR> | |
map <F1> :SaveSession<CR> | |
map <F2> :OpenSession!<CR> | |
" Configure | |
syntax on | |
filetype plugin indent on | |
set tabstop=4 | |
set shiftwidth=4 | |
set number | |
:let g:session_autosave = 'no' | |
" Replace characters | |
set list | |
set listchars=tab:>. | |
" Useful things | |
nmap <C-o> : | |
nmap \p :set paste!<CR> | |
nmap <C-c> <ESC> | |
" Search options | |
set incsearch | |
set ignorecase | |
set smartcase | |
set hlsearch | |
" Disable swp | |
set noswapfile | |
" Dvorak: Fix hjkl navigation | |
noremap h h | |
noremap t k | |
noremap n j | |
noremap s l | |
" Dvorak: Fix control keys | |
noremap a v | |
noremap o y | |
noremap e p | |
" Make nxc look like C | |
au BufNewFile,BufRead *.nxc set filetype=c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment