Vim becomes sublime (RPM)

Source: Internet
Author: User

Sublime support is not very good under Ubuntu, especially for Chinese input, and some plugins are not available under Ubuntu.  Under Ubuntu, use Vim. Together we turn vim into sublime.

It only takes three steps.

First step: Install Vundle to manage your vim plugin:

$ git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle

Step Two: Configure ~/.VIMRC as follows:

  

1Set Nocompatible "Be improved2FileType off "required!3Set rtp+=~/.vim/bundle/vundle/4Call Vundle#RC ()5"Plugins6 Bundle ' Gmarik/vundle '7 Bundle ' Autocomplpop '8 Bundle ' The-nerd-tree '9 Bundle ' Tagbar 'Ten Bundle ' Minibufexpl.vim ' One Bundle ' Molokai ' A Bundle ' Zencoding.vim ' - Bundle ' L9 ' - Bundle ' Fuzzyfinder ' the Bundle ' Webapi.vim ' - Bundle ' Gist.vim ' -FileType plugin indent on "required! -"Autocomplpop Settings + Let g:autocomplpop_ignorecaseoption=1 - Set ignorecase +Let g:acp_behaviorkeywordcommand= "\<c-x>\<c-o>" A"Search Highlighting at Set Hlsearch -"set the width of the Nerdtreetagbar - Let g:nerdtreewinsize = - Let g:tagbar_width=20 -"Color Theme Settings -Set t_co=256 in ColorScheme Molokai -"zencoding Settings to Let g:user_zen_expandabbr_key= ' <S-O> ' + Let G:use_zen_complete_tag = 1 -"Gist Settings theLet G:gist_detect_filetype = 1 *Let G:gist_clip_command = ' xclip-selection clipboard ' $"Find a brochurePanax Notoginseng autocmd FileType php set Keywordprg=~/.vim/phpman - autocmd FileType js,css,html set Keywordprg=~/.vim/man the map <F2> <S-K><CR> + map! <F2> <esc><s-k><cr>a A"Check for PHP syntax errors theMap <F5>:! Php-l%<cr> +map! <F5> <esc>:! Php-l%<cr> -"quickly generate tag files $ map <F3>:! ctags-r<cr> $ map! <F3> <esc>:! ctags-r<cr> -"shortcut key Settings -Map <F11>:nerdtreetoggle<cr> themap! <F11> <Esc>:NERDTreeToggle<CR> -Map <F12>:tagbartoggle<cr>Wuyimap! <F12> <Esc>:TagbarToggle<CR> theMap <F6>:acpdisable<cr> -map! <F6> <Esc>:AcpDisable<CR>a Wu"quickly find files - map <C-P>:fufcoveragefile<cr> About map! <C-P>:fufcoveragefile<cr> $"Quick Close -Map <S-Q>:q<cr>:q<cr>:q<cr>:q<cr> -"map Copy, paste, clip Ctrl + V Ctrl+x -"Map <C-V>"+pa<esc> Amap! <C-V> <Esc> "+PA +Map <C-C> "+y theMap <C-X> "+x -"map All Select Ctrl + A $ map <C-A> GGVG the map! <C-A> <ESC>GGVG the"Ctrl +s for Save theMap <C-S>:w<cr> themap! <C-S> <Esc>:w<CR>a -"Ctrl + Z undo in map <C-Z>:u<cr> the map! <C-Z> <esc>:u<cr>a the"highlight when double-click AboutMap <2-LeftMouse> * themap! <2-LeftMouse> <c-o>* the"Ctrl + left mouse button to jump the map <C-LeftMouse> <C-]> + map! <C-LeftMouse> <Esc><C-]> -"the cursor is set to a vertical bar theAutocmd Insertenter * Silent Execute "!gconftool-2--type string--set/apps/gnome-terminal/profiles/default/cursor_ Shape iBEAM "BayiAutocmd Insertleave * Silent Execute "!gconftool-2--type string--set/apps/gnome-terminal/profiles/default/cursor_ Shape Block " theAutocmd Vimleave * Silent Execute "!gconftool-2--type string--set/apps/gnome-terminal/profiles/default/cursor_shape iBEAM " the"Mouse Support - Set Mouse=a -"number of rows displayed the Set Nu the"Multi-line indentation the map <Tab> > the Map <S-Tab> < -"Basic Settings theSet Encoding=utf-8 theSet fileencoding=Chinese theSet Fileencodings=ucs-bom,utf-8,Chinese94Set ambiwidth=Double theSet ts=4 theSet sw=4 theSet Wrap "Wrap Line98"set up no backup About Set Nobackup -Set Nowritebackup

Step Three: Open vim, Run command: Bundleinstall


<ignore_js_op>

Instructions for use:

F2: Quick Open Manual documentation

F3: Generate tags file, (System to install Ctags first)

F5: Check for PHP syntax errors.

F6: Turn off the automatic prompt code, (some files because automatic prompt is not supported, turn on automatic prompting will cause the editing is very slow, you can quickly turn off the automatic prompt with F6)

F11: Turns nerdtree on or off.

F12: Turns tagbar on or off.

CTRL + C: Copy, is copied to the system of the Clipboard, you can be in non-vim paste out.

Ctrl + V: Paste, is pasted from the system Clipboard, that is, you can copy the text in other places and then use Ctrl + V paste (at this time with P paste is no use), note, paste when inserting a template, Normal mode Ctrl + V trigger is the selection block.

CTRL + Z: Undo

Ctrl+s: Save, note ctrls+s shortcut keys are often disabled by the terminal, if you want to enable ctrls+s, need to set: Alias vim= "Stty stop"-ixoff; Vim

Vim becomes sublime (RPM)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.