set encoding=utf-8
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
" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" plugin on GitHub repo
Plugin 'tpope/vim-fugitive'
" plugin from http://vim-scripts.org/vim/scripts.html
Plugin 'L9'
" Git plugin not hosted on GitHub
Plugin 'git://git.wincent.com/command-t.git'
Bundle 'Valloric/YouCompleteMe'
" git repos on your local machine (i.e. when working on your own plugin)
Plugin 'file:///home/gmarik/path/to/plugin'
" The sparkup vim script is in a subdirectory of this repo called vim.
" Pass the path to set the runtimepath properly.
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
" Avoid a name conflict with L9
Plugin 'user/L9', {'name': 'newL9'}
" 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
"
luginList - lists configured plugins
"
luginInstall - installs plugins; append `!` to update or just
luginUpdate
"
luginSearch foo - searches for foo; append `!` to refresh local cache
"
luginClean - 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
autocmd Filetype java set omnifunc=javacomplete#Complete
"setlocal completefunc=javacomplete#CompleteParamsInfo
autocmd FileType python set omnifunc=pythoncomplete#Complete
autocmd FileType javascript set omnifunc=javascriptcomplete#CompleteJS
autocmd FileType html set omnifunc=htmlcomplete#CompleteTags
autocmd FileType css set omnifunc=csscomplete#CompleteCSS
autocmd FileType xml set omnifunc=xmlcomplete#CompleteTags
autocmd FileType php set omnifunc=phpcomplete#CompletePHP
autocmd FileType c set omnifunc=ccomplete#Complete
inoremap <buffer> <C-X><C-U> <C-X><C-U><C-P>
inoremap <buffer> <C-S-Space> <C-X><C-U><C-P>
autocmd Filetype java inoremap <buffer> . .<C-X><C-O><C-P>
set completeopt=longest,menu
set autoindent
execute pathogen#infect()
call pathogen#helptags()
let g:pydiction_location = '~/.vim/tools/pydiction/complete-dict'
let g:pydiction_menu_height = 8
syntax on
set background=dark
colorscheme solarized
"python folding
set nofoldenable
set cursorline cul
set cursorcolumn
"hi CursorColumn cterm=NONE ctermbg=darkred ctermfg=white guibg=darkred guifg=white
set mouse=a
set number
"不自动换行
set nowrap
"智能对齐方式
set smartindent
"一个tab是4个字符
set tabstop=4
""按一次tab前进4个字符
set softtabstop=4
"显示行号
""缺省不产生备份文件
set nobackup
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_python_python_exec = '/usr/bin/python'
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 fillchars+=stl:\ ,stlnc:\
"let g:Powerline_symbols = 'fancy'
"powerline
set guifont=PowerlineSymbols\ for\ Powerline
set nocompatible
set t_Co=256
"let g:Powerline_symbols = 'fancy'
set laststatus=2
map <C-n> :NERDTreeToggle<CR>
"map <silent> <F9> :TlistToggle<CR>
map <C-t> :TlistToggle<CR>
map <C-l> :TagbarToggle<CR>
"settings for python-mode
let ropevim_enable_shotcuts = 1
let g:pymode_rope_goto_def_newwin = "vnew"
let g:pymode_rope_extended_complete = 1
let g:pymode_breakpoint = 0
let g:pymode_syntax = 1
let g:pymode_syntax_builtin_objs = 0
let g:pymode_syntax_builtin_funcs = 0
let g:user_emmet_install_global = 0
autocmd FileType html,css EmmetInstall
let g:nodejs_complete_config = {'js_compl_fn': 'jscomplete#CompleteJS','max_node_compl_len': 15}
silent! call repeat#set("\<Plug>MyWonderfulMap", v:count)
分享到:
相关推荐
my_vim_config
my-vim-config:我的vim配置
更改刚刚克隆的目录(也许是cd ~/oh-my-vim ),创建指向~/.vimrc符号链接 # Attension : the source file can't use relative path, must absolutely path ln -s $PWD/.vimrc ~/.vimrc 在shell中执行echo $PWD时,...
ln ~/myvim/init.vim ~/.config/nvim/init.vim ln ~/myvim/coc-settings.json ~/.config/nvim/coc-settings.json 为CoC安装插件和语言服务器: nvim -c PlugInstall pip install -U jedi-language-server nvim -c ...
##我的vimrc set numberset helplang = cnset ai set bs = 2set showmatch...be iMproved, requiredfiletype off " requiredset encoding = utf - 8set fillchars += stl : \ ,stlnc: \set rtp += ~/.vim/bundle/vund
Windows Gvim(Python) PuTTy(vimrc) 配置 用法Windows用户: 从复制的vimrc VimConfig\Configurations\vimrc到C:\Program Files\Vim ,并命名的vimrc到_vimrc 自动获取Vundle 打开Vim并执行(忽略警告和错误) ...
linux设置我Linux设置包括vim config(基于)等。在安装时,请确保始终位于主目录下( cd ~ )! 注意:我将WSL与Kali-Linux一起使用进行此设置。安装sh sudo apt-get install zsh git vimsh -c "$(curl -fsSL ...
我的vim配置 将此文件放在.vimrc名称的主目录中 mv vimfile ~ /.vimrc
我的vim配置 要在您的系统上执行此操作,请将此存储库放入.vim目录,在主目录中仅显示source ~/.vim/vimrc放入.vimrc,然后执行设置过程。
基本的vim配置基本VIM配置和一些插件,用于读取C代码和Linux内核
贾斯汀·舒尔茨(Justin Schulz)的.vimrc.local设置这是我的本地vim配置,建立在关键的vim-config之上,并进行了一些我个人认为有用的更改。 虽然我喜欢关键的配置,但这里没有任何内容取决于使用它们的设置。 如果...
我Linux(Ubuntu)配置 Ubuntu软件包,主题,gnome,Bash和Vim的简单设置。 设置 下载此存储库并移至其中。 要为当前用户安装配置: user:~/My-Linux-Config/ $ make ... user:~/My-Linux-Config/ $ sudo make
vimvim的配置文件来源于 Basic version修改的地方如下:显示行号1.1 使用方法将vimrc文件复制到主目录中并改名为.vimrccp vimrc ~/.vimrc2. zshzsh的配置文件来自修改的地方如下:修改默认主题为bira2.1 使用方法将...
开发配置我的开发配置文件安装 # clone config repo$ git clone git@github.com:ZhengYang/oh-my-config.git# go into repo directory and run setup.sh, it will copy the config file to your home folder# ...
对于vim config 前提条件: vim软件包已经安装。 如果没有,请根据您的linux发行版安装vim 。 Example: centos: sudo yum install -y vim ubuntu: sudo apt install -u vim vim-config: cd my_dotfiles...
terminator and vim config files in my ubuntu env. 需要预先安装的软件有(需高于等于我的版本): vim 7.4 , git , curl , cmake , exuberant-ctags , python 2.7.6 首先将项目clone到本地: git clone ...
# skip if you don't have a config or have removed your own mv .vim vimfilesbackup mv .vimrc vimfilesbackup/vimrcbck mv .gvimrc vimfilesbackup/gvimrcbck # once we're clear, we can download and link my ...
环境配置 一个简单的bash脚本,安装了插件管理器以及一些TMUX和VIM配置文件,以简化跨平台和机器的环境需求!... 另请注意:Oh-My-Bash颜色非常精致! 您可能需要调整终端预设才能使颜色正常工作! 请参阅文档。
My-Linux-config:基于SpaceVim和Coc.nvim的现代neovim配置