123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- set nocompatible " be iMproved
- filetype off " required!
-
- " Pachogen
- 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 rnu
- :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
-
- set colorcolumn=80
|