Skip to content

Instantly share code, notes, and snippets.

@yitznewton
Last active October 7, 2015 08:38
Show Gist options
  • Save yitznewton/3136707 to your computer and use it in GitHub Desktop.
Save yitznewton/3136707 to your computer and use it in GitHub Desktop.
Linux vimrc
set shiftwidth=4
set tabstop=4
set hidden
set autoindent
set cc=76
autocmd BufReadPost * :DetectIndent
let g:detectindent_preferred_expandtab=0
let g:detectindent_preferred_indent=4
map w <Plug>CamelCaseMotion_w
map b <Plug>CamelCaseMotion_b
map e <Plug>CamelCaseMotion_e
sunmap w
sunmap b
sunmap e
map <C-t> :CommandT<CR>
sunmap <C-t>
colorscheme dark
set guifont=WenQuanYi\ Micro\ Hei\ Mono\ 11
set guioptions-=m
set guioptions-=T
set guioptions+=r
set guioptions-=l
set guioptions-=L
let g:NERDTreeWinSize = 45
function! Tabs()
set noexpandtab
set tabstop=4
set shiftwidth=4
endfunction
function! Spaces()
set expandtab
set tabstop=2
set shiftwidth=2
endfunction
command! Tabs call Tabs()
command! Spaces call Spaces()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment