Last active
August 29, 2015 14:01
-
-
Save jepio/b54786b1992c0fa9620a to your computer and use it in GitHub Desktop.
My .vimrc settings.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let g:pathogen_disabled = [] | |
call add(g:pathogen_disabled, 'cpp-enhanced') | |
call add(g:pathogen_disabled, 'cpp') | |
execute pathogen#infect() | |
"" Shows command as it is being entered | |
set showcmd | |
set t_Co=256 | |
colorscheme badwolf | |
syntax on | |
filetype plugin on | |
filetype indent on | |
set grepprg=grep\ -nH\ $* "what to use for searching | |
let g:tex_flavor='latex' | |
set encoding=utf-8 "obviously | |
set swapfile "for recovery | |
"" Location of swap files | |
set backupdir=~/.vim/backup// | |
set directory=~/.vim/swap// | |
set undodir=~/.vim/undo// | |
"" Space settings | |
set tabstop=4 | |
set expandtab | |
set shiftwidth=4 | |
set softtabstop=4 | |
set smarttab | |
"set colorcolumn=80 | |
"" General indent settings | |
set ai "Auto indent | |
set wrap "Wrap lines | |
set number "Show line number | |
set modeline | |
set nofoldenable "Don't fold bracketed code. | |
set laststatus=2 "Status airline always shows | |
set textwidth=80 "Wrap at 80 | |
"set wrapmargin=2 "unsure | |
"set completeopt -=preview "turn off documentation | |
let g:pymode_rope = 0 | |
" can be a bit slow, so turn it off | |
let g:pymode_lint_on_write = 0 | |
" disable stupid latex magic | |
let g:Imap_FreezeImap=1 | |
"" Close qflist if it's the last buffer open | |
aug QFClose | |
au! | |
au WinEnter * if winnr('$') == 1 && getbufvar(winbufnr(winnr()), "&buftype") == "quickfix"|q|endif | |
aug END | |
"" Activate mouse - for selecting and scrolling | |
set mouse=a | |
"" Ignore case of filenames | |
set wildignorecase | |
set wildmenu | |
"" Add tab number to tab line | |
" set guitablabel=%N/\ %t\ %M " only for gvim | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
"" changing tabs with ctrl+tab :) <-- doesn't work :'( | |
"map <C-Tab> :tabnext<CR> | |
"imap <C-Tab> <C-O>:tabnext<CR> | |
"map <C-S-Tab> :tabprev<CR> | |
"imap <C-S-Tab> <C-O>:tabprev<CR> | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
"let g:clang_format#code_style = "llvm" | |
"let g:clang_format#style_options = { | |
" \ "AccessModifierOffset" : -4, | |
" \ "Standard" : "C++11", | |
" \ "BreakBeforeBraces" : "Stroustrup", | |
" \ "IndentWidth" : 4, | |
" \ "TabWidth" : 4 } | |
let g:clang_format#detect_style_file = 1 | |
let mapleader = "," | |
"" C-u is readline for delete line | |
nnoremap <buffer><Leader>cf :<C-u>ClangFormat<CR> | |
vnoremap <buffer><Leader>cf :ClangFormat<CR> | |
nmap <leader>d :NERDTreeToggle<CR> | |
nnoremap <silent> <F8> :TlistToggle<CR> | |
"" Settings for improved c++ syntax highlighting | |
let g:cpp_class_scope_highlight = 1 | |
let g:cpp_experimental_template_highlight = 0 | |
"" don't highlight tags, annoying | |
let g:easytags_auto_highlight = 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment