Created
April 10, 2018 14:10
-
-
Save mauricioborges/48c385eeb2677ca8924b0a5c7790402b to your computer and use it in GitHub Desktop.
my vim config
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
set clipboard=unnamed | |
execute pathogen#infect() | |
set t_Co=256 | |
syntax on | |
filetype plugin indent on | |
"au VimEnter * NERDTree | |
nmap <silent> <C-D> :NERDTreeToggle<CR> | |
au FileType javascript call JavaScriptFold() | |
let g:vim_markdown_folding_disabled=1 | |
let g:NERDTreeChDirMode = 2 | |
let g:ctrlp_working_path_mode = 'rw' | |
let g:ctrlp_show_hidden = 1 | |
"The Silver Searcher (https://github.com/ggreer/the_silver_searcher) | |
if executable('ag') | |
" Use ag over grep | |
set grepprg=ag\ --nogroup\ --nocolor\ --ignore\ bower_components\ --ignore\ node_modules\ --ignore\ .git | |
" Use ag in CtrlP for listing files. Lightning fast and respects .gitignore | |
let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""' | |
" ag is fast enough that CtrlP doesn't need to cache | |
let g:ctrlp_use_caching = 0 | |
endif | |
" bind K to grep word under cursor | |
nnoremap K :grep! "\b<C-R><C-W>\b"<CR>:cw<CR> | |
" bind \ (backward slash) to grep shortcut | |
command -nargs=+ -complete=file -bar Ag silent! grep! <args>|cwindow|redraw! | |
nnoremap \ :Ag<SPACE> | |
set smartindent | |
set tabstop=2 | |
set shiftwidth=2 | |
set expandtab | |
set list! | |
set number | |
"macosx things | |
set backspace=indent,eol,start | |
set backupdir=~/.vim/backups | |
set directory=~/.vim/swaps | |
set viminfo+=! " make sure vim history works | |
set laststatus=2 | |
"let g:airline_theme='dark' | |
"let g:airline_powerline_fonts = 1 | |
"if !exists('g:airline_symbols') | |
" let g:airline_symbols = {} | |
" endif | |
"let g:airline_symbols.space = "\ua0" | |
"let g:tmuxline_preset = 'full' | |
set clipboard=unnamed | |
let g:vim_markdown_conceal = 0 | |
let g:vim_json_syntax_conceal = 0 | |
if version >= 703 | |
set conceallevel=0 | |
autocmd FileType * setlocal conceallevel=0 | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment