Created
December 20, 2018 07:30
-
-
Save zldrobit/456dafa94e22c6da5e8cc055eb9cd44b to your computer and use it in GitHub Desktop.
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 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 'pydiction' | |
let g:pydiction_location = '~/.vim/bundle/Pydiction/complete-dict' | |
" 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 | |
" | |
" Brief help | |
" :PluginList - lists configured plugins | |
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate | |
" :PluginSearch foo - searches for foo; append `!` to refresh local cache | |
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal | |
" see :h vundle for more details or wiki for FAQ | |
" Put your non-Plugin stuff after this line | |
" enter the current millenium | |
" set nocompatible | |
" enable syntax and plugins (for netrw) | |
syntax enable | |
filetype plugin on | |
" Search down into subfolders | |
" Provides tab-completion for all file-related tasks | |
set path+=** | |
" Display all matching files when we tab complete | |
set wildmenu | |
" Tweaks for browsing | |
let g:netrw_banner=0 " disable annoying banner | |
let g:netrw_browse_split=4 " open in prior window | |
let g:netrw_altv=1 " open splits to the right | |
let g:netrw_liststyle=3 " tree view | |
let g:netrw_list_hide=netrw_gitignore#Hide() | |
let g:netrw_list_hide.=',\(^\|\s\s\)\zs\.\S\+' | |
" " Send more characters for redraws | |
" set ttyfast | |
" | |
" " Enable mouse use in all modes | |
" set mouse=n | |
" | |
" " Set this to the name of your terminal that supports mouse codes. | |
" " Must be one of: xterm, xterm2, netterm, dec, jsbterm, pterm | |
" set ttymouse=xterm2 | |
" share system's clipboard {{{ | |
set clipboard=unnamed | |
" }}} | |
" show invisible characters {{{ | |
set listchars=eol:$,tab:>-,space:.,trail:. | |
map <silent><F10> :let &list=(&list == 0?1:0)<CR>:call ShowInvisibleCharMode()<CR> | |
imap <silent><F10> :let &list=(&list == 0?1:0)<CR>:call ShowInvisibleCharMode()<CR> | |
function ShowInvisibleCharMode() | |
if (&list == 'list') | |
echo "show invisible characters" | |
else | |
echo "do not show invisible character" | |
endif | |
endfunction | |
" }}} | |
" toggle between terminal and vim mouse {{{ | |
map <silent><F12> :let &mouse=(&mouse == "a"?"":"a")<CR>:call ShowMouseMode()<CR> | |
imap <silent><F12> :let &mouse=(&mouse == "a"?"":"a")<CR>:call ShowMouseMode()<CR> | |
function ShowMouseMode() | |
if (&mouse == 'a') | |
echo "mouse-vim" | |
else | |
echo "mouse-xterm" | |
endif | |
endfunction | |
" }}} | |
set smartindent | |
" {{{ python tab setting | |
set expandtab | |
set tabstop=4 | |
set shiftwidth=4 | |
set softtabstop=4 | |
" }}} | |
nnoremap <C-W><Left> <C-W><H> | |
nnoremap <C-W><Right> <C-W><L> | |
nnoremap <C-W><Up> <C-W><I> | |
nnoremap <C-W><Down> <C-W><K> | |
set foldmethod=marker | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment