Last active
August 29, 2015 14:22
-
-
Save n0mimono/1f0b30eb156f02b92b90 to your computer and use it in GitHub Desktop.
Rush work
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 number | |
colorscheme molokai | |
syntax on | |
"html | |
autocmd FileType html inoremap <silent> <buffer> </ </<C-x><C-o> | |
"neobundle | |
set runtimepath+=~/.vim/bundle/neobundle.vim/ | |
call neobundle#begin(expand('~/.vim/bundle/')) | |
NeoBundleFetch 'Shougo/neobundle.vim' | |
NeoBundle 'Shougo/vimproc', { | |
\ 'build' : { | |
\ 'windows' : 'make -f make_mingw32.mak', | |
\ 'cygwin' : 'make -f make_cygwin.mak', | |
\ 'mac' : 'make -f make_mac.mak', | |
\ 'unix' : 'make -f make_unix.mak', | |
\ }, | |
\ } | |
NeoBundle 'Lokaltog/vim-easymotion' | |
NeoBundle 'davidhalter/jedi-vim' | |
NeoBundle 'scrooloose/syntastic.git' | |
NeoBundle 'scrooloose/nerdtree' | |
NeoBundle 'Townk/vim-autoclose' | |
NeoBundle 'thinca/vim-quickrun' | |
NeoBundle 'LeafCage/yankround.vim' | |
NeoBundleLazy 'Shougo/neocomplete.vim', { | |
\ 'depends' : 'Shougo/vimproc', | |
\ 'autoload' : { 'insert' : 1,} | |
\ } | |
call neobundle#end() | |
filetype plugin indent on | |
NeoBundleCheck | |
"easymotion | |
let g:EasyMotion_do_mapping = 0 "Disable default mappings | |
nmap s <Plug>(easymotion-s2) | |
"syntastic | |
let g:syntastic_enable_signs=1 | |
let g:syntastic_auto_loc_list=2 | |
"nerdtree | |
nnoremap <silent><C-e> :NERDTreeToggle<CR> | |
"jedi-vim | |
autocmd FileType python setlocal omnifunc=jedi#completions | |
let g:jedi#completions_enabled = 0 | |
let g:jedi#auto_vim_configuration = 0 | |
"neocomplete | |
if !exists('g:neocomplete#force_omni_input_patterns') | |
let g:neocomplete#force_omni_input_patterns = {} | |
endif | |
let g:neocomplete#force_omni_input_patterns.python = '\h\w|[^. \t].\w' | |
let g:neocomplete#force_omni_input_patterns.python = '\%([^. | |
\t].|^\s@|^\sfrom\s.+import |^\sfrom |^\simport )\w*' | |
let g:acp_enableAtStartup = 0 | |
let g:neocomplete#enable_at_startup = 1 | |
let g:neocomplete#enable_smart_case = 1 | |
let g:neocomplete#sources#syntax#min_keyword_length = 3 | |
let g:neocomplete#lock_buffer_name_pattern = '\*ku\*' | |
inoremap <expr><C-g> neocomplete#undo_completion() | |
inoremap <expr><C-l> neocomplete#complete_common_string() | |
inoremap <silent> <CR> <C-r>=<SID>my_cr_function()<CR> | |
function! s:my_cr_function() | |
return pumvisible() ? neocomplete#close_popup() : "\<CR>" | |
endfunction | |
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>" | |
inoremap <expr><C-h> neocomplete#smart_close_popup()."\<C-h>" | |
inoremap <expr><BS> neocomplete#smart_close_popup()."\<C-h>" | |
inoremap <expr><C-y> neocomplete#close_popup() | |
inoremap <expr><C-e> neocomplete#cancel_popup() | |
inoremap <expr><Space> pumvisible() ? neocomplete#close_popup() : "\<Space>" | |
autocmd FileType python setlocal omnifunc=pythoncomplete#Complete | |
"quickrun | |
nnoremap <silent><C-l> :QuickRun<CR> | |
set splitbelow | |
set splitright | |
"yankround | |
nmap p <Plug>(yankround-p) | |
nmap P <Plug>(yankround-P) | |
nmap <C-p> <Plug>(yankround-prev) | |
nmap <C-n> <Plug>(yankround-next) | |
let g:yankround_max_history = 100 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment