Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "show existing tab with 4 spaces"
- filetype plugin indent on
- "when indenting with '>' use 4 spaces width"
- set tabstop=4
- "on pressing tab insert 4 spacesi"
- set shiftwidth=4
- "Using the clipbard as the default register"
- set clipboard=unnamedplus
- "Show line numbers"
- set number
- "colorscheme molokai"
- colorscheme molokai
- "clang format - key bind to Ctrl-K"
- map <C-K> :py3f /home/oz/llvm/tools/clang/tools/clang-format/clang-format.py<cr>
- imap <C-K> <c-o>:py3f /home/oz/llvm/tools/clang/tools/clang-format/clang-format.py<cr>
- "clang format - format on save"
- function! Formatonsave()
- let l:formatdiff = 1
- py3f ~/llvm/tools/clang/tools/clang-format/clang-format.py
- endfunction
- autocmd BufWritePre *.h,*.cc,*.cpp call Formatonsave()
Add Comment
Please, Sign In to add comment