Miscellaneous odds and ends
Miscellaneous tips
vim
My
.vimrc:
set tabstop=4
set shiftwidth=4
set expandtab
highlight ExtraWhitespace ctermbg=red guibg=red
match ExtraWhitespace /\s\+$/
augroup trailing_whitespace
autocmd!
autocmd BufWritePre *.c :%s/\s\+$//e
autocmd BufWritePre *.h :%s/\s\+$//e
autocmd BufWritePre *.cxx :%s/\s\+$//e
autocmd BufWritePre *.hxx :%s/\s\+$//e
augroup END
nmap <silent> <A-Up> :wincmd k<CR>
nmap <silent> <A-Down> :wincmd j<CR>
nmap <silent> <A-Left> :wincmd h<CR>
nmap <silent> <A-Right> :wincmd l<CR>git
To show all branches in a tree like structure, run:
Then you just use git logtree.
Document Liberation Project
Last updated
Was this helpful?