Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " general
- set nocp
- filetype plugin on
- " code display
- set shiftwidth=3
- set tabstop=3
- set nowrap
- set backspace=2
- set cindent
- " syntaxhighlighting
- syntax on
- au BufNewFile,BufRead *.cpp set syntax=cpp11
- au BufNewFile,BufRead *.frag set syntax=cpp11
- au BufNewFile,BufRead *.vert set syntax=cpp11
- " gui
- set number
- set guioptions-=t
- set guioptions-=T
- set guioptions-=m
- set guioptions+=M
- set hlsearch
- colorscheme jellybeans
- " set folding to syntax mode (assumes c++) and bind
- set foldmethod=syntax
- set foldcolumn=4
- :map <F1> zR
- :map <F2> zM
- :map <F3> zr
- :map <F4> zm
- " .swp go into .vim/swap
- set directory=~/.vimswap,.
- " make
- set makeprg=scons\ -j\ 4
- ":command -nargs=* Make make <args> | cwindow 8
- autocmd QuickFixCmdPost [^l]* nested cwindow
- autocmd QuickFixCmdPost l* nested lwindow
- map <F8> :on!<CR>
- map <F9> :w<CR>:on!<CR>:make<CR>
- map <F10> :cw<CR>
- set hidden
- map <C-SPACE> :bn<CR>
- map <C-BS> :bp<CR>
- " leader binding
- let mapleader = "ü"
- map ä :w<CR>:A<CR>
- map Ä :A<CR>
- map <Leader>c :bd<CR>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement