Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set nu
- set nobackup
- set noswapfile
- set nowritebackup
- set showmatch
- set showcmd
- set title
- set exrc
- set secure
- set ruler
- set encoding=utf-8
- set fileencoding=utf-8
- " Search hightligth
- set hlsearch
- nohlsearch
- set incsearch
- " Show vertical line of cursor
- "set cursorline
- let mapleader = " "
- let localleader = "\\"
- set nocompatible " be iMproved, required
- filetype off " required
- " set the runtime path to include Vundle and initialize
- set rtp+=~/.vim/bundle/Vundle.vim
- call vundle#begin()
- " alternatively, pass a path where Vundle should install plugins
- "call vundle#begin('~/some/path/here')
- " let Vundle manage Vundle, required
- Plugin 'VundleVim/Vundle.vim'
- Plugin 'Vimjas/vim-python-pep8-indent'
- Plugin 'scrooloose/nerdtree'
- Plugin 'vim-syntastic/syntastic'
- Plugin 'altercation/vim-colors-solarized'
- Plugin 'vim-airline/vim-airline'
- Plugin 'vim-airline/vim-airline-themes'
- Plugin 'ctrlpvim/ctrlp.vim'
- Plugin 'nanotech/jellybeans.vim'
- Plugin 'davidhalter/jedi-vim'
- Plugin 'rip-rip/clang_complete'
- " YCM is not working in this vim
- "Plugin 'Valloric/YouCompleteMe'
- " All of your Plugins must be added before the following line
- call vundle#end() " required
- filetype plugin indent on " required
- " To ignore plugin indent changes, instead use:
- "filetype plugin on
- " Put your non-Plugin stuff after this line
- " YCM setting {{{
- "let g:ycm_disable_for_files_larger_than_kb = 1000
- "let g:ycm_python_binary_path = '/usr/bin/python'
- "let g:ycm_global_ycm_extra_conf = '~/.vim/.ycm_extra_conf.py'
- "let g:ycm_confirm_extra_conf = 0
- "To avoid conflict snippets
- "let g:ycm_key_list_select_completion = ['<C-j>', '<Down>']
- "let g:ycm_key_list_previous_completion = ['<C-k>', '<Up>']
- "let g:ycm_autoclose_preview_window_after_completion = 1
- "let g:ycm_use_ultisnips_completer = 1
- "let g:ycm_seed_identifiers_with_syntax = 1
- "let g:ycm_complete_in_comments = 1
- "let g:ycm_complete_in_strings = 1
- "let g:ycm_auto_trigger = 1
- "nnoremap <leader>g :YcmCompleter GoTo<CR>
- nnoremap <leader>g :YcmCompleter GoToDefinitionElseDeclaration<CR>
- nnoremap <leader>gg :YcmCompleter GoToImprecise<CR>
- nnoremap <leader>d :YcmCompleter GoToDeclaration<CR>
- nnoremap <leader>t :YcmCompleter GetType<CR>
- nnoremap <leader>p :YcmCompleter GetParent<CR>
- " }}}
- " Key mapping {{{
- " Fast save, exit
- nnoremap <leader><leader> :w<cr>
- nnoremap <leader>q :q!<cr>
- nnoremap <leader>w :wq<cr>
- " Fast splitting
- " move to splitted vim is Ctrl+w
- nnoremap <leader>% <C-w><C-v><C-w>l
- nnoremap <leader>" <C-w>s
- inoremap <C-@> <Esc>
- " }}}
- " Development setting {{{
- let g:ctrlp_custom_ignore = {
- \ 'dir': '\.git$\|public$\|log$\|tmp$\|vendor$',
- \ 'file': '\v\.(exe|so|dll)$'
- \ }
- set statusline+=%#warningmsg#
- set statusline+=%{SyntasticStatuslineFlag()}
- set statusline+=%*
- let g:syntastic_always_populate_loc_list = 1
- let g:syntastic_auto_loc_list = 1
- let g:syntastic_check_on_open = 1
- let g:syntastic_check_on_wq = 0
- set cindent
- set autoindent
- set smartindent
- set tabstop=4
- set shiftwidth=4 " controls the depth of autoindentation
- set expandtab " converts tabs to spaces
- set laststatus=2 " show status line always
- autocmd Filetype cpp setlocal expandtab tabstop=2 shiftwidth=2
- autocmd Filetype python setlocal expandtab tabstop=4 shiftwidth=4
- let g:syntastic_python_checkers = ['python']
- "@seso : pylint is too slow and shows invalid error
- "let g:syntastic_python_checkers = ['python', 'pylint']
- "let g:syntastic_python_pylint_args = '-E'
- let g:clang_library_path='/usr/lib/llvm-3.4/lib'
- " }}}
- " color/theme setting {{{
- syntax enable
- "set background=light
- "colorscheme solarized
- "color jellybeans
- let g:airline_theme='wombat'
- let g:airline#extensions#tabline#enabled = 1
- hi Comment ctermfg=DarkGrey guifg=DarkGrey
- " }}}
- " Other setting
- autocmd BufReadPost *
- \ if line("'\"") > 0 && line("'\"") <= line("$") |
- \ exe "normal! g`\"" |
- \ endif
Add Comment
Please, Sign In to add comment